/* Manager Panel - Professional Verification Portal */
:root {
    --mgr-primary: #0d9488;
    --mgr-primary-dark: #0f766e;
    --mgr-primary-light: #ccfbf1;
    --mgr-accent: #6366f1;
    --mgr-success: #059669;
    --mgr-danger: #dc2626;
    --mgr-warning: #d97706;
    --mgr-info: #0284c7;
    --mgr-bg: #f1f5f9;
    --mgr-surface: #ffffff;
    --mgr-border: #e2e8f0;
    --mgr-text: #0f172a;
    --mgr-muted: #64748b;
    --mgr-sidebar: 280px;
    --mgr-topbar: 70px;
    --mgr-radius: 12px;
    --mgr-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 4px 14px rgba(15,23,42,0.04);
    --mgr-shadow-lg: 0 10px 32px rgba(15,23,42,0.1);
    --mgr-transition: 0.25s ease;
}

.mgr-panel-body { font-family: 'Inter', system-ui, sans-serif; background: var(--mgr-bg); color: var(--mgr-text); }
.mgr-panel-wrapper { display: flex; min-height: 100vh; }

.mgr-sidebar {
    width: var(--mgr-sidebar); background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff; position: fixed; top: 0; left: 0; height: 100vh; z-index: 1040;
    display: flex; flex-direction: column; transition: transform var(--mgr-transition);
    box-shadow: 4px 0 20px rgba(0,0,0,0.12);
}
.mgr-sidebar-brand { padding: 1.4rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mgr-sidebar-logo {
    width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--mgr-primary), var(--mgr-accent)); font-weight: 700; font-size: 0.8rem; margin-bottom: 0.65rem;
}
.mgr-sidebar-brand h5 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.mgr-sidebar-brand small { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.mgr-sidebar-nav { flex: 1; padding: 0.85rem; overflow-y: auto; }
.mgr-nav-section { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); padding: 0.65rem 0.85rem 0.25rem; margin-top: 0.35rem; }
.mgr-sidebar-link {
    display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.85rem; margin-bottom: 0.15rem;
    color: rgba(255,255,255,0.78); text-decoration: none; border-radius: 10px; font-size: 0.875rem; font-weight: 500; transition: var(--mgr-transition);
}
.mgr-sidebar-link i { width: 20px; font-size: 1.05rem; }
.mgr-sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mgr-sidebar-link.active { background: linear-gradient(135deg, rgba(13,148,136,0.4), rgba(99,102,241,0.25)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.mgr-sidebar-link .badge { margin-left: auto; font-size: 0.65rem; }
.mgr-sidebar-link.logout { color: #fca5a5; margin-top: 0.5rem; }
.mgr-sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); }
.mgr-sidebar-user { display: flex; align-items: center; gap: 0.7rem; }
.mgr-avatar {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--mgr-primary), var(--mgr-accent)); font-weight: 700; font-size: 0.8rem; color: #fff;
}

.mgr-main { margin-left: var(--mgr-sidebar); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.mgr-topbar {
    height: var(--mgr-topbar); background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mgr-border); padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 1030;
}
.mgr-topbar-left { display: flex; align-items: center; gap: 1rem; }
.mgr-sidebar-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--mgr-border); border-radius: 10px; background: #fff; }
.mgr-breadcrumb { font-size: 0.8rem; color: var(--mgr-muted); margin: 0; }
.mgr-breadcrumb strong { color: var(--mgr-text); }
.mgr-topbar-search { position: relative; width: 260px; }
.mgr-topbar-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mgr-muted); }
.mgr-topbar-search input { width: 100%; padding: 0.5rem 1rem 0.5rem 2.25rem; border: 1px solid var(--mgr-border); border-radius: 50px; font-size: 0.85rem; background: var(--mgr-bg); }
.mgr-topbar-right { display: flex; align-items: center; gap: 0.65rem; }
.mgr-topbar-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--mgr-border); background: #fff;
    display: flex; align-items: center; justify-content: center; color: var(--mgr-muted); text-decoration: none; position: relative;
}
.mgr-notif-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--mgr-danger); border-radius: 50%; border: 2px solid #fff; }
.mgr-profile-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.75rem 0.3rem 0.3rem; border: 1px solid var(--mgr-border); border-radius: 50px; background: #fff; font-size: 0.85rem; font-weight: 500; }

.mgr-content { padding: 1.5rem; flex: 1; }
.mgr-page-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.mgr-page-title { font-size: 1.6rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.mgr-page-subtitle { color: var(--mgr-muted); margin: 0.25rem 0 0; font-size: 0.9rem; }
.mgr-page-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.mgr-welcome-banner {
    background: linear-gradient(135deg, #0f766e 0%, #4f46e5 100%); color: #fff; border-radius: var(--mgr-radius);
    padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--mgr-shadow-lg);
}
.mgr-welcome-banner h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.35rem; }
.mgr-welcome-banner p { margin: 0; opacity: 0.9; font-size: 0.9rem; }

.mgr-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.mgr-stat-card {
    background: var(--mgr-surface); border: 1px solid var(--mgr-border); border-radius: var(--mgr-radius);
    padding: 1.15rem; display: flex; gap: 0.85rem; align-items: center; box-shadow: var(--mgr-shadow);
    transition: var(--mgr-transition); text-decoration: none; color: inherit;
}
.mgr-stat-card:hover { transform: translateY(-2px); box-shadow: var(--mgr-shadow-lg); color: inherit; }
.mgr-stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.mgr-stat-primary .mgr-stat-icon { background: #ccfbf1; color: #0d9488; }
.mgr-stat-warning .mgr-stat-icon { background: #fef3c7; color: #b45309; }
.mgr-stat-info .mgr-stat-icon { background: #e0f2fe; color: #0369a1; }
.mgr-stat-success .mgr-stat-icon { background: #d1fae5; color: #047857; }
.mgr-stat-danger .mgr-stat-icon { background: #fee2e2; color: #b91c1c; }
.mgr-stat-dark .mgr-stat-icon { background: #e2e8f0; color: #334155; }
.mgr-stat-value { display: block; font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.mgr-stat-label { font-size: 0.75rem; color: var(--mgr-muted); font-weight: 500; }
.mgr-stat-trend { font-size: 0.7rem; color: var(--mgr-primary); }

.mgr-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.mgr-quick-action {
    display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.15rem; background: var(--mgr-surface);
    border: 1px solid var(--mgr-border); border-radius: var(--mgr-radius); text-decoration: none; color: inherit; box-shadow: var(--mgr-shadow); transition: var(--mgr-transition);
}
.mgr-quick-action:hover { border-color: var(--mgr-primary); transform: translateY(-2px); color: inherit; }
.mgr-quick-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.mgr-quick-primary .mgr-quick-icon { background: #ccfbf1; color: #0d9488; }
.mgr-quick-info .mgr-quick-icon { background: #e0f2fe; color: #0284c7; }
.mgr-quick-success .mgr-quick-icon { background: #d1fae5; color: #059669; }
.mgr-quick-action h6 { margin: 0 0 0.1rem; font-size: 0.875rem; font-weight: 600; }
.mgr-quick-action p { margin: 0; font-size: 0.75rem; color: var(--mgr-muted); }
.mgr-quick-arrow { margin-left: auto; color: var(--mgr-muted); }

.mgr-card { background: var(--mgr-surface); border: 1px solid var(--mgr-border); border-radius: var(--mgr-radius); box-shadow: var(--mgr-shadow); margin-bottom: 1.25rem; overflow: hidden; }
.mgr-card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--mgr-border); display: flex; align-items: center; justify-content: space-between; background: #f8fafc; }
.mgr-card-header h5 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.mgr-card-body { padding: 1.25rem; }
.mgr-action-card .mgr-card-body { padding: 1rem; }

.mgr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; border-radius: 10px; border: none; transition: var(--mgr-transition); text-decoration: none; cursor: pointer;
}
.mgr-btn-primary { background: linear-gradient(135deg, var(--mgr-primary), var(--mgr-primary-dark)); color: #fff; }
.mgr-btn-primary:hover { color: #fff; transform: translateY(-1px); }
.mgr-btn-success { background: var(--mgr-success); color: #fff; }
.mgr-btn-warning { background: var(--mgr-warning); color: #fff; }
.mgr-btn-danger { background: var(--mgr-danger); color: #fff; }
.mgr-btn-outline { background: transparent; border: 1.5px solid var(--mgr-border); color: var(--mgr-text); }
.mgr-btn-outline:hover { border-color: var(--mgr-primary); color: var(--mgr-primary); background: var(--mgr-primary-light); }
.mgr-btn-secondary { background: #475569; color: #fff; }

.mgr-form-label { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; display: block; }
.mgr-form-control, .mgr-panel-body .form-control, .mgr-panel-body .form-select {
    border: 1.5px solid var(--mgr-border); border-radius: 10px; padding: 0.55rem 0.85rem; font-size: 0.875rem;
}
.mgr-form-control:focus, .mgr-panel-body .form-control:focus { border-color: var(--mgr-primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.12); }

.mgr-filter-card { background: var(--mgr-surface); border: 1px solid var(--mgr-border); border-radius: var(--mgr-radius); padding: 1.15rem; margin-bottom: 1.25rem; box-shadow: var(--mgr-shadow); }

.mgr-table-wrap { overflow-x: auto; }
.mgr-table { width: 100%; font-size: 0.85rem; margin: 0; }
.mgr-table thead th { background: #f8fafc; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mgr-muted); padding: 0.8rem 1rem; border-bottom: 2px solid var(--mgr-border); white-space: nowrap; }
.mgr-table tbody td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--mgr-border); vertical-align: middle; }
.mgr-table tbody tr:hover { background: rgba(13,148,136,0.03); }
.mgr-table-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.mgr-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.85rem; }
.mgr-detail-item { background: #f8fafc; border: 1px solid var(--mgr-border); border-radius: 10px; padding: 0.75rem 0.9rem; }
.mgr-detail-item label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--mgr-muted); margin-bottom: 0.2rem; }
.mgr-detail-item span { font-weight: 500; font-size: 0.875rem; }

.mgr-empty-state { text-align: center; padding: 2.5rem 1.5rem; }
.mgr-empty-icon { width: 72px; height: 72px; margin: 0 auto 1rem; background: var(--mgr-primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--mgr-primary); }
.mgr-empty-state h5 { font-weight: 600; }
.mgr-empty-state p { color: var(--mgr-muted); max-width: 300px; margin: 0 auto 1rem; font-size: 0.875rem; }

.mgr-timeline-item { display: flex; gap: 0.85rem; padding-bottom: 1rem; position: relative; }
.mgr-timeline-item:not(.last)::before { content: ''; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--mgr-border); }
.mgr-timeline-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--mgr-primary); border: 3px solid var(--mgr-primary-light); flex-shrink: 0; margin-top: 4px; }
.mgr-timeline-content { flex: 1; background: #f8fafc; border: 1px solid var(--mgr-border); border-radius: 10px; padding: 0.75rem 0.9rem; }
.mgr-timeline-content p { font-size: 0.85rem; color: var(--mgr-muted); margin-top: 0.2rem; }

.mgr-alert { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.9rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: 0.875rem; border: 1px solid transparent; }
.mgr-alert-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.mgr-alert-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.mgr-alert-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.mgr-alert-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

.mgr-profile-header {
    background: linear-gradient(135deg, #0f766e, #4f46e5); color: #fff; border-radius: var(--mgr-radius);
    padding: 2rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.mgr-profile-avatar { width: 88px; height: 88px; border-radius: 18px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; border: 3px solid rgba(255,255,255,0.25); }
.mgr-profile-badge { background: rgba(255,255,255,0.2); padding: 0.2rem 0.65rem; border-radius: 50px; font-size: 0.75rem; margin-right: 0.35rem; display: inline-block; margin-top: 0.5rem; }
.mgr-profile-tabs .nav-link { border: none; font-weight: 600; font-size: 0.875rem; color: var(--mgr-muted); border-radius: 10px; padding: 0.65rem 1.15rem; }
.mgr-profile-tabs .nav-link.active { background: var(--mgr-primary-light); color: var(--mgr-primary-dark); }

.mgr-doc-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border: 1px solid var(--mgr-border); border-radius: 10px; margin-bottom: 0.5rem; background: #f8fafc; }

.mgr-loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.85); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 9998; }
.mgr-loading-overlay.show { display: flex; }
.mgr-loader-spinner { width: 42px; height: 42px; border: 3px solid var(--mgr-border); border-top-color: var(--mgr-primary); border-radius: 50%; animation: mgrSpin 0.7s linear infinite; margin: 0 auto 0.65rem; }
@keyframes mgrSpin { to { transform: rotate(360deg); } }

.mgr-auth-page { min-height: 100vh; display: flex; background: var(--mgr-bg); }
.mgr-auth-left { flex: 1; background: linear-gradient(135deg, #0f766e, #312e81); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.mgr-auth-left h1 { font-size: 1.85rem; font-weight: 700; margin-bottom: 0.75rem; }
.mgr-auth-feature { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; font-size: 0.875rem; }
.mgr-auth-feature i { width: 34px; height: 34px; background: rgba(255,255,255,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.mgr-auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; max-width: 480px; }
.mgr-auth-card { width: 100%; max-width: 400px; }
.mgr-auth-card h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 0.25rem; }
.mgr-input-group { position: relative; }
.mgr-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mgr-muted); z-index: 5; }
.mgr-input-group .form-control { padding-left: 2.35rem; }
.mgr-password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--mgr-muted); z-index: 5; }

.mgr-sidebar-backdrop { display: none; }
.mgr-modal .modal-content { border: 1px solid var(--mgr-border); border-radius: var(--mgr-radius); box-shadow: var(--mgr-shadow-lg); }
.mgr-modal .modal-header { border-bottom: 1px solid var(--mgr-border); background: #f8fafc; }

.mgr-content .pagination { margin-top: 1.25rem; }
.mgr-content .page-link { border-radius: 8px; margin: 0 2px; border-color: var(--mgr-border); color: var(--mgr-text); font-size: 0.85rem; }
.mgr-content .page-item.active .page-link { background: var(--mgr-primary); border-color: var(--mgr-primary); }

@media (max-width: 991px) {
    .mgr-sidebar { transform: translateX(-100%); }
    .mgr-sidebar.show { transform: translateX(0); }
    .mgr-main { margin-left: 0; }
    .mgr-sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .mgr-topbar-search { display: none; }
    .mgr-sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 1038; }
}
@media (max-width: 767px) {
    .mgr-auth-page { flex-direction: column; }
    .mgr-auth-left { padding: 2rem 1.5rem; }
    .mgr-auth-right { max-width: 100%; }
    .mgr-content { padding: 1rem; }
    .mgr-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mgr-table-responsive thead { display: none; }
    .mgr-table-responsive tbody tr { display: block; margin-bottom: 0.85rem; border: 1px solid var(--mgr-border); border-radius: 10px; padding: 0.35rem; background: #fff; }
    .mgr-table-responsive tbody td { display: flex; justify-content: space-between; padding: 0.45rem 0.65rem; border: none; }
    .mgr-table-responsive tbody td::before { content: attr(data-label); font-weight: 600; font-size: 0.7rem; color: var(--mgr-muted); text-transform: uppercase; }
    .mgr-profile-header { flex-direction: column; text-align: center; }
}
