@import url('main_styles.css');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');

:root {
    --footer-height: 3vh;
}

html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    color: var(--primary-color);
    background-color: var(--banners);
    font-size: 2vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
}

html, body .topbar {
    align-items: normal;
}

/*html body {*/
/*    font-family: Arial, sans-serif;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    background-color: #cad2c5;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    height: 100vh;*/
/*}*/

.form-container {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1vh 4vh 4vh 4vh;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /*width: 60vh;*/
    /*height: 43vh;*/
    text-align: center;
}

.title {
    /*color: navy;*/
    margin-bottom: 2vh;
    font-size: 5vh;
}

.login-form input,
.register-form input {
    width: 100%;
    padding: 4vh 2vh;
    border: 1px solid #ccc;
    border-radius: 1vh;
    font-size: 4vh;
    box-sizing: border-box;
    display: block;
    margin: 3vh 0;
}

.register-form button,
.login-form button {
    width: 100%;
    padding: 2vh;
    background-color: var(--pallet-green);
    color: white;
    border: none;
    border-radius: 1vh;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 4vh;
}

.login-form button:hover {
    background-color: var(--primary-color);
}

a {
    color: var(--primary-color) !important;
}

.login-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    text-align: left;
    color: #333;
}

.error-message {
    color: #d10617;
    /*font-weight: bold;*/
}

.form-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-top: 2vh;
}


/* Top bar - pasek nad treścią */
.top-bar {
    display: flex;
    justify-content: space-between; /* Elementy po bokach */
    align-items: center;
    padding: 0 20px;
    width: -webkit-fill-available;
    min-height: 10vh;
    font-size: 3vh;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 998; /* poniżej sidebara */
    /*box-sizing: border-box;*/
}

.top-bar .breadcrumb {
    display: flex;
    align-items: center;
    /*font-size: 2vh;*/
    color: var(--primary-color);
    margin-bottom: 0;
}

.top-bar .breadcrumb h1 {
    font-weight: bold;
    margin: 0;
}


.top-bar .breadcrumb span {
    margin-left: 8px;
    color: var(--banners) !important;
}

.top-bar .material-icons {
    font-size: 6vh;
    margin-right: 5px;
    line-height: inherit;
}


/* Content - główna zawartość strony */
.content {
    flex: 1 1 auto; /* wypełnia całą pozostałą przestrzeń */
    overflow: auto;
    box-sizing: border-box;
    width: 100%;
    /*min-height: calc(100vh - 60px - var(--footer-height)); !* minimalna wysokość, by footer był na dole *!*/
    /*padding: 20px 0 calc(var(--footer-height) + 20px) 20px;*/
    max-width: unset;
    /*background-color: var(--pallet-sea);*/
}


.app-footer {
    height: var(--footer-height);
    padding: 4px 12px; /* symetryczne wcięcia */
    background: #edede9;
    border-top: 1px solid #e0e0e0;
    color: #555;
    /*font-size: 12px;*/
    display: flex;
    align-items: center;
    justify-content: center; /* treść wyśrodkowana */
    z-index: 900;
    clear: both;
    width: 100%;
}

.app-footer .footer-icon {
    margin-right: 8px; /* odstęp między ikoną a tekstem */
    /*font-size: 1em;*/
    line-height: 1;
    color: inherit;
    opacity: 0.9;
}


.top-bar .auth-links a {
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.top-bar .auth-links .material-icons {
    /*font-size: 24px;*/
    margin-right: 5px;
}

.spinner {
    border: 20px solid #f3f3f3;
    border-top: 20px solid var(--secondary-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: fixed;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Czarny z 40% przezroczystości */
    z-index: 998; /* Poniżej spinnera, ale powyżej reszty zawartości */
}

.btn {
    min-height: 10vh;
    min-width: 15vh;
    font-size: 3vh;
    border-radius: 2vh;
    background-color: var(--pallet-sea);
    color: var(--banners);
    border: none;
    padding: 1vh;
}

.btn-cancel {
    background: var(--pallet-brown);
}

.center-page {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    overflow: auto;
}

th, td {
    border: 0.2vh solid;
    padding: 1vh;
    text-align: center;
}

th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: normal;
    font-size: 3vh;
    position: sticky;
    top: 0;
}

td {
    text-wrap: nowrap;
}

label {
    font-size: 3.5vh;
    font-weight: bold;
    padding-left: 2px;
    color: var(--primary-color);
}

input, select, textarea {
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: white;
    color: inherit;
    outline: none;
    height: 4vh;
    font-size: 2vh;
}

h2 {
    font-size: 4.5vh;
    text-align: center;
}