/* RESET / BASE */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 3em;
}

/* LAYOUT */
.container {
    max-width: 1920px;
    margin: 0 auto;
    background: #fff;
    /*min-height: 100vh;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}


.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.main-content {
    flex: 1;
    padding: 30px;
}

/* NAVBAR */
/*.navbar {*/
/*    width: 100%;*/
/*    background: #1e6db8;*/
/*    color: #fff;*/
/*}*/

.navbar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: #2b6fad;
}

.navbar-container {
    max-width: 1920px;
    margin: 0 auto;
}

/* 🔝 TOP - LOGO */
.nav-top {
    padding: 5px 20px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

/* 🔻 BOTTOM - MENU */
.nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* LEWA STRONA */
.nav-left {
    display: flex;
    gap: 20px;
}

/* PRAWA STRONA */
.nav-right {
    display: flex;
}

.topbar {
    padding: 12px 20px;
    justify-content: flex-end;
}

/* LINKI */
.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.navbar a:hover {
    text-decoration: underline;
}

.navbar a.active {
    border-bottom: 2px solid #fff;
}

/* LOGOUT */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;

    background: #ffffff;
    color: #111827;

    border: none;
    border-radius: 6px;

    padding: 8px 12px;
    font-size: 14px;

    cursor: pointer;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #f3f4f6;
}

/* ikonka */
.logout-icon {
    font-size: 16px;
}

/* BUTTONS */
.btn {
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    background: #3880ff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1f2937;
}

.btn-light {
    background: #e5e7eb;
    color: #111827;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
}

/* HEADER */
thead tr {
    background: #2b6fad; /* kolor ze zdjęcia */
}

thead th {
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

thead th a {
    color: #fff;
    text-decoration: none;
}

/* WYRÓWNANIE KOLUMN */
thead th:last-child,
tbody td:last-child {
    text-align: right;
}

/* WIERSZE */
tbody tr:nth-child(odd) {
    background: #ffffff;
}

tbody tr:nth-child(even) {
    background: #f3f4f6;
}

/* KOMÓRKI */
tbody td {
    padding: 16px;
    vertical-align: top;
    font-size: 14px;
    color: #111827;
}

/* LEWA KOLUMNA */
.table-main {
    font-weight: 600;
    margin-bottom: 6px;
}

.table-sub {
    color: #374151;
}

/* PRAWA KOLUMNA */
.table-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

/* HOVER */
tbody tr:hover {
    background: #e5e7eb;
}

/* BADGES */
.badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* FORMS */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

input, select, textarea {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}


/* ALERTY */
.success-box {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.error-box {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.warning-box {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 14px;
}

.form-help {
    margin-top: 6px;
    display: block;
    font-size: 12px;
    color: #6b7280;
}

/* FOOTER */
.footer {
    background: #1e6db8;
    color: #fff;
    text-align: center;
    margin-top: auto;
    position: fixed;
    bottom: 0px;
    left: 0px;
    max-width: 100%;
    width: 100%;
}

.footer-left {
    display: block;
    float: left;
    padding: 10px;
}

.footer-right {
    line-height: 22px;
    padding: 10px;
    display: block;
    float: right;
    font-size: small;
}

.footer .footer-logo-img {
    height: 22px;
    width: auto;
}


.filters {
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.filters .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.filters label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: bold;
}

.filters input,
.filters select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.filters-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(120deg, #109ce8 0%, #2f65b8 65%, #830047 100%);
}

.login-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo img {
    width: 80%;
    max-width: 1200px;
    height: auto;
}

.login-card {
    width: 86%;
    margin: 0 auto;
    background: #f7f7f7;
    border-radius: 4px;
    padding: 24px 36px 26px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.login-card h1 {
    text-align: center;
    font-size: 22px;
    font-weight: normal;
    margin: 0 0 36px;
    color: #111;
}

.login-form-group {
    margin-bottom: 18px;
}

.login-form-group label {
    display: block;
    font-size: 13px;
    color: #111;
    margin-bottom: 6px;
}

.login-form-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cfcfcf;
    background: transparent;
    padding: 8px 0 10px;
    font-size: 18px;
    outline: none;
    box-sizing: border-box;
}

.login-form-group input::placeholder {
    color: #777;
}

.password-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    border-bottom: 1px solid #cfcfcf;
}

.password-row input {
    border-bottom: none;
}

.forgot-link {
    padding-bottom: 12px;
    font-size: 14px;
    color: #1f67b3;
    text-decoration: none;
    white-space: nowrap;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    margin-top: 24px;
    padding: 13px 16px;
    border: none;
    border-radius: 4px;
    background: #2874b9;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.login-submit:hover {
    background: #1f65a3;
}

@media (max-width: 800px) {
    .login-wrapper {
        padding-top: 50px;
    }

    .login-logo img {
        width: 90%;
    }

    .login-card {
        width: calc(100% - 32px);
        padding: 22px;
    }

    .password-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .forgot-link {
        padding-bottom: 10px;
    }
}

.pagination {
    margin: 3em;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;

    display: flex;
    justify-content: flex-end;
}

.pagination nav {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.pagination .pagination {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    list-style: none;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;
    padding: 0 12px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #fff;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
}

.pagination .page-link:hover {
    background: #f3f4f6;
}

.pagination .page-item.active .page-link {
    background: #2b6fad;
    border-color: #2b6fad;
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.empty {
    margin-top: 40px;
    padding: 40px 20px;

    text-align: center;

    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 10px;

    color: #6b7280;
    font-size: 16px;
}

.container > h1 {
    max-width: 900px;
    margin: 28px auto 24px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.form {
    max-width: 1200px;
    min-width: 900px;
    margin: 0 auto 40px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.form-group.full {
    grid-column: 1 / -1;
}

/* LABELS */
.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* INPUTS */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cfd6df;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2b6fad;
    box-shadow: 0 0 0 3px rgba(43, 111, 173, 0.15);
}

/* CHECKBOXES */
.checkbox-row {
    display: flex;
    gap: 24px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
}

/* ACTIONS */
.actions {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    justify-content: flex-end;
}

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 0;
    border-radius: 7px;
    background: #2b6fad;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover,
button.btn:hover {
    background: #245f95;
}

.btn-light {
    background: #e5e7eb;
    color: #111827;
}

.btn-light:hover {
    background: #d1d5db;
}

/* ERRORS */
.error-box {
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
}

.field-error {
    margin-top: 6px;
    color: #b91c1c;
    font-size: 13px;
}

/* MOBILE */
@media (max-width: 800px) {
    .container form,
    .container > h1,
    .error-box {
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .btn,
    button.btn {
        width: 100%;
    }
}

.forgot-back-link {
    display: inline-block;
    margin-top: 16px;

    color: #2b6fad;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-back-link:hover {
    text-decoration: underline;
}

label.required::after {
    content: " *";
    color: #dc2626;
    font-weight: bold;
}


.privacy-page {
    min-height: 100vh;
    padding: 40px 20px;
}

.privacy-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 36px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.privacy-container h1 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 30px;
    color: #111827;
}

.privacy-content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.privacy-content h2 {
    margin-top: 30px;
    font-size: 22px;
    color: #111827;
}

.privacy-content h3 {
    margin-top: 22px;
    font-size: 18px;
    color: #111827;
}

.privacy-content p {
    margin-bottom: 14px;
}

.privacy-content ul,
.privacy-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.license-card {
    min-height: 100vh;
    padding: 40px 20px;
}

.license-card-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 36px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.license-card h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #111827;
    font-size: 26px;
}

.license-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
}
