/* Pearl Dental Admin Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --pearl-primary: #7B4FA2;
    --pearl-primary-light: #CBB7E8;
    --pearl-primary-dark: #4B2E83;
    --admin-sidebar-width: 260px;
    --admin-header-height: 60px;
}

html { font-size: 14px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }
body { font-family: 'Inter', sans-serif; background: #f8f9fa; margin: 0; }

/* Admin Layout */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: var(--admin-sidebar-width); background: linear-gradient(180deg, var(--pearl-primary-dark), var(--pearl-primary)); color: #fff; position: fixed; top: 0; left: 0; height: 100vh; z-index: 1000; overflow-y: auto; }
.admin-main { flex: 1; margin-left: var(--admin-sidebar-width); }
.admin-header { height: var(--admin-header-height); background: #fff; border-bottom: 1px solid #e9ecef; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; position: sticky; top: 0; z-index: 100; }
.admin-content { padding: 1.5rem; }
.page-header { margin-bottom: 1.5rem; }
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--pearl-primary-dark); margin: 0; }

/* Sidebar Brand */
.sidebar-brand { padding: 1.25rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); text-decoration: none; color: #fff; }
.sidebar-brand-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.sidebar-brand-text { font-size: 1.1rem; font-weight: 700; }

/* Sidebar Navigation */
.sidebar-nav { padding: 1rem 0; list-style: none; margin: 0; }
.sidebar-nav .nav-item { list-style: none; }
.sidebar-nav .nav-section-title { 
    padding: 0.75rem 1.25rem 0.5rem; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: rgba(255,255,255,0.5); 
    margin-top: 0.5rem;
    font-weight: 600;
}
.sidebar-nav .nav-link { 
    display: flex; 
    align-items: center; 
    padding: 0.75rem 1.25rem; 
    color: rgba(255,255,255,0.8); 
    text-decoration: none; 
    border-left: 3px solid transparent; 
    transition: all 0.2s; 
}
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-nav .nav-link.active { background: rgba(255,255,255,0.15); color: #fff; border-left-color: #fff; }
.sidebar-nav .nav-link i { 
    font-size: 1.1rem; 
    width: 1.5rem; 
    margin-right: 0.75rem; 
    flex-shrink: 0;
}
.sidebar-nav .nav-link-text { 
    flex: 1; 
}
.sidebar-nav .nav-badge { 
    background: rgba(255,255,255,0.2); 
    color: #fff; 
    font-size: 0.7rem; 
    font-weight: 600; 
    padding: 0.2rem 0.5rem; 
    border-radius: 10px; 
    margin-left: auto;
}

/* Header */
.header-left, .header-right { display: flex; align-items: center; gap: 1rem; }
.sidebar-toggle { background: none; border: none; font-size: 1.25rem; color: #6c757d; cursor: pointer; }
.header-notification { background: none; border: none; font-size: 1.25rem; color: #6c757d; position: relative; }
.header-notification .badge { position: absolute; top: -5px; right: -5px; font-size: 0.6rem; }
.header-user { display: flex; align-items: center; gap: 0.75rem; }
.header-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pearl-primary-light); color: var(--pearl-primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 600; }

/* Stat Cards */
.stat-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.stat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.stat-card-icon.primary { background: var(--pearl-primary); }
.stat-card-icon.success { background: #198754; }
.stat-card-icon.warning { background: #ffc107; color: #333; }
.stat-card-icon.info { background: #0dcaf0; }
.stat-card-value { font-size: 1.75rem; font-weight: 700; color: #333; }
.stat-card-label { font-size: 0.875rem; color: #6c757d; }
.stat-card-change { font-size: 0.75rem; }
.stat-card-change.positive { color: #198754; }

/* Table Cards */
.table-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; }
.table-card-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #e9ecef; }
.table-card-title { font-size: 1rem; font-weight: 600; color: var(--pearl-primary-dark); margin: 0; }
.table-card-body { padding: 0; }
.admin-table { margin-bottom: 0; }
.admin-table thead th { background: #f8f9fa; font-weight: 600; color: var(--pearl-primary-dark); padding: 0.75rem 1rem; border-bottom: 2px solid #e9ecef; font-size: 0.875rem; }
.admin-table tbody td { padding: 0.75rem 1rem; vertical-align: middle; border-bottom: 1px solid #f1f3f5; }
.admin-table tbody tr:hover { background: #f8f9fa; }

/* Badges */
.badge { font-weight: 500; padding: 0.35rem 0.65rem; font-size: 0.75rem; border-radius: 20px; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-active, .badge-approved { background: #d1e7dd; color: #0f5132; }
.badge-in-progress, .badge-processing { background: #cff4fc; color: #055160; }
.badge-completed { background: #e2d5f1; color: #563d7c; }
.badge-shipped { background: #d1e7dd; color: #0f5132; }

/* Buttons */
.btn-primary { --bs-btn-bg: #7B4FA2; --bs-btn-border-color: #7B4FA2; --bs-btn-hover-bg: #4B2E83; --bs-btn-hover-border-color: #4B2E83; }
.btn-outline-primary { --bs-btn-color: #7B4FA2; --bs-btn-border-color: #7B4FA2; --bs-btn-hover-bg: #7B4FA2; --bs-btn-hover-color: #fff; }

/* Responsive */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
    .sidebar-backdrop.show { display: block; }
}
