/* style.css - Wspólne style dla systemu INF.02 */
/* Połączone style z home.css i oryginalnego style.css */
:content-wrapper {
    --width: 1800px
}
/* ===== ZMIENNE CSS ===== */
:root {
    /* Kolory główne */
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #4895ef;
    --secondary-color: #f72585;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #f94144;
    --info-color: #577590;
    
    /* Kolory tła */
    --bg-primary: #f8f9fa;
    --bg-secondary: #e9ecef;
    --bg-light: #f8f9ff;
    --bg-dark: #212529;
    
    /* Kolory tekstu */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    
    /* Gradienty */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #b5179e 100%);
    
    /* Obramowania */
    --border-color: #dee2e6;
    --border-radius: 10px;
    --border-radius-sm: 6px;
    --border-radius-lg: 15px;
    
    /* Cienie */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    
    /* Rozmiary */
    --header-height: 60px;
    --container-max: 1400px;
}

/* ===== RESET I BAZOWE STYLE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-white-50 { color: rgba(255,255,255,0.7) !important; }

/* ===== PRZYCISKI ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-light {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background: var(--bg-secondary);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

.btn-warning {
    background: var(--warning-color);
    color: #333;
}

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

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

.btn-info {
    background: var(--info-color);
    color: white;
}

/* ===== KARTY ===== */
.card {
    background: white;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-header {
    background: white;
    border-bottom: 2px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* ===== FORMLARZE ===== */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: white;
    transition: all 0.2s ease;
    font-size: 1rem;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-text {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== TABELE ===== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-secondary);
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.table-responsive {
    overflow-x: auto;
}

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: #333;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

/* ===== NAVBAR ===== */
.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 1rem; /* Standardowy padding Bootstrap */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    flex-wrap: inherit; /* Poprawka dla Bootstrap */
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
    display: block;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

.navbar-nav .nav-link i {
    margin-right: 0.25rem;
    width: 1.25rem;
    text-align: center;
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    white-space: nowrap;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
    list-style: none;
    background-color: white;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
}

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

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.dropdown-item.active,
.dropdown-item:active {
    color: white;
    text-decoration: none;
    background-color: var(--primary-color);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

.dropdown-item.text-danger {
    color: var(--danger-color) !important;
}
.dropdown-item.text-danger:hover {
    background-color: var(--danger-color);
    color: white !important;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 600;
}

/* ===== ALERTY ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: rgba(76, 201, 240, 0.1);
    border-color: rgba(76, 201, 240, 0.2);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(249, 65, 68, 0.1);
    border-color: rgba(249, 65, 68, 0.2);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(248, 150, 30, 0.1);
    border-color: rgba(248, 150, 30, 0.2);
    color: var(--warning-color);
}

/* ===== LIST GROUP ===== */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: var(--border-radius);
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: white;
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.list-group-item:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.list-group-item:last-child {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

.list-group-item-action {
    width: 100%;
    color: var(--text-secondary);
    text-align: inherit;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    z-index: 1;
    color: var(--text-primary);
    text-decoration: none;
    background-color: var(--bg-light);
}

.list-group-flush {
    border-radius: 0;
}

.list-group-flush .list-group-item {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.list-group-flush .list-group-item:first-child {
    border-top: 0;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: 0;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col { flex: 1 0 0%; padding: 0 0.75rem; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; padding: 0 0.75rem; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; padding: 0 0.75rem; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 0.75rem; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 0.75rem; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; padding: 0 0.75rem; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.75rem; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; padding: 0 0.75rem; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 0.75rem; }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 0.75rem; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; padding: 0 0.75rem; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; padding: 0 0.75rem; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }

.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; } /* Dodane */
.d-none { display: none !important; }
.d-md-inline { display: none !important; } /* Domyślnie ukryte, pokażemy w media query */
.d-md-block { display: none !important; }
.d-lg-inline { display: none !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 2rem !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-start { text-align: left !important; } /* Dodane dla Bootstrap */

.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-auto { margin-left: auto !important; } /* Dodane */

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 2rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }

.rounded-circle { border-radius: 50% !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-white { background-color: white !important; }

/* ===== COMPONENTS SPECJALNE ===== */
.hero-section {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,165.3C960,149,1056,139,1152,149.3C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.stat-card {
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.stat-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-card p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.2s;
}

.list-group-item:hover .activity-icon {
    background: var(--primary-color);
    color: white;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* ===== PAGINACJA ===== */
.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
}

.page-item .page-link {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--primary-color);
    text-decoration: none;
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    pointer-events: none;
    background-color: var(--bg-light);
}

/* ===== PROGRESS BAR ===== */
.progress {
    height: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: 50rem;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: 50rem;
    transition: width 0.6s ease;
}

/* ===== ANIMACJE ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (min-width: 768px) {
    .d-md-inline { display: inline !important; }
    .d-md-none { display: none !important; }
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-expand-lg .navbar-toggler {
        display: none;
    }
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 992px) {
    .d-lg-inline { display: inline !important; }
    .d-lg-none { display: none !important; }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        border-radius: 0 0 30px 30px;
        text-align: center;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
}

/* ===== CIEMNY MOTYW ===== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1e24;
        color: #e9ecef;
    }
    
    .card, .navbar, .dropdown-menu, .list-group-item {
        background-color: #2d3748;
        color: #e9ecef;
    }
    
    .card-header, .card-footer {
        background-color: #1e2a3a;
        border-color: #4a5568;
    }
    
    .navbar {
        background-color: #2d3748;
    }
    
    .navbar-nav .nav-link {
        color: #cbd5e0;
    }
    
    .dropdown-menu {
        border-color: #4a5568;
    }
    
    .dropdown-item {
        color: #cbd5e0;
    }
    
    .dropdown-item:hover {
        background-color: #4a5568;
        color: white;
    }
    
    .list-group-item {
        border-color: #4a5568;
    }
    
    .list-group-item-action:hover {
        background-color: #4a5568;
    }
    
    .bg-light {
        background-color: #2d3748 !important;
    }
    
    .text-muted {
        color: #a0aec0 !important;
    }
    
    .border-color {
        border-color: #4a5568;
    }
    
    .activity-icon {
        background: #4a5568;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-section {
        background: none;
        color: black;
        padding: 1rem 0;
    }
    
    .stat-card {
        border: 1px solid #ddd;
        color: black;
        break-inside: avoid;
    }
    
    .btn, .navbar, .no-print {
        display: none !important;
    }
}






.sidebar .sidebar-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #6c757d);
    margin-bottom: 10px;
}

.sidebar .user-profile-card {
    padding: 15px;
    background: var(--bg-light, #f8f9ff);
    border-radius: var(--border-radius, 10px);
}

.sidebar .nav-menu .nav-link,
.sidebar .topics-menu .nav-link {
    padding: 8px 12px;
    color: var(--text-secondary, #4a5568);
    border-radius: var(--border-radius-sm, 6px);
    margin-bottom: 2px;
    text-decoration: none;
    display: block;
}

.sidebar .nav-menu .nav-link i,
.sidebar .topics-menu .nav-link i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-color, #4361ee);
}

.sidebar .nav-menu .nav-link:hover,
.sidebar .topics-menu .nav-link:hover {
    background: var(--bg-light, #f8f9ff);
    color: var(--primary-color, #4361ee);
}

.sidebar .nav-menu .nav-link.active,
.sidebar .topics-menu .nav-link.active {
    background: var(--gradient-primary, linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%));
    color: white;
}

.sidebar .nav-menu .nav-link.active i,
.sidebar .topics-menu .nav-link.active i {
    color: white;
}

.sidebar .topic-number {
    display: inline-block;
    width: 24px;
    font-weight: 600;
    color: var(--primary-color, #4361ee);
}

.sidebar .nav-link.active .topic-number {
    color: white;
}

@media (max-width: 768px) {
    .sidebar {
        margin-bottom: 20px;
    }
}


