:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1a6b3e;
    --sidebar-hover: #155534;
    --sidebar-active: #0d3d24;
    --primary-green: #1a6b3e;
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    flex-shrink: 0;
}

#sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.sidebar-header {
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sidebar-section {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
    padding: 1rem 1.2rem 0.3rem;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.2rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
    border-left-color: rgba(255,255,255,0.4);
}

.sidebar-link.active {
    background: var(--sidebar-active);
    color: #fff;
    border-left-color: #4ade80;
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.sidebar-footer {
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-profile-link {
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    transition: background 0.2s;
}

.sidebar-profile-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

/* Page content */
#page-content-wrapper {
    min-width: 0;
    overflow-x: hidden;
}

/* Cards */
.card {
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Table */
.table th {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Buttons */
.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

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

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

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

/* Login page */
.card.shadow-lg {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Message content */
.message-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        z-index: 1050;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
    }

    #sidebar.show {
        transform: translateX(0);
    }

    #wrapper {
        flex-direction: column;
    }
}

/* Scrollbar styling */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Stats cards */
.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Print styles */
@media print {
    #sidebar, #sidebarToggle, nav.navbar, .btn, .alert {
        display: none !important;
    }

    #page-content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    body {
        background: white !important;
    }
}
