/*
<weight>: Use a value from 300 to 800
<uniquifier>: Use a unique and descriptive class name
*/

/*---WSPÓLNE---*/

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

#body-login {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f20300, #0094de);
}

#main-login {
    flex: 1;
}

#login {
    border: 1px solid rgba(153,153,153, 0.8);
    width: 400px;
    height: 500px;
    background-color: rgba(51, 51, 51, 0.8);
    color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    margin: auto;
}

#login form {
    display: block;
    box-sizing: border-box;
    padding: 40px;
    width: 100%;
    height: 100%;
    flex-direction: column;
    display: flex;
    gap: 5px;
}

#login h1 {
    font-weight: normal;
    font-size: 24px;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

#login label {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    padding-left: 10px;
}

#login input {
    background: rgba(255, 255, 255, 0.3);
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    padding: 0px 20px;
    border: none;
    margin-bottom: 20px;
    color: white;
}

#login button {
    background: linear-gradient(90deg, #f20300, #0094de);
    height: 40px;
    line-height: 40px;
    border-radius: 40px;
    border: none;
    margin: 10px 0px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

#login button:hover {
    cursor: pointer;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}

#login span {
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: -5px;
    text-align: center;
}

#akapit-form-index {
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
}

#akapit-form-index a {
    color: white;
    text-decoration: none;
}

::placeholder {
  color: white;
  opacity: 1;
}

.body-strona_glowna {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    background: linear-gradient(135deg, #f20300, #0094de);
    height: 100%;
}

header {
    background-color: rgba(51, 51, 51, 0.8);
    color: white;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    margin: 5px;
    border-radius: 20px;
}

.logo-header {
    height: 100px;
    margin: 10px;
    display: block;
}

header h1 {
    font-weight: 600;
    font-size: 36px;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
    margin: 0px;
}

.logout-header {
    height: 40px;
    margin: 40px 30px 40px 50px;
}

.logout-header:hover {
    cursor: pointer;
    scale: 1.1;
}

.section-srodek {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 200px);
}

.section-srodek nav {
    background-color: rgba(51, 51, 51, 0.8);
    color: white;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75);
    height: 100%;
    width: 240px;
    margin: 5px;
    border-radius: 20px;
}

.section-srodek nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.section-srodek nav ul li {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    width: 180px;
    margin: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.section-srodek nav ul li:hover,
.section-srodek nav ul li.active {
    background: linear-gradient(90deg, #f20300, #0094de);
}

.section-srodek main {
    background-color: rgba(204, 204, 204, 0.8);
    color: #000;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75);
    height: 100%;
    flex: 1;
    margin: 5px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 600;
    overflow-y: auto;
}

footer {
    background-color: rgba(51, 51, 51, 0.8);
    color: white;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75);
    height: 60px;
    margin: 5px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stopka_odnosnik-polityka {
    color: #ffffff;
    text-decoration: underline;
    margin: 0 0 0 15px;
}

/*---strona_glowna.php---*/

.strona-glowna_section-glowny {
    background-color: #FFF;
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: normal;
}

/*---profil.php---*/

.profil-dane {
    background-color: #FFF;
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
    font-size: 15px;
}

.button-edytuj_profil {
    background: linear-gradient(90deg, #f20300, #0094de);
    height: 40px;
    line-height: 40px;
    border-radius: 40px;
    border: none;
    margin: 10px 0px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    color: white;
    padding: 5px 20px;
    cursor: pointer;
    text-decoration: none;
}

/*---edytuj_profil.php---*/

.profil-edycja {
    background-color: #FFF;
    padding: 20px;
    margin: 20px;
    max-width: 600px;
    border-radius: 20px;
    font-size: medium;
}

.section-edycja-przyciski {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.button-edycja {
    padding: 8px 12px;
    border-radius: 6px;
    border: 0;
    background: #2e6da4;
    color: #fff;
    cursor: pointer;
}

.form-panel {
    display: none;
    background: #fff;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    max-width: 520px;
    margin-top: 12px;
}

.form-panel.active {
    display: block;
}

.form-row {
    margin-bottom: 12px;
}
.form-row input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-actions {
    text-align: right;
}
.form-actions button {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-cancel {
    margin-left: 8px;
    border: 1px solid #ccc;
    background: #fff;
}

/*---narzedzia.php---*/

.kafelek-aplikacja {
    cursor: pointer;
    display: inline-block;
    padding: 24px 32px;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 2px 8px #0001;
    margin: 20px;
    text-align: center;
    transition: box-shadow 0.2s;
}

/*--poligony.php---*/
.poligony_section-glowny {
    background-color: #FFF;
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
    font-size: 15px;
}

.poligony_section-glowny h2 {
    margin-bottom: 20px;
    color: #333;
}

.poligony_info-box {
    background: #f5f5f5;
    border-left: 4px solid #ddd;
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
}

.poligony_info-box p {
    margin: 0;
    color: #666;
}

.dashboard-card h3 {
    margin: 0 0 12px 0;
    color: #0094de;
    font-size: 18px;
}

.poligony_info {
    margin-bottom: 8px;
}

.poligony_label {
    color: #555;
    font-weight: bold;
}

.poligony_value {
    color: #333;
    font-size: 14px;
}

.poligony_warning {
    color: #ff6b6b;
    font-weight: bold;
}

.dashboard-card .action-button {
    width: 100%;
    margin-top: 8px;
}

/*---poligon.php---poligon_zapis.php---*/

.poligon_detail,
.poligon_form {
    background-color: #FFF;
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
    font-size: 15px;
}

.poligon_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.poligon_header h2 {
    margin: 0;
    color: #333;
    font-size: 22px;
}

.poligon_badge {
    background: #e6f2ff;
    color: #006fa3;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.poligon_meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.poligon_meta-item {
    background: #f8f9fb;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
}

.poligon_meta-item .label {
    color: #555;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.poligon_meta-item .value {
    color: #333;
    font-size: 14px;
}

.poligon_opis {
    background: #f5f5f5;
    border-left: 4px solid #ddd;
    padding: 16px;
    border-radius: 4px;
    margin: 16px 0;
    color: #444;
}

.poligon_actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.poligon_status {
    background: #f5f5f5;
    border-left: 4px solid #ddd;
    padding: 14px;
    border-radius: 4px;
    margin: 12px 0;
    color: #666;
}

.poligon_status.ok {
    border-left-color: #4CAF50;
    background: #f1f8f4;
    color: #2f6b3b;
}

.poligon_status.warn {
    border-left-color: #ff6b6b;
    background: #fff5f5;
    color: #9a2c2c;
}

.poligon_form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    margin-top: 8px;
}

.poligon_user-pickers {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.poligon_picker {
    flex: 1 1 320px;
}

.poligon_picker select {
    width: 100%;
    box-sizing: border-box;
}

/*---panel_zarzadzania.php---*/

#panel-zarzadzania_prosby-rejestracje,
#panel-zarzadzania_uzytkownicy {
    padding: 20px;
    background-color: #FFF;
    margin: 20px;
    border-radius: 20px;
    font-size: 0.8em;
}

#panel-zarzadzania_prosby-rejestracje_h2,
#panel-zarzadzania_uzytkownicy_h2 {
    text-align: center;
    margin: 5px 0 0 0;
    padding: 0;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

#panel-zarzadzania_prosby-rejestracje_h2 img,
#panel-zarzadzania_uzytkownicy_h2 img {
    width: 30px;
    margin-left: 10px;
    vertical-align: middle;
    cursor: pointer;
    transition: transform .18s ease;
    transform-origin: center;
}

.tabela-prosby-rejestracje,
.tabela-uzytkownicy {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
}

/* Kontener z poziomym przewijaniem dla szerokich tabel w panelu */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-scroll table {
    min-width: 1100px; /* wymusza pojawienie się poziomego paska na węższych ekranach */
}

.tabela-prosby-rejestracje th,
.tabela-prosby-rejestracje td,
.tabela-uzytkownicy th,
.tabela-uzytkownicy td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: left;
}

.tabela-prosby-rejestracje th
.tabela-uzytkownicy th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.collapsible {
    overflow: hidden;
    transition: max-height .28s ease, opacity .18s ease;
    max-height: 2000px;
    opacity: 1;
}

.collapsible.collapsed {
    max-height: 0;
    opacity: 0;
}

#panel-zarzadzania_prosby-rejestracje_h2.collapsed img {
    transform: rotate(-180deg);
}

.panel-zarzadzania_a-zatwierdz,
.panel-zarzadzania_a-edycja {
    cursor: pointer;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    padding: 4px 8px;
    font-size: 13px;
    background: #f0f0f0;
    font-family: Arial, sans-serif;
    font-weight: bold;
    white-space: nowrap;
    flex: 0 0 auto;
    display: inline-block;
}

.panel-zarzadzania_button-odrzuc,
.panel-zarzadzania_button-usun {
    cursor: pointer;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    padding: 4px 8px;
    font-size: 13px;
    background: #f0f0f0;
    font-family: Arial, sans-serif;
    font-weight: bold;
    white-space: nowrap;
    margin: 0;
}

.panel-zarzadzania_section-akcje {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/*---dodaj_uzytkownika.php---*/

.akceptuj-rejestracje_section-formularz {
    font-size: 16px;
    font-family: monospace;
    max-width: 760px;
    margin: 28px auto;
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    max-height: 800px;
}

.akceptuj-rejestracje_form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.akceptuj-rejestracje_form input[type="text"],
.akceptuj-rejestracje_form input[type="email"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.ident-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ident-row select,
.ident-row input {
    padding: 8px;
    font-size: 14px;
}

.info-dob {
    color: #444;
    margin-bottom: 5px;
}

/*---edytuj_uzytkownika.php---*/

.edytuj-uzytkownika_section-formularz {
    font-size: 16px;
    font-family: monospace;
    max-width: 760px;
    margin: 28px auto;
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}

.edytuj-uzytkownika_form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edytuj-uzytkownika_form input,
.edytuj-uzytkownika_form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.edytuj-uzytkownika_ident-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.edytuj-uzytkownika_ident-row select,
.edytuj-uzytkownika_ident-row input {
    padding: 8px;
    font-size: 14px;
}

.edytuj-uzytkownika_info-dob {
    color: #444;
    margin-bottom: 5px;
}

.info-dob {
    color: #444;
    margin-bottom: 5px;
}

.ident-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ident-row select,
.ident-row input {
    padding: 8px;
    font-size: 14px;
}

.ident-row select {
    flex: 0 0 72px;
    min-width: 48px;
    max-width: 100px;
}

.ident-row #ident_full {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

/*dwie kolumny w jednym wierszu*/
.two-col-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.two-col-row .col {
    flex: 1 1 0;
    min-width: 160px;
}

.two-col-row .col label {
    display: block;
}
/*------*/

.perms-fieldset input[type="checkbox"] {
    width: auto !important;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.perms-fieldset input[type="text"],
.perms-fieldset input[type="email"],
.perms-fieldset input[type="tel"],
.perms-fieldset input[type="date"],
.perms-fieldset textarea {
    width: 100%;
    box-sizing: border-box;
}

.perms-fieldset label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.perms-fieldset label > span {
    display: inline-block;
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 20px;
}

.dashboard h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 500;
}

.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h3 {
    color: #555;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.dashboard-card.alert {
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
}

.dashboard-card.alert:hover {
    border-left: 4px solid #ff5252;
}

.dashboard-card.primary {
    border-left: 4px solid #0094de;
    background: linear-gradient(135deg, #f0f8ff 0%, #e0f2ff 100%);
}

.dashboard-card.primary:hover {
    border-left: 4px solid #006fa3;
}

.dashboard-card.info {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, #f1f8f4 0%, #e0f5e9 100%);
}

.dashboard-card.secondary {
    border-left: 4px solid #666;
    background: white;
}

.card-number {
    font-size: 32px;
    font-weight: bold;
    color: #0094de;
    margin-bottom: 8px;
}

.dashboard-card.alert .card-number {
    color: #ff6b6b;
}

.dashboard-card.info .card-number {
    color: #4CAF50;
}

.card-label {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtext {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-button {
    display: inline-block;
    padding: 12px 20px;
    background: #0094de;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-button:hover {
    background: #006fa3;
    transform: translateY(-2px);
}

.action-button.logout {
    background: #ff6b6b;
}

.action-button.danger {
    background: #e11d48;
}

.action-button.logout:hover {
    background: #ff5252;
}

.action-button.danger:hover {
    background: #be123c;
}

.info-box {
    background: #f9f9f9;
    border-left: 4px solid #0094de;
    padding: 16px;
    border-radius: 6px;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dashboard {
        padding: 12px;
    }

    .dashboard h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-card {
        padding: 16px;
    }

    .card-number {
        font-size: 24px;
    }

    .quick-actions {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
        text-align: center;
    }
}

/* ===== RESPONSYWNOŚĆ (bez Drożyzna360 i panel_zarzadzania) ===== */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

@media (max-width: 1200px) {
    nav {
        position: relative;
    }
    .nav-toggle {
        display: inline-block;
        margin-bottom: 10px;
    }
    nav ul {
        display: none;
        flex-direction: column;
        gap: 8px;
        padding: 0;
    }
    nav ul.open {
        display: flex;
    }
    nav ul li {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        margin: 6px 0;
        max-width: none;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 12px;
        gap: 8px;
    }
    header .logo_text-header {
        font-size: 20px;
    }
    .logo-header {
        height: 72px;
        margin: 0;
    }
    .logout-header {
        margin: 0;
    }
    .section-srodek {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: 0;
        padding: 0 10px 16px;
        box-sizing: border-box;
    }
    .section-srodek nav {
        width: 100%;
        height: auto;
        margin: 5px 0 10px 0;
    }
    main {
        width: 100%;
        height: auto;
    }
    /* Formularze logowania/rejestracji */
    #login, #login form {
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: 0;
    }
    #login {
        margin: 20px auto;
    }
    #login input, #login button {
        width: 100%;
        box-sizing: border-box;
    }
    /* Karty dashboardu na 1 kolumnę */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    /* Kafelki narzędzi na całą szerokość */
    .kafelek-aplikacja {
        display: block;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        margin: 10px 0;
    }
    .section-srodek main {
        padding: 12px;
        box-sizing: border-box;
    }
    /* ===== WYŁĄCZENIE RESPONSYWNOŚCI DLA PANELU ===== */
    .panel-page nav { position: static; }
    .panel-page .nav-toggle { display: none !important; }
    .panel-page nav ul { display: block !important; flex-direction: column; gap: 0; padding: 0; }
    .panel-page nav ul li { width: 180px; padding: 20px; margin: 10px; box-sizing: content-box; }
    .panel-page header { flex-direction: row; align-items: center; height: 120px; padding: 0; gap: 0; }
    .panel-page .logo-header { height: 100px; margin: 10px; }
    .panel-page .logout-header { margin: 40px 30px 40px 50px; }
    .panel-page .section-srodek { flex-direction: row; align-items: center; height: calc(100% - 200px); min-height: auto; padding: 0; box-sizing: border-box; }
    .panel-page .section-srodek nav { width: 240px; height: 100%; margin: 5px; }
    .panel-page main { width: auto; height: 100%; padding: 0; }
}

/* --- wiadomosci.php --- */
.page-title {
    margin: 0 0 20px 0;
    font-weight: 700;
}

.messages-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.message-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 12px;
    margin: 20px;
}

.message-card h2 {
    margin: 0 0 10px 0;
    font-size: 25px;
}

.message-form .form-row { margin-bottom: 10px; display: block; }
.message-form label { font-size: 13px; }
.message-form input[type="text"],
.message-form textarea,
.message-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 4px;
}
.message-form textarea { resize: vertical; }
.message-recipient {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}
.radio-row { display: block; margin-bottom: 8px; }
.recipient-select { margin-left: 8px; min-width: 220px; }
.form-actions { text-align: right; }
.form-actions button {
    background: linear-gradient(90deg, #f20300, #0094de);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}
.message-tabs {
    display: flex;
    gap: 8px;
}
.message-tab-btn {
    background: white;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-radius: 6px;
    transition: all 0.2s;
}
.message-tab-btn:hover {
    border-color: #0094de;
}
.message-tab-btn.active {
    background: #0094de;
    color: white;
    border: none;
}
.message-tab-content {
    display: none;
}
.message-tab-content.active {
    display: block;
}
.message-lists {
    display: block;
}
.message-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.message-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.message-item.unread { 
    border-left: 4px solid #0094de;
    background: #ffffff;
}
.message-link { display:block; text-decoration:none; color:inherit; }
.message-link:focus-visible { outline: 2px solid #0094de; outline-offset: 2px; border-radius: 10px; }
.message-title { font-size: 14px; margin: 0; font-weight: 600; flex: 1 1 auto; }
.message-meta { color: #6b7280; font-size: 11px; white-space: nowrap; }
.message-excerpt { display: none; }
.message-actions { display: none; }
.message-tags { display: none; }
.alert-success,
.alert-error {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}
.alert-success { background: #ecfdf3; border: 1px solid #4ade80; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.message-view {
    border: 1px solid #0094de;
    background: #eef7ff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}
.message-view-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.message-view-title { font-size: 18px; margin: 0 0 6px 0; }
.message-body { margin-top: 10px; white-space: pre-line; font-size: 14px; }
.muted { color: #6b7280; font-size: 14px; }

/*---STRONY BŁĘDÓW---*/
.errorpage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f20300, #0094de);
    color: white;
    text-align: center;
    font-family: "Open Sans", sans-serif;
}

.errorpage-code {
    font-size: 120px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.errorpage-message {
    font-size: 28px;
    margin: 20px 0;
    font-weight: 600;
}

.errorpage-description {
    font-size: 16px;
    max-width: 600px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.errorpage-button {
    display: inline-block;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.errorpage-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}