/* 
 * Portal CSS - Style dla portalu Orlęta Płońsk
 */

/* Zmienne dla motywów kolorystycznych */
/* Standardowy motyw - domyślny */
/* :root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --sidebar-bg: #0d6efd;
    --sidebar-text: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.125);
    --hover-bg: rgba(0, 123, 255, 0.05);
} */
 :root {
    --sidebar-text: #fff;
    --card-bg: #eee;
    --card-header-bg: rgba(169, 174, 118, 0.15);
    --border-color: rgba(0, 0, 0, 0.125);
    --hover-bg: rgba(0, 123, 255, 0.15);

    --pastel-1: #ef9a9a;
    --pastel-2: #90caf9;
    --pastel-3: #81c784;
    --pastel-4: #fff59d;
    --pastel-5: #c9a1d0;
    --pastel-6: #bdbdbd;
    --pastel-7: #b08968;
    --pastel-8: #80cbc4;
    --pastel-9: #9fa8da;
 }

/* Zastosowanie zmiennych do elementów html i body */
html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--local-transition-medium) ease, color var(--local-transition-medium) ease;
}

/* Wymuszenie natychmiastowego zastosowania motywu */
html.theme-field, body.theme-field,
html.theme-historical, body.theme-historical,
html.theme-night, body.theme-night,
html.theme-junior, body.theme-junior {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

.bg-pastel-1 { background-color: var(--pastel-1) !important; }
.bg-pastel-2 { background-color: var(--pastel-2) !important; }
.bg-pastel-3 { background-color: var(--pastel-3) !important; }
.bg-pastel-4 { background-color: var(--pastel-4) !important; }
.bg-pastel-5 { background-color: var(--pastel-5) !important; }
.bg-pastel-6 { background-color: var(--pastel-6) !important; }
.bg-pastel-7 { background-color: var(--pastel-7) !important; }
.bg-pastel-8 { background-color: var(--pastel-8) !important; }
.bg-pastel-9 { background-color: var(--pastel-9) !important; }

.bg-pastel-1, .bg-pastel-2, .bg-pastel-3, .bg-pastel-4, .bg-pastel-5,
.bg-pastel-5, .bg-pastel-6, .bg-pastel-7, .bg-pastel-8, .bg-pastel-9 {
    color: var(--text-color);
}

/* Motyw polowy */
.theme-field {
    --primary-color: #2e7d32;
    --secondary-color: #5d4037;
    --success-color: #1b5e20;
    --info-color: #004d40;
    --warning-color: #bf8f00;
    --danger-color: #b71c1c;
    --light-color: #e8f5e9;
    --dark-color: #1b3a1b;
    
    --bg-color: #e8f5e9;
    --text-color: #1b3a1b;
    --sidebar-bg: #2e7d32;
    --sidebar-text: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(46, 125, 50, 0.2);
    --hover-bg: rgba(46, 125, 50, 0.05);
}

/* Motyw historyczny */
.theme-historical {
    --primary-color: #b71c1c;
    --secondary-color: #757575;
    --success-color: #1b5e20;
    --info-color: #0288d1;
    --warning-color: #ff8f00;
    --danger-color: #7b1fa2;
    --light-color: #ffebee;
    --dark-color: #b71c1c;
    
    --bg-color: #ffebee;
    --text-color: #b71c1c;
    --sidebar-bg: #b71c1c;
    --sidebar-text: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(183, 28, 28, 0.2);
    --hover-bg: rgba(183, 28, 28, 0.05);
}

/* Motyw nocny */
.theme-night {
    --primary-color: #3f51b5;
    --secondary-color: #78909c;
    --success-color: #388e3c;
    --info-color: #0288d1;
    --warning-color: #ffa000;
    --danger-color: #d32f2f;
    --light-color: #424242;
    --dark-color: #212121;
    
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --sidebar-bg: #212121;
    --sidebar-text: #e0e0e0;
    --card-bg: #1e1e1e;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --muted-color: #aaaaaa; /* Jaśniejszy kolor dla text-muted w trybie nocnym */
    --card-header-bg: #2a2a2a; /* Kolor tła dla nagłówków kart w trybie nocnym */
    --table-header-bg: #2a2a2a; /* Kolor tła dla nagłówków tabel w trybie nocnym */
    --table-header-color: #e0e0e0; /* Kolor tekstu dla nagłówków tabel w trybie nocnym */
}

/* Motyw Junior - dla najmłodszych użytkowników (10-12 lat) */
.theme-junior {
    /* Żywe, przyjazne kolory */
    --primary-color: #4caf50;
    --secondary-color: #ff9800;
    --success-color: #8bc34a;
    --info-color: #03a9f4;
    --warning-color: #ffc107;
    --danger-color: #f44336;
    --light-color: #e8f5e9;
    --dark-color: #1b5e20;
    
    --bg-color: #f0f8ff;
    --text-color: #333333;
    --sidebar-bg: #4caf50;
    --sidebar-text: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(76, 175, 80, 0.3);
    --hover-bg: rgba(76, 175, 80, 0.1);
    
    /* Dodatkowe zmienne dla trybu Junior */
    --junior-font-size-base: 1.1rem;
    --junior-font-size-small: 0.95rem;
    --junior-font-size-large: 1.3rem;
    --junior-border-radius: 12px;
    --junior-padding: 1rem;
    --junior-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Loader */

.main-content {
    opacity: 1;
    transition: opacity var(--local-transition-long) ease-in-out;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Style dla paska bocznego */
.sidebar {
    min-height: 100vh;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 100;
    transition: all var(--local-transition-medium) ease;
    position: relative;
    overflow-y: auto;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    width: 100%;
}

/* Pozwalam na kontrolowanie szerokości przez Bootstrap */
#sidebar-wrapper {
    flex: 0 0 auto;
}

@media (min-width: 992px) {
    #sidebar-wrapper {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 1200px) {
    #sidebar-wrapper {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

.left-padding-2 {
    padding-left: 40px !important;
}

/* Logo w pasku bocznym */
.sidebar-logo {
    height: 60px;
    max-width: 100%;
    transition: transform var(--local-transition-medium) ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    padding: 1.25rem 0;
    text-align: center !important;
}

/* Avatar użytkownika */
.user-profile {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    transition: all var(--local-transition-medium) ease;
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.avatar-initials {
    display: flex;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
}

.avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.user-info {
    padding-left: 0.5rem;
}

.user-name {
    color: var(--sidebar-text);
    font-weight: 600;
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
}

.user-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* Style dla elementów menu */
.sidebar-menu {
    padding: 0;
    margin: 0 -0.5rem;
}

.sidebar-menu .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-menu .list-group-item {
    border: none;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
    padding: 0.75rem 1rem;
    transition: all var(--local-transition-short);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.75);
}

.sidebar-menu .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text);
}

.sidebar-menu .list-group-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--sidebar-text);
    font-weight: 500;
}

.sidebar-menu .list-group-item i {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--local-transition-short);
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-menu .list-group-item:hover i,
.sidebar-menu .list-group-item.active i {
    color: var(--sidebar-text);
}

.sidebar-menu .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Przycisk wylogowania */
.logout-btn {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--sidebar-text);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    transition: all var(--local-transition-short);
    margin-top: 1rem;
}

.logout-btn:hover {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    color: var(--sidebar-text);
}

.logout-btn i {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsywność paska bocznego */
@media (max-width: 767.98px) {
    /* .sidebar {
        width: 4.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    } */
    
    .sidebar-header {
        padding: 1rem 0;
        text-align: center;
    }
    
    .sidebar-logo {
        height: 32px;
    }
    
    .user-profile {
        padding: 0.5rem;
    }
    
    /* Usuwam style, które ukrywają etykiety w menu na urządzeniach mobilnych */
    /* 
    .sidebar .nav-item span,
    .sidebar .user-info,
    .sidebar .btn span {
        display: none;
    }
    */
    
    .sidebar-menu .list-group-item {
        text-align: left;
        padding: 0.75rem 0.5rem;
    }
    
    /* Usuwam style, które powodują problemy z ikonami */
    /*
    .sidebar-menu .list-group-item i {
        margin-right: 0 !important;
        font-size: 1.25rem;
    }
    
    .sidebar .avatar-initials,
    .sidebar .avatar-img {
        margin-right: 0 !important;
    }
    */
    
    .logout-btn {
        padding: 0.6rem;
    }
    
    .sidebar-menu .badge {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        font-size: 0.65rem;
        padding: 0.25em 0.5em;
    }
    
    .sidebar-menu .nav-item {
        position: relative;
    }
}

/* Mobile sidebar */
.mobile-sidebar-open .sidebar {
    width: 100% !important;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mobile-sidebar-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1050;
    background-color: var(--sidebar-bg);
    overflow-y: auto;
    animation: fadeIn 0.3s;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.mobile-sidebar-closing {
    animation: fadeOut 0.3s;
}

/* Przycisk zamykania mobilnego menu */
.mobile-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1060;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Upewniamy się, że wszystkie etykiety są widoczne na mobile */
.mobile-sidebar-open .sidebar .nav-item span,
.mobile-sidebar-open .sidebar .user-info,
.mobile-sidebar-open .sidebar .btn span {
    display: inline-block !important;
}

/* Upewniamy się, że ikony mają odpowiedni margines z prawej strony */
.mobile-sidebar-open .sidebar-menu .list-group-item i {
    margin-right: 0.5rem !important;
}

/* Styl dla submenu w trybie mobilnym */
.mobile-sidebar-open .collapse.show {
    display: block !important;
}

/* Progress bar */
.progress-bar-initial {
    width: 0%;
} 

/* Style dla toastów */
#toast-container {
    z-index: 1060;
}

.toast {
    min-width: 300px;
}

/* Style dla wierszy tabeli wydarzeń */
.event-row {
    transition: background-color var(--local-transition-short);
    cursor: pointer;
}

.event-row:hover {
    background-color: var(--hover-bg);
}

/* Style dla przycisków akcji w tabeli */
.event-row .btn {
    opacity: 0.7;
    transition: opacity var(--local-transition-short);
}

.event-row:hover .btn {
    opacity: 1;
}

/* Stopka w pasku bocznym */
.sidebar-footer {
    padding: 1rem 0;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity var(--local-transition-medium);
}

.sidebar-footer:hover {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .sidebar-footer {
        display: none;
    }
}

/* Style dla modala */
.no-indent { text-indent: 0 !important; }

/* Style dla kart */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.card-header {
    background-color: var(--card-header-bg) !important;
    border-color: var(--border-color);
}

.card-footer {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.card-text {
    text-indent: 0 !important;
    text-align: left !important;
}

/* Style dla tabel */
.table {
    color: var(--text-color);
}

/* Style hover dla wierszy tabel */
.table tbody tr {
    transition: background-color var(--local-transition-short);
    cursor: pointer;
}

.table tbody tr:hover {
    background-color: var(--hover-bg) !important;
}

/* Specyficzne style dla tabeli obecności */
.attendance-row {
    transition: background-color var(--local-transition-short);
    cursor: pointer;
}

.attendance-row:hover {
    background-color: var(--hover-bg) !important;
}

/* Nadpisanie Bootstrap-owego table-hover */
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
    background-color: var(--hover-bg) !important;
}

/* Dodatkowe style dla różnych typów tabel */
.table-striped tbody tr:hover {
    background-color: var(--hover-bg) !important;
}

.table-light {
    color: var(--text-color);
    background-color: var(--light-color);
}

.table-light tr:hover {
    background-color: var(--hover-bg) !important;
}

/* Style hover dla motywu nocnego */
.theme-night .table tbody tr:hover,
.theme-night .attendance-row:hover,
.theme-night .table-hover > tbody > tr:hover > td,
.theme-night .table-hover > tbody > tr:hover > th {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.theme-night .table-light tr:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Style hover dla motywu polowego */
.theme-field .table tbody tr:hover,
.theme-field .attendance-row:hover,
.theme-field .table-hover > tbody > tr:hover > td,
.theme-field .table-hover > tbody > tr:hover > th {
    background-color: rgba(46, 125, 50, 0.08) !important;
}

/* Style hover dla motywu historycznego */
.theme-historical .table tbody tr:hover,
.theme-historical .attendance-row:hover,
.theme-historical .table-hover > tbody > tr:hover > td,
.theme-historical .table-hover > tbody > tr:hover > th {
    background-color: rgba(183, 28, 28, 0.08) !important;
}

/* Style hover dla motywu Junior */
.theme-junior .table tbody tr:hover,
.theme-junior .attendance-row:hover,
.theme-junior .table-hover > tbody > tr:hover > td,
.theme-junior .table-hover > tbody > tr:hover > th {
    background-color: rgba(76, 175, 80, 0.15) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style dla przycisków */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-outline-success {
    color: var(--success-color);
    border-color: var(--success-color);
}

.btn-outline-success:hover {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-outline-danger {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Przełącznik motywów */
.theme-switcher {
    cursor: pointer;
    position: sticky;
    bottom: 20px;
    left: 20px;
    padding: 25% 33%;
    border-radius: 25px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform var(--local-transition-short), background-color var(--local-transition-short);
}

.theme-night .theme-switcher {
    background-color: #2d2d2d;
    border-color: #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.theme-switcher:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.5);
}

.theme-menu {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 1000;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.theme-night .theme-menu {
    background-color: #2d2d2d;
    border-color: #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.theme-menu.show {
    display: block;
}

.theme-option {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color var(--local-transition-short);
    color: #222;
}

.theme-option:last-child {
    margin-bottom: 0;
}

.theme-option:hover {
    background-color: var(--hover-bg);
}

.theme-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Dostosowanie kolorów dla trybu nocnego */
.theme-night .text-muted {
    color: var(--muted-color) !important;
}

.theme-night .card-header.bg-white {
    background-color: var(--card-header-bg) !important;
}

.theme-night .table-light, 
.theme-night .table thead.table-light,
.theme-night thead.table-light {
    background-color: var(--table-header-bg) !important;
    color: var(--table-header-color) !important;
}

.theme-night .table-light th {
    color: var(--table-header-color) !important;
}

/* Dodatkowe dostosowania dla trybu nocnego */
.theme-night .modal-content {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.theme-night .modal-header,
.theme-night .modal-footer {
    border-color: var(--border-color);
}

.theme-night .form-control,
.theme-night .form-select {
    background-color: #333;
    border-color: var(--border-color);
    color: var(--text-color);
}

.theme-night .form-control:focus,
.theme-night .form-select:focus {
    background-color: #3a3a3a;
    color: var(--text-color);
}

.theme-night .form-control::placeholder {
    color: #888;
}

.theme-night .dropdown-menu {
    background-color: #2a2a2a;
    border-color: var(--border-color);
}

.theme-night .dropdown-item {
    color: var(--text-color);
}

.theme-night .dropdown-item:hover {
    background-color: #333;
}

.theme-night .list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.theme-night .bg-light {
    background-color: #1a1a1a !important;
}

.theme-night .bg-white {
    background-color: var(--card-bg) !important;
}

.theme-night .border-bottom {
    border-color: var(--border-color) !important;
}

.theme-night .text-dark {
    color: var(--text-color) !important;
}

.theme-night #loader-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Przyciski w trybie nocnym */
.theme-night .btn-light {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

.theme-night .btn-light:hover {
    background-color: #444;
    border-color: #555;
    color: #ffffff;
}

.theme-night .btn-outline-secondary {
    color: #aaa;
    border-color: #555;
}

.theme-night .btn-outline-secondary:hover {
    background-color: #444;
    color: #fff;
}

.theme-night .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Poprawki dla odznak w trybie nocnym */
.theme-night .badge-card {
    background-color: var(--card-bg);
}

.theme-night .badge-preview {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Style dla trybu Junior */
.theme-junior body {
    font-size: var(--junior-font-size-base);
}

/* Większe przyciski z większym odstępem */
.theme-junior .btn {
    padding: 0.6rem 1.2rem;
    font-size: var(--junior-font-size-base);
    border-radius: var(--junior-border-radius);
    margin: 0.3rem;
    box-shadow: var(--junior-shadow);
    font-weight: 600;
}

/* Większe ikony w przyciskach */
.theme-junior .btn i {
    font-size: 1.2em;
    margin-right: 0.5rem;
}

/* Karty z zaokrąglonymi rogami i cieniem */
.theme-junior .card {
    border-radius: var(--junior-border-radius);
    box-shadow: var(--junior-shadow);
    margin-bottom: 1.5rem;
    border-width: 2px;
}

.theme-junior .card-header {
    font-size: var(--junior-font-size-large);
    font-weight: 600;
    padding: var(--junior-padding);
    border-radius: var(--junior-border-radius) var(--junior-border-radius) 0 0;
}

.theme-junior .card-body {
    padding: var(--junior-padding);
}

/* Większe elementy formularzy */
.theme-junior .form-control,
.theme-junior .form-select {
    font-size: var(--junior-font-size-base);
    padding: 0.7rem 1rem;
    border-radius: var(--junior-border-radius);
    border-width: 2px;
    height: auto;
}

.theme-junior .form-label {
    font-size: var(--junior-font-size-base);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Tabele z większym odstępem */
.theme-junior .table {
    font-size: var(--junior-font-size-base);
}

.theme-junior .table th,
.theme-junior .table td {
    padding: 1rem;
}

/* Większe ikony w menu bocznym */
.theme-junior .sidebar-menu .list-group-item i {
    font-size: 1.5rem;
    width: 2rem;
}

.theme-junior .sidebar-menu .list-group-item {
    padding: 1rem 1.2rem;
    font-size: var(--junior-font-size-base);
    font-weight: 500;
}

/* Większe odstępy w menu */
.theme-junior .sidebar-menu .nav-item {
    margin-bottom: 0.5rem;
}

/* Większe avatary */
.theme-junior .avatar-img,
.theme-junior .avatar-initials {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

/* Większe nagłówki */
.theme-junior h1, .theme-junior .h1 {
    font-size: 2.5rem;
}

.theme-junior h2, .theme-junior .h2 {
    font-size: 2rem;
}

.theme-junior h3, .theme-junior .h3 {
    font-size: 1.75rem;
}

/* Wyraźniejsze komunikaty */
.theme-junior .alert {
    font-size: var(--junior-font-size-base);
    font-weight: 500;
    border-radius: var(--junior-border-radius);
    padding: var(--junior-padding);
    border-width: 2px;
    box-shadow: var(--junior-shadow);
}

/* Większe odznaki */
.theme-junior .badge {
    font-size: 0.9rem;
    padding: 0.5em 0.8em;
    border-radius: 10px;
}

/* Większy przełącznik motywów */
.theme-junior .theme-switcher {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.theme-junior .theme-menu {
    font-size: var(--junior-font-size-base);
}

.theme-junior .theme-option {
    padding: 12px 20px;
}

/* Style dla przycisków w motywie Junior */
.theme-junior .btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--local-transition-medium) ease;
}

.theme-junior .btn:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animowane ikony w menu */
.theme-junior .sidebar-menu .list-group-item:hover i {
    animation: wiggle var(--local-transition-long) ease;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Wyróżnienie aktywnego elementu */
.theme-junior .list-group-item.active {
    border-left: 5px solid var(--warning-color);
    padding-left: calc(var(--junior-padding) - 5px);
}

/* Zaokrąglone obrazki */
.theme-junior img {
    border-radius: 8px;
}

/* Efekt hover na kartach */
.theme-junior .card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--local-transition-medium) ease;
}

/* Kolorowe ikony w alertach */
.theme-junior .alert-success i {
    color: var(--success-color);
}

.theme-junior .alert-warning i {
    color: var(--warning-color);
}

.theme-junior .alert-danger i {
    color: var(--danger-color);
}

.theme-junior .alert-info i {
    color: var(--info-color);
}

/* Większe odstępy w listach */
.theme-junior ul, .theme-junior ol {
    padding-left: 2rem;
}

.theme-junior li {
    margin-bottom: 0.5rem;
}

/* Wyróżnione linki */
.theme-junior a:not(.btn):not(.nav-link):not(.list-group-item) {
    text-decoration: underline;
    font-weight: 500;
    color: var(--primary-color);
}

.theme-junior a:not(.btn):not(.nav-link):not(.list-group-item):hover {
    color: var(--success-color);
}

/* Style dla kalendarza */
.calendar-table {
    table-layout: fixed;
}

.calendar-day {
    position: relative;
    height: 80px;
    vertical-align: top;
    cursor: pointer;
    transition: background-color var(--local-transition-short);
}

.calendar-day:hover {
    background-color: var(--hover-bg);
}

.calendar-day.today {
    background-color: rgba(13, 110, 253, 0.1);
    font-weight: bold;
}

.calendar-day.selected {
    background-color: rgba(13, 110, 253, 0.2);
}

.empty-day {
    background-color: #f9f9f9;
}

.day-content {
    padding: 4px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Nowe style dla tagów wydarzeń zamiast kropek */
.event-tags {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.65rem;
}

.event-tag {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.event-more-tag {
    background-color: var(--secondary-color);
    color: white;
}

/* Style dla minionych dni w kalendarzu */
.calendar-day.past-day {
    background-color: rgba(0, 0, 0, 0.05);
    color: #888;
}

.theme-night .calendar-day.past-day {
    background-color: rgba(255, 255, 255, 0.03);
    color: #777;
}

/* Upewniamy się, że dzisiejszy dzień ma priorytet stylowania ponad minione dni */
.calendar-day.today {
    background-color: rgba(13, 110, 253, 0.1);
    font-weight: bold;
}

.theme-night .calendar-day.today {
    background-color: rgba(63, 81, 181, 0.2);
}

/* Styl dla obrazka stopnia */
.rank-img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

/* Styl dla linku wylogowania */
.logout-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: all var(--local-transition-short);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 20px;
}

.logout-link:hover {
    background-color: rgba(220, 53, 69, 0.2);
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 767.98px) {
    .sidebar-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .logout-link {
        margin-top: 5px;
    }
}

/* Styl dla awatara */
.avatar-preview-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.avatar-preview-initials {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: bold;
    color: white;
    background-color: #0d6efd;
}

.avatar-pending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed #ffc107;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.avatar-pending-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.avatar-pending-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffc107;
    color: #212529;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

/* Styl dla inicjałów */
.avatar-initials-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
    background-color: #0d6efd;
}

/* Styl dla siatki domyślnych awatarów */
.default-avatars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.avatar-form {
    display: contents;
}

.avatar-button {
    padding: 5px;
    border: 2px solid transparent;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--local-transition-short);
}

.avatar-button:hover {
    transform: scale(1.05);
}

.avatar-button.active {
    border-color: #0d6efd;
}

.avatar-button img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

/* Style dla walidacji hasła */
.password-requirements {
    margin-top: 8px;
    font-size: 0.82rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 8px 12px;
    border-left: 3px solid #dee2e6;
}

.password-requirement {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.password-requirement i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.requirement-met {
    color: #198754;
}

.requirement-not-met {
    color: #6c757d;
}

.badge-card {
    border-radius: 10px;
    transition: all var(--local-transition-short);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}
.badge-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.badge-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.badge-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}
.badge-bronze { background-color: #cd7f32; color: white; }
.badge-silver { background-color: #c0c0c0; color: white; }
.badge-gold { background-color: #ffd700; color: black; }
.badge-platinum { background-color: #e5e4e2; color: black; }
.tab-content {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
}
.badge-action-buttons {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: none;
}
.badge-card:hover .badge-action-buttons {
    display: block;
}

.color-box {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.sortable {
    cursor: pointer;
}

/* Styl dla miniaturek awatarów */
.avatar-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.modal-header {
    background-color: rgba(var(--primary-color-rgb), 0.5);
    color: var(--text-color);
}

.btn-no-border-primary {
    border: none;
    background-color: transparent;
    color: var(--primary-color);
}

.btn-no-border-primary:hover {
    background-color: transparent;
}

/* Style dla zakładek */
.nav-tabs {
    border-bottom: 0;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    color: #495057;
    background-color: #f0f0f0;
    transition: all 0.2s ease-in-out;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #1e5283;
    background-color: #bbb;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
    border: 0;
    border-bottom: 1px solid var(--primary-color) !important;
}

.nav-tabs .nav-link.active:hover {
    color: #fff;
    background-color: #154273;
}

/* Style dla zawartości zakładek */
.tab-content {
    padding-top: 1.5rem;
}

.rank-image {
    width: 30px;
    height: 30px;
    margin-right: 5px;
    border-radius: 5px;
}

.table-light tr:hover {
    background-color: #f8f9fa;
}
