.primary-text {
    color: var(--md-primary) !important;
}

.sidebar-active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-left: 3px solid #fff;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
}

.stat-card .stat-icon i {
    font-size: 1.5rem;
}

.btn-outline-primary {
    border-width: 1.5px;
}

.btn-outline-secondary {
    border-width: 1.5px;
}

.navbar-icon-btn {
    text-decoration: none;
}

.page-content-wrapper {
    min-height: calc(100vh - 72px);
    overflow-x: hidden;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.375rem 0.75rem;
}

.table-actions {
    white-space: nowrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.user-details h6 {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.user-details small {
    color: var(--md-text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: #d1fae5;
    color: #059669;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 1rem;
}

.file-upload-placeholder {
    border: 2px dashed var(--md-border);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-placeholder:hover {
    border-color: var(--md-primary);
    background: var(--md-primary-50);
}

.dataTables_wrapper {
    padding: 1rem 0;
}

.gomit-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-wrapper img,
.avatar-wrapper .avatar-fallback {
    border: 3px solid var(--md-surface);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: block;
}

.avatar-edit {
    position: absolute;
    bottom: -6px;
    right: -10px;
    z-index: 2;
}

.avatar-edit label {
    cursor: pointer;
    box-shadow: var(--md-shadow-md);
    border-radius: 50% !important;
}
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--md-background);
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #071968 0%, #0a2472 100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.admin-sidebar.collapsed {
    width: 72px;
}

.admin-sidebar.collapsed .brand-text,
.admin-sidebar.collapsed .nav-section-label,
.admin-sidebar.collapsed .nav-item span {
    display: none;
}

.admin-sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

.admin-sidebar.collapsed .sidebar-header {
    justify-content: center;
    position: relative;
}

.admin-sidebar.collapsed .sidebar-header-actions {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.admin-sidebar.collapsed .sidebar-collapse-btn {
    display: flex;
}

.admin-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.875rem;
}

.admin-sidebar.collapsed .nav-icon {
    margin: 0;
}

.admin-sidebar.collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-collapse-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.brand-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: none;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

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

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

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

.nav-section {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.nav-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    padding: 0.5rem 1rem;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: white;
    border-radius: 0 4px 4px 0;
}

.nav-icon {
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-main {
    min-width: 0;
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.admin-main.expanded {
    margin-left: 72px;
}

.admin-navbar {
    background: white;
    height: 72px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-toggler {
    background: none;
    border: none;
    color: var(--md-text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: none;
}

.navbar-toggler:hover {
    background: var(--md-divider);
    color: var(--md-text-primary);
}

.navbar-title h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--md-text-primary);
    margin: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-text-secondary);
    background: var(--md-divider);
    position: relative;
    transition: all 0.2s ease;
}

.navbar-icon-btn:hover {
    background: var(--md-primary-50);
    color: var(--md-primary);
}

.badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--md-danger);
    border-radius: 50%;
    border: 2px solid white;
}

.navbar-profile {
    margin-left: 0.5rem;
}

.profile-trigger {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: var(--md-divider);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-trigger:hover {
    background: var(--md-primary-50);
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    margin-left: 0.5rem;
}

.profile-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--md-text-primary);
    line-height: 1.2;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--md-text-muted);
}

.admin-content {
    flex: 1;
    padding: 2rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .admin-main {
    min-width: 0;
        margin-left: 0;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .admin-navbar {
        padding: 0 1rem;
        height: 64px;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .profile-info {
        display: none;
    }
}

