/* Button Enhanced Styles */

/*Start For attendance*/
.badge.fs-6 {
    font-size: 0.9rem !important;
}

.btn-group .btn {
    margin-right: 2px;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.card-header .card-title {
    margin-bottom: 0;
    font-weight: 600;
}

.table-responsive {
    border-radius: 0.375rem;
    box-shadow: 0 0 0 1px rgba(0,0,0,.125);
}

.alert-warning {
    border-left: 4px solid #ffc107;
}
/*End For attendance*/
.btn {
    font-weight: 600;
    padding: 12px 20px;
    font-size: 13px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        background: linear-gradient(135deg, var(--primary-dark), #1d4ed8);
    }

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        background: linear-gradient(135deg, #059669, #047857);
    }

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

    .btn-warning:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
        background: linear-gradient(135deg, #d97706, #b45309);
    }

.btn-danger {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
        background: linear-gradient(135deg, #dc2626, #b91c1c);
    }

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    }

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.1);
}

    .btn-outline-secondary:hover {
        background: var(--text-secondary);
        color: white;
        border-color: var(--text-secondary);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(100, 116, 139, 0.3);
    }

.btn-sm {
    padding: 8px 16px;
    font-size: 11px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

/* Alert Enhanced Styles */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .alert::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        border-radius: 2px;
    }

.alert-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #1e3a8a;
    border-left: 4px solid var(--primary-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

/* Loading Spinner Enhancements */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
    border-color: var(--primary-color);
    border-right-color: transparent;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Progress Bar Enhanced */
.progress {
    height: 8px;
    background: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

    .progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Modal Enhanced Styles */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: 24px 28px 20px;
    position: relative;
}

    .modal-header .btn-close {
        background: rgba(255, 255, 255, 0.2);
        opacity: 1;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .modal-header .btn-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

.modal-title {
    font-weight: 700;
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    padding: 20px 28px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Dropdown Enhanced Styles */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
        color: var(--primary-color);
        transform: translateX(4px);
    }

    .dropdown-item i {
        width: 16px;
        text-align: center;
    }

.dropdown-divider {
    margin: 8px 0;
    border-color: var(--border-color);
}

/* Navigation Breadcrumb */
.breadcrumb {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.breadcrumb-item {
    font-size: 13px;
    font-weight: 500;
}

    .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        color: var(--text-muted);
        font-weight: 600;
        margin: 0 8px;
    }

    .breadcrumb-item a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .breadcrumb-item a:hover {
            color: var(--primary-color);
        }

    .breadcrumb-item.active {
        color: var(--text-primary);
        font-weight: 600;
    }

/* Dashboard Stats Cards */
.stats-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .stats-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
        border-radius: 0 2px 2px 0;
    }

    .stats-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stats-card-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stats-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.stats-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.stats-card-change {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

    .stats-card-change.positive {
        color: var(--success-color);
    }

    .stats-card-change.negative {
        color: var(--error-color);
    }

/* Search and Filter Components */
.search-filter-bar {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    position: relative;
    flex: 1;
    min-width: 250px;
}

    .search-input-group input {
        width: 100%;
        padding: 12px 16px 12px 44px;
        border: 2px solid var(--border-color);
        border-radius: 10px;
        font-size: 13px;
        background: var(--background-color);
        transition: all 0.3s ease;
    }

        .search-input-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            background: var(--surface-color);
        }

    .search-input-group i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 14px;
        transition: color 0.3s ease;
    }

    .search-input-group input:focus + i {
        color: var(--primary-color);
    }

/* Sidebar Animation Enhancements */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.sidebar.show {
    animation: slideInLeft 0.3s ease-out;
}

.sidebar.hide {
    animation: slideOutLeft 0.3s ease-in;
}

/* Menu Item Pulse Effect */
@keyframes menuPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.menu-link.active {
    animation: menuPulse 2s infinite;
}

/* Hover Effects for Interactive Elements */
.interactive-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .interactive-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: background 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, var(--primary-dark), #1d4ed8);
    }

/* Selection Styling */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.active {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .navbar-content {
        padding: 0 16px;
    }

    .brand-title {
        font-size: 14px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .username {
        max-width: 80px;
    }

    .profile-details-grid {
        grid-template-columns: 1fr;
    }

    .content-container {
        padding: 16px;
    }

    .table-responsive {
        font-size: 12px;
    }

    .table thead th {
        padding: 12px 8px;
        font-size: 10px;
    }

    .table tbody td {
        padding: 12px 8px;
        font-size: 12px;
    }

    .stats-card {
        padding: 16px;
    }

    .stats-card-value {
        font-size: 24px;
    }

    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-group {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        min-width: 260px;
        left: -100px;
    }

    .profile-overview {
        flex-direction: column;
        text-align: center;
    }

    .modal-dialog {
        margin: 16px;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .table-actions {
        justify-content: center;
    }
}
/* Root Variables */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --navbar-height: 65px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* Top Navigation */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    gap: 3px;
}

    .sidebar-toggle-btn:hover {
        background-color: var(--background-color);
    }

.toggle-line {
    width: 18px;
    height: 2px;
    background-color: var(--text-secondary);
    border-radius: 1px;
    transition: var(--transition);
}

.sidebar-toggle-btn:hover .toggle-line {
    background-color: var(--primary-color);
}

/* Brand Section */
.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(0);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

.sidebar-header {
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .sidebar-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.sidebar-title {
    display: flex;
    flex-direction: column;
}

.title-main {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.title-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

/* Sidebar Navigation */
.menu-container {
    padding: 0 8px;
}

.menu-section {
    margin-bottom: 28px;
}

.menu-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 8px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

    .menu-section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 16px;
        right: 16px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
        border-radius: 1px;
    }

    .menu-section-title i {
        font-size: 11px;
        color: var(--primary-color);
    }

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin-bottom: 6px;
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

    .menu-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .menu-link:hover::before {
        left: 100%;
    }

    .menu-link::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 0;
        height: 0;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform: translateY(-50%);
    }

    .menu-link:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
        color: var(--primary-color);
        text-decoration: none;
        transform: translateX(4px);
        border-color: rgba(59, 130, 246, 0.2);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }

        .menu-link:hover::after {
            width: 4px;
            height: 24px;
        }

    .menu-link.active {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        transform: translateX(4px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
        border-color: var(--primary-color);
    }

        .menu-link.active::after {
            width: 4px;
            height: 24px;
            background: rgba(255, 255, 255, 0.8);
        }

        .menu-link.active .menu-icon {
            color: white;
            transform: scale(1.1);
        }

.menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.05);
}

.menu-link:hover .menu-icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
    transform: scale(1.1);
}

.menu-text {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.menu-arrow {
    opacity: 0;
    font-size: 11px;
    transition: all 0.3s ease;
    transform: translateX(-8px);
    color: var(--primary-color);
}

.menu-link:hover .menu-arrow {
    opacity: 1;
    transform: translateX(0);
}

.menu-link.active .menu-arrow {
    opacity: 1;
    transform: translateX(0);
    color: rgba(255, 255, 255, 0.8);
}

.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 20px 16px;
    position: relative;
}

    .menu-divider::before {
        content: '';
        position: absolute;
        top: -1px;
        left: 50%;
        width: 6px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px;
        transform: translateX(-50%);
        opacity: 0.3;
    }

/* No Menu State */
.no-menu-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
}

.no-menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
}

.no-menu-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.no-menu-content p {
    font-size: 12px;
    margin: 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-profile-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    background-color: var(--background-color);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-status {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    font-size: 6px;
    color: var(--success-color);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
    transition: var(--transition);
}

    .main-content.expanded {
        margin-left: 0;
    }

.content-container {
    padding: 24px;
}

/* User Menu Dropdown */
.user-menu-wrapper {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

    .user-dropdown-trigger:hover {
        border-color: var(--primary-color);
        background-color: var(--background-color);
    }

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.username {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-caret {
    font-size: 10px;
    transition: var(--transition);
}

.user-dropdown-trigger[aria-expanded="true"] .dropdown-caret {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown {
    min-width: 280px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0;
    margin-top: 8px;
    background: var(--surface-color);
}

.dropdown-header-custom {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-info {
    flex: 1;
    color: white;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.profile-role {
    font-size: 12px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

    .role-badge.admin {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .role-badge.teacher {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .role-badge.user {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

.dropdown-divider-custom {
    margin: 8px 0;
    border-color: var(--border-color);
    opacity: 1;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

    .dropdown-item-custom:hover {
        background-color: var(--background-color);
        color: var(--primary-color);
    }

    .dropdown-item-custom i {
        width: 16px;
        font-size: 14px;
    }

.notification-badge {
    position: absolute;
    right: 16px;
    background: var(--error-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-form {
    margin: 0;
    width: 100%;
}

.logout-btn {
    color: var(--error-color) !important;
}

    .logout-btn:hover {
        background-color: #fee2e2 !important;
        color: var(--error-color) !important;
    }

/* Auth Buttons */
.auth-buttons-wrapper {
    display: flex;
    gap: 8px;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.login-btn {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

    .login-btn:hover {
        color: var(--primary-color);
        border-color: var(--primary-color);
        background-color: var(--background-color);
        text-decoration: none;
    }

.register-btn {
    background: var(--primary-color);
    color: white;
}

    .register-btn:hover {
        background: var(--primary-dark);
        color: white;
        text-decoration: none;
    }

/* Profile Modal */
.profile-modal {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: 24px;
    position: relative;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    font-size: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.btn-close-custom {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.profile-body {
    padding: 32px 24px;
}

.profile-overview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-section {
    position: relative;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: var(--shadow-md);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success-color);
    border: 3px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

    .avatar-upload-btn:hover {
        transform: scale(1.1);
    }

.profile-basic-info {
    flex: 1;
}

.profile-display-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-title-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.profile-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--success-color);
    font-weight: 500;
}

.status-online {
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

    .detail-card:hover {
        box-shadow: var(--shadow-sm);
    }

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.role-badge-modal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

    .role-badge-modal.admin {
        background: #fef3c7;
        color: #d97706;
        border: 1px solid #fde68a;
    }

    .role-badge-modal.teacher {
        background: #dcfdf7;
        color: #059669;
        border: 1px solid #a7f3d0;
    }

    .role-badge-modal.user {
        background: #e0e7ff;
        color: #4338ca;
        border: 1px solid #c7d2fe;
    }

.status-badge-modal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

    .status-badge-modal.active {
        background: #dcfdf7;
        color: #059669;
        border: 1px solid #a7f3d0;
    }

.profile-footer {
    padding: 24px;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary-custom, .btn-primary-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary-custom {
    background: var(--surface-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

    .btn-secondary-custom:hover {
        background: var(--background-color);
    }

.btn-primary-custom {
    background: var(--primary-color);
    color: white;
}

    .btn-primary-custom:hover {
        background: var(--primary-dark);
    }

/* Public Layout */
.public-layout {
    min-height: 100vh;
    background: var(--background-color);
}

.public-navbar {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
}

.navbar-brand-public {
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-content {
    padding: 40px 0;
}

.menu-theme-mint .menu-link.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    border-color: #10b981;
}

    .menu-theme-mint .menu-link.active::after {
        background: rgba(255, 255, 255, 0.8);
    }

    .menu-theme-mint .menu-link.active .menu-icon {
        color: white;
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.2);
    }

    .menu-theme-mint .menu-link.active .menu-arrow {
        color: rgba(255, 255, 255, 0.8);
    }


.menu-theme-purple .menu-link.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

    .menu-theme-purple .menu-link.active::after {
        background: rgba(255, 255, 255, 0.8);
    }

    .menu-theme-purple .menu-link.active .menu-icon {
        color: white;
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.2);
    }

    .menu-theme-purple .menu-link.active .menu-arrow {
        color: rgba(255, 255, 255, 0.8);
    }

.menu-theme-white .menu-link.active {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #1e293b;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

    .menu-theme-white .menu-link.active::after {
        background: #3b82f6;
    }

    .menu-theme-white .menu-link.active .menu-icon {
        color: #3b82f6;
        transform: scale(1.1);
        background: rgba(59, 130, 246, 0.1);
    }

    .menu-theme-white .menu-link.active .menu-arrow {
        color: #3b82f6;
    }


.menu-theme-ocean .menu-link.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    border-color: #0ea5e9;
}

    .menu-theme-ocean .menu-link.active::after {
        background: rgba(255, 255, 255, 0.8);
    }

    .menu-theme-ocean .menu-link.active .menu-icon {
        color: white;
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.2);
    }

    .menu-theme-ocean .menu-link.active .menu-arrow {
        color: rgba(255, 255, 255, 0.8);
    }


.menu-theme-orange .menu-link.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
    border-color: #f97316;
}

    .menu-theme-orange .menu-link.active::after {
        background: rgba(255, 255, 255, 0.8);
    }

    .menu-theme-orange .menu-link.active .menu-icon {
        color: white;
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.2);
    }

    .menu-theme-orange .menu-link.active .menu-arrow {
        color: rgba(255, 255, 255, 0.8);
    }


.menu-theme-rose .menu-link.active {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
    border-color: #ec4899;
}

    .menu-theme-rose .menu-link.active::after {
        background: rgba(255, 255, 255, 0.8);
    }

    .menu-theme-rose .menu-link.active .menu-icon {
        color: white;
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.2);
    }

    .menu-theme-rose .menu-link.active .menu-arrow {
        color: rgba(255, 255, 255, 0.8);
    }

    .menu-theme-slate .menu-link.active {
    background: linear-gradient(135deg, #475569, #334155);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(71, 85, 105, 0.3);
    border-color: #475569;
}

    .menu-theme-slate .menu-link.active::after {
        background: rgba(255, 255, 255, 0.8);
    }

    .menu-theme-slate .menu-link.active .menu-icon {
        color: white;
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.2);
    }

    .menu-theme-slate .menu-link.active .menu-arrow {
        color: rgba(255, 255, 255, 0.8);
    }


.menu-theme-rainbow .menu-link.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #f97316, #10b981);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    border-color: transparent;
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.menu-theme-rainbow .menu-link.active::after {
    background: rgba(255, 255, 255, 0.9);
}

.menu-theme-rainbow .menu-link.active .menu-icon {
    color: white;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.menu-theme-rainbow .menu-link.active .menu-arrow {
    color: rgba(255, 255, 255, 0.9);
}


.menu-theme-teal .menu-link.active {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.3);
    border-color: #14b8a6;
}

    .menu-theme-teal .menu-link.active::after {
        background: rgba(255, 255, 255, 0.8);
    }

    .menu-theme-teal .menu-link.active .menu-icon {
        color: white;
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.2);
    }

    .menu-theme-teal .menu-link.active .menu-arrow {
        color: rgba(255, 255, 255, 0.8);
    }

.menu-theme-minimal .menu-link.active {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #111827;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #d1d5db;
}

    .menu-theme-minimal .menu-link.active::after {
        background: #6366f1;
    }

    .menu-theme-minimal .menu-link.active .menu-icon {
        color: #6366f1;
        transform: scale(1.1);
        background: rgba(99, 102, 241, 0.1);
    }

    .menu-theme-minimal .menu-link.active .menu-arrow {
        color: #6366f1;
    }

/* Modern Table Styles */
.table {
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border: none;
    margin-bottom: 24px;
}

    .table thead {
        background: linear-gradient(135deg, #334155, #475569);
        border-bottom: 2px solid var(--border-color);
    }

        .table thead th {
            font-size: 11px;
            font-weight: 700;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 12px 16px;
            border: none;
            position: relative;
            background: linear-gradient(135deg, #334155, #475569);
            cursor: pointer;
            transition: all 0.3s ease;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

            .table thead th:hover {
                background: linear-gradient(135deg, #475569, #64748b);
                transform: translateY(-1px);
                color: #f1f5f9;
            }

            .table thead th::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 3px;
                background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
                transition: width 0.3s ease;
            }

            .table thead th:hover::after {
                width: 100%;
            }

            .table thead th:first-child {
                border-top-left-radius: 16px;
            }

            .table thead th:last-child {
                border-top-right-radius: 16px;
            }

    .table tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    }

        .table tbody tr:hover {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.02), rgba(59, 130, 246, 0.01));
            transform: scale(1.001);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
        }

        .table tbody tr:last-child {
            border-bottom: none;
        }

    .table tbody td {
        padding: 18px 16px;
        font-size: 13px;
        color: var(--text-secondary);
        border: none;
        vertical-align: middle;
        position: relative;
        transition: all 0.2s ease;
    }

    .table tbody tr:hover td {
        color: var(--text-primary);
    }

    .table tbody td::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 0;
        height: 0;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform: translateY(-50%);
        opacity: 0;
    }

    .table tbody tr:hover td:first-child::before {
        width: 4px;
        height: 60%;
        opacity: 1;
    }

    /* Table Action Buttons */
    .table .btn {
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 8px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        position: relative;
        overflow: hidden;
    }

        .table .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .table .btn:hover::before {
            left: 100%;
        }

    .table .btn-primary {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    }

        .table .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        }

    .table .btn-success {
        background: linear-gradient(135deg, var(--success-color), #059669);
        color: white;
        box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    }

        .table .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
        }

    .table .btn-warning {
        background: linear-gradient(135deg, var(--warning-color), #d97706);
        color: white;
        box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    }

        .table .btn-warning:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }

    .table .btn-danger {
        background: linear-gradient(135deg, var(--error-color), #dc2626);
        color: white;
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }

        .table .btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        }

    .table .btn-outline-primary {
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

        .table .btn-outline-primary:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

    /* Table Status Badges */
    .table .badge {
        font-size: 10px;
        padding: 6px 12px;
        border-radius: 20px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .table .badge-success {
        background: linear-gradient(135deg, #dcfdf7, #a7f3d0);
        color: #065f46;
        border: 1px solid #6ee7b7;
    }

    .table .badge-warning {
        background: linear-gradient(135deg, #fef3c7, #fde68a);
        color: #92400e;
        border: 1px solid #f9d71c;
    }

    .table .badge-danger {
        background: linear-gradient(135deg, #fee2e2, #fca5a5);
        color: #991b1b;
        border: 1px solid #f87171;
    }

    .table .badge-primary {
        background: linear-gradient(135deg, #dbeafe, #93c5fd);
        color: #1e3a8a;
        border: 1px solid #60a5fa;
    }

    .table .badge-secondary {
        background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
        color: #374151;
        border: 1px solid #9ca3af;
    }

/* Table Responsive Wrapper */
.table-responsive {
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--surface-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 12px;
    }

    .table thead th {
        padding: 10px 8px;
        font-size: 10px;
    }

    .table tbody td {
        padding: 12px 8px;
        font-size: 12px;
    }
}

/* Table Search and Filter Section */
.table-controls {
    background: var(--surface-color);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.table-search {
    position: relative;
    min-width: 250px;
}

    .table-search input {
        width: 100%;
        padding: 12px 16px 12px 44px;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        font-size: 13px;
        transition: all 0.3s ease;
        background: var(--background-color);
    }

        .table-search input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            background: var(--surface-color);
        }

    .table-search i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 14px;
    }

.table-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.table-filter-btn {
    padding: 10px 16px;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .table-filter-btn:hover {
        border-color: var(--primary-color);
        background: rgba(59, 130, 246, 0.05);
        color: var(--primary-color);
    }

/* Table Pagination */
.table-pagination {
    background: var(--surface-color);
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: between;
    align-items: center;
}

.pagination {
    margin: 0;
}

.page-link {
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 10px 16px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: var(--background-color);
}

    .page-link:hover {
        border-color: var(--primary-color);
        background: var(--primary-color);
        color: white;
        transform: translateY(-1px);
    }

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Data Table Empty State */
.table-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.table-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--text-muted);
}

.table-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.table-empty-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Card Enhanced Styles */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

.card-header {
    background: #3bbf8a;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 12px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

    .card-header::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
        border-radius: 2px;
    }

.card-body {
    padding: 24px;
}

.card-footer {
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
}

/* Form Controls Enhanced */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: var(--background-color);
    color: var(--text-primary);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        background: var(--surface-color);
    }

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-size: 16px 12px;
    background-position: right 16px center;
    background-repeat: no-repeat;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 40px 12px 16px;
    font-size: 13px;
    transition: all 0.3s ease;
    background-color: var(--background-color);
}

    .form-select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        background-color: var(--surface-color);
    }

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.active {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .navbar-content {
        padding: 0 16px;
    }

    .brand-title {
        font-size: 14px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .username {
        max-width: 80px;
    }

    .profile-details-grid {
        grid-template-columns: 1fr;
    }

    .content-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        min-width: 260px;
        left: -100px;
    }

    .profile-overview {
        flex-direction: column;
        text-align: center;
    }

    .modal-dialog {
        margin: 16px;
    }
}
