:root {
    --primary-green: #3C5526;
    --golden-yellow: #D4A017;
    --maroon-red: #8B1A1A;
    --royal-blue: #1E3A8A;
    --bright-orange: #FF6B00;
    --black: #000000;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --success-green: #28A745;
    --info-blue: #17A2B8;
    --warning-orange: #FFC107;
    --danger-red: #DC3545;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--black);
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #2a3d1a 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    transform: translateX(0);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.05);
    position: relative;
}

.sidebar-header h3 {
    color: var(--golden-yellow);
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.sidebar-header p {
    margin: 5px 0 0 0;
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-header h3 {
    font-size: 1rem;
}

.sidebar.collapsed .sidebar-header p {
    display: none;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-section {
    margin-bottom: 10px;
}

.nav-header {
    padding: 8px 15px;
    margin-bottom: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-header {
    display: none;
}

.nav-item {
    margin: 1px 8px;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar.collapsed .nav-item {
    margin: 2px 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    font-weight: 500;
    font-size: 0.85rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--golden-yellow);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--golden-yellow);
    transform: translateX(3px);
    padding-left: 18px;
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--golden-yellow) 0%, #b8930f 100%);
    color: var(--black);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(212, 160, 23, 0.3);
}

.nav-link i {
    width: 18px;
    margin-right: 12px;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 10px 5px;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.1rem;
}

.sidebar.collapsed .nav-link:hover {
    transform: none;
    padding: 10px 5px;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 70px;
}

/* Top Navigation */
.top-navbar {
    background: var(--white);
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid var(--primary-green);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--primary-green);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2a3d1a 100%);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(60, 85, 38, 0.2);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--primary-green);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.mobile-toggle:hover {
    background: var(--light-gray);
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: var(--primary-green);
    font-weight: 600;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    position: relative;
    color: var(--primary-green);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
}

.notification-icon:hover {
    background-color: var(--light-gray);
}

.notification-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--danger-red);
    color: var(--white);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-dropdown {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.user-dropdown:hover {
    background-color: var(--light-gray);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--golden-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--black);
    margin-right: 8px;
}

/* Content Area */
.content-area {
    padding: 20px;
    flex: 1;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2a3d1a 100%);
    color: var(--white);
    padding: 15px;
    border-bottom: none;
    font-weight: 600;
}

.card-body {
    padding: 15px;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--golden-yellow) 0%, #b8930f 100%);
    color: var(--black);
    padding: 18px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.25);
}

.stats-card.success {
    background: linear-gradient(135deg, var(--success-green) 0%, #1e7e34 100%);
    color: var(--white);
}

.stats-card.info {
    background: linear-gradient(135deg, var(--info-blue) 0%, #117a8b 100%);
    color: var(--white);
}

.stats-card.warning {
    background: linear-gradient(135deg, var(--warning-orange) 0%, #d39e00 100%);
    color: var(--black);
}

.stats-card.danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, #bd2130 100%);
    color: var(--white);
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.stats-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: white;
    color: #3c5526;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2a3d1a 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a3d1a 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(60, 85, 38, 0.25);
}

.btn-warning {
    background: linear-gradient(135deg, var(--golden-yellow) 0%, #b8930f 100%);
    color: var(--black);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #b8930f 0%, var(--golden-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.25);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, #bd2130 100%);
    color: var(--white);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #bd2130 0%, var(--danger-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-green) 0%, #1e7e34 100%);
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, var(--success-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--light-gray);
    color: var(--black);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-green);
    padding: 10px;
    font-size: 0.85rem;
}

.table td {
    padding: 10px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.85rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(60, 85, 38, 0.05);
}

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(60, 85, 38, 0.25);
}

.form-label {
    color: var(--black);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.7rem;
}

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

.badge.status-inactive {
    background-color: #6c757d;
    color: var(--white);
}

.badge.status-pending {
    background-color: var(--warning-orange);
    color: var(--black);
}

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

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

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 18px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
    border-left: 4px solid var(--success-green);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
    border-left: 4px solid var(--danger-red);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--warning-orange);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-blue);
    border-left: 4px solid var(--info-blue);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    border-top: 3px solid var(--primary-green);
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
    }
    
    .sidebar.collapsed + .main-content {
        margin-left: 70px;
    }
    
    .sidebar.collapsed {
        width: 70px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .stats-card {
        padding: 18px;
    }
    
    .stats-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        z-index: 1055;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1056;
        position: relative;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .content-area {
        padding: 16px;
    }
    
    .top-navbar {
        padding: 12px 16px;
        position: relative;
        z-index: 1050;
    }
    
    .navbar-right {
        gap: 10px;
    }
    
    .user-info {
        display: none !important;
    }
    
    .stats-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .card-header {
        padding: 14px;
    }
    
    /* Fix mobile buttons and links */
    .btn {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .btn-group .btn {
        min-height: 36px;
    }
    
    .nav-link {
        min-height: 48px;
        padding: 12px 15px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item {
        min-height: 40px;
        padding: 10px 16px;
        display: flex;
        align-items: center;
    }
    
    .table td {
        padding: 12px 8px;
    }
    
    .form-control {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .form-select {
        min-height: 44px;
        padding: 12px 16px;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .content-area {
        padding: 14px;
    }
    
    .top-navbar {
        padding: 10px 14px;
    }
    
    .navbar-left {
        gap: 10px;
    }
    
    .navbar-right {
        gap: 8px;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    .card-body {
        padding: 14px;
    }
    
    .card-header {
        padding: 14px;
    }
    
    .stats-card {
        margin-bottom: 14px;
        padding: 16px;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
    
    .btn {
        min-height: 48px;
        padding: 14px 18px;
        font-size: 0.9rem;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        border-radius: 12px;
    }
    
    .btn-sm {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .btn-group .btn {
        min-height: 44px;
        padding: 12px 14px;
        padding: 10px 12px;
    }
    
    .nav-link {
        min-height: 52px;
        padding: 16px 20px;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        font-size: 0.95rem;
    }
    
    .dropdown-item {
        min-height: 44px;
        padding: 12px 20px;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .form-control {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .form-select {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .alert {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .notification-icon,
    .sidebar-toggle,
    .mobile-toggle {
        width: 44px;
        height: 44px;
        padding: 12px;
        font-size: 1.1rem;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    
    /* Fix mobile touch targets */
    .pagination .page-link {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .input-group-text {
        min-height: 48px;
        padding: 14px 16px;
    }
    
    /* Fix dropdown menus on mobile */
    .dropdown-menu {
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border: none;
        padding: 8px;
    }
    
    .dropdown-item {
        border-radius: 8px;
        margin: 2px 0;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: rgba(60, 85, 38, 0.1);
        color: var(--primary-green);
    }
    
    /* Fix card interactions */
    .card {
        cursor: default;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Fix table interactions */
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        vertical-align: middle;
    }
    
    /* Fix form interactions */
    .form-check-input {
        width: 1.5em;
        height: 1.5em;
        cursor: pointer;
    }
    
    .form-check-label {
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .form-check-input {
        width: 1.5em;
        height: 1.5em;
    }
    
    .badge {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .content-area {
        padding: 18px;
    }
    
    .stats-card {
        padding: 18px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .card-header {
        padding: 16px;
    }
    
    .table th,
    .table td {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .stats-number {
        font-size: 2.1rem;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1054;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sidebar-overlay {
        display: block;
    }
}

/* Student Categories Dropdown Styling */
.student-categories-dropdown {
    background: var(--white);
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-radius: 15px;
    overflow: hidden;
    padding: 0;
}

.student-category-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.student-category-item:hover {
    background: linear-gradient(135deg, rgba(60, 85, 38, 0.1) 0%, rgba(212, 160, 23, 0.1) 100%);
    transform: translateX(5px);
    color: var(--primary-green);
}

.student-category-item:active {
    transform: translateX(3px);
}

.student-category-item .badge {
    transition: all 0.3s ease;
}

.student-category-item:hover .badge {
    transform: scale(1.1);
}

/* Search Box Responsive */
.search-box {
    min-width: 180px;
}

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

@media (min-width: 768px) and (max-width: 991.98px) {
    .search-box {
        min-width: 140px;
    }
    
    .search-box input {
        font-size: 0.8rem;
    }
}

/* Notification Dropdown Responsive */
.notification-dropdown {
    max-width: 320px;
    min-width: 280px;
}

.notification-item {
    padding: 12px 16px !important;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: rgba(60, 85, 38, 0.05) !important;
}

.notification-item.unread {
    background-color: rgba(212, 160, 23, 0.1) !important;
    border-left: 3px solid var(--golden-yellow);
}

.notification-dropdown .dropdown-item {
    white-space: normal;
    word-wrap: break-word;
}

@media (max-width: 767.98px) {
    .notification-dropdown {
        max-width: 280px;
        min-width: 260px;
        right: 0 !important;
        left: auto !important;
    }
    
    .notification-item {
        padding: 10px 12px !important;
    }
}

/* Table Responsive Enhancements */
@media (max-width: 767.98px) {
    .table-responsive {
        border-radius: 10px;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* Card Grid Responsive */
@media (max-width: 767.98px) {
    .row.g-4 {
        --bs-gutter-x: 0.8rem;
        --bs-gutter-y: 0.8rem;
    }
    
    .col-lg-6,
    .col-lg-4,
    .col-lg-3 {
        margin-bottom: 12px;
    }
}

/* Form Responsive */
@media (max-width: 767.98px) {
    .input-group-text {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .section-header h5 {
        font-size: 0.95rem;
    }
}

/* Animation Improvements */
.card,
.stats-card,
.nav-link,
.btn {
    will-change: transform;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(60, 85, 38, 0.25);
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Print Styles */
@media print {
    .sidebar,
    .top-navbar,
    .btn,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .content-area {
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
}

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

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--golden-yellow);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #b8930f;
}

/* Activity Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 2px;
    background: var(--primary-green);
}

.timeline-item {
    position: relative;
    margin: 20px 0;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 42px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--golden-yellow);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-green);
}

.timeline-content {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-time {
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Data Tables Enhancement */
.datatable-wrapper {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.datatable-header {
    background: var(--primary-green);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.datatable-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    max-width: 300px;
    flex: 1;
}

.entries-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Quick Action Buttons */
.quick-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.quick-action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--golden-yellow);
    color: var(--black);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.6);
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed var(--primary-green);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background: rgba(60, 85, 38, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    background: rgba(60, 85, 38, 0.1);
    border-color: var(--golden-yellow);
}

.file-upload-area.dragover {
    background: rgba(212, 160, 23, 0.1);
    border-color: var(--golden-yellow);
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: var(--light-gray);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-green), var(--golden-yellow));
    transition: width 0.3s ease;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--primary-green);
    color: var(--white);
    border-radius: 10px 10px 0 0;
    padding: 20px;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #dee2e6;
}