body {
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    background-color: #f8f9fa;
    color: #344767;
}

#wrapper {
    min-height: 100vh;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
    background-color: #ffffff;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #f0f2f5;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 10px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 12px;
    color: #4b5563;
    background: transparent;
    display: flex;
    align-items: center;
}

#sidebar-wrapper .list-group-item i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
    font-size: 1.1rem;
}

#sidebar-wrapper .list-group-item:hover,
#sidebar-wrapper .list-group-item.active {
    background-color: #f3f4f6 !important;
    color: #4f46e5 !important;
    font-weight: 600;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* Dashboard Cards */
.summary-card {
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(165, 163, 174, 0.3);
    transition: transform 0.2s ease-in-out;
    border: none;
}
.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.25rem 0.5rem rgba(165, 163, 174, 0.4);
}
.summary-card .card-body {
    padding: 1.25rem;
}
.summary-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    font-weight: 700;
}

/* Global Cards */
.card {
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(165, 163, 174, 0.15);
    border: none;
    margin-bottom: 1.25rem;
}
.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}
.card-body {
    padding: 1.25rem;
}

/* Tables */
.table {
    color: #374151;
    margin-bottom: 0;
}
.table th {
    font-weight: 600;
    color: #4b5563;
    border-bottom-width: 1px;
    background-color: #f9fafb;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
}
.table td {
    vertical-align: middle;
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
    transition: all 0.2s ease-in-out;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .bg-white,
body.dark-mode #sidebar-wrapper,
body.dark-mode .sidebar-heading {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

body.dark-mode .navbar {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #333 !important;
}

body.dark-mode .card,
body.dark-mode .card-header {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

body.dark-mode .card-header {
    border-bottom: 1px solid #333 !important;
}

body.dark-mode .table {
    color: #e0e0e0;
}

body.dark-mode .table th {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-bottom-color: #444;
}

body.dark-mode .table td {
    border-bottom-color: #333;
}

body.dark-mode .text-dark,
body.dark-mode .text-muted {
    color: #e0e0e0 !important;
}

body.dark-mode .list-group-item {
    color: #e0e0e0;
}

body.dark-mode .list-group-item:hover,
body.dark-mode .list-group-item.active {
    background-color: #2c2c2c !important;
    color: #6366f1 !important;
}

body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: #333;
}

body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background-color: #2c2c2c;
    color: #fff;
    border-color: #444;
}

body.dark-mode .border-end,
body.dark-mode .border-bottom {
    border-color: #333 !important;
}
