﻿/* ==========================================================================
   AARAMBHA EXPERTS - Dashboard Styles
   ========================================================================== */
.db-page { min-height: 100vh; background: #f8fafc; font-family: "Inter", sans-serif; display: flex; flex-direction: column; }
.db-topbar { height: 68px; background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(10,25,47,0.05); }
.db-topbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.db-topbar-logo { height: 40px; background: #f1f5f9; padding: 4px 8px; border-radius: 8px; }
.db-topbar-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 800; color: #0a192f; }
.db-topbar-right { display: flex; align-items: center; gap: 16px; }
.db-notif-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid #e2e8f0; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; transition: all 0.2s; }
.db-notif-btn:hover { background: #f1f5f9; color: #0a192f; }
.db-notif-badge { position: absolute; top: -5px; right: -5px; background: #dc2626; color: #fff; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.db-user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
.db-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #0a192f, #c28546); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700; }
.db-user-name { font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.875rem; font-weight: 600; color: #0a192f; }
.db-user-menu { position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 28px rgba(10,25,47,0.12); min-width: 200px; overflow: hidden; display: none; z-index: 200; }
.db-user-menu.open { display: block; }
.db-user-menu a, .db-user-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; font-size: 0.875rem; font-weight: 500; color: #334155; background: none; border: none; text-decoration: none; cursor: pointer; transition: background 0.15s; text-align: left; }
.db-user-menu a:hover, .db-user-menu button:hover { background: #f8fafc; }
.db-user-menu .logout-btn { color: #dc2626; border-top: 1px solid #f1f5f9; }

/* Layout */
.db-layout { display: flex; flex: 1; min-height: 0; }
.db-sidebar { width: 240px; background: #fff; border-right: 1px solid #e2e8f0; padding: 24px 0; display: flex; flex-direction: column; flex-shrink: 0; }
.db-nav-section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; padding: 0 20px; margin-bottom: 8px; margin-top: 20px; }
.db-nav-section-label:first-child { margin-top: 0; }
.db-nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.9rem; font-weight: 600; color: #64748b; text-decoration: none; border-radius: 0; border-left: 3px solid transparent; transition: all 0.18s; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.db-nav-link:hover { background: #f8fafc; color: #0a192f; }
.db-nav-link.active { background: #f0f7ff; color: #0a192f; border-left-color: #c28546; font-weight: 700; }
.db-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.db-nav-badge { margin-left: auto; background: #c28546; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

/* Main content */
.db-main { flex: 1; padding: 32px 36px; overflow-y: auto; min-height: 0; }
.db-page-header { margin-bottom: 28px; }
.db-page-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.625rem; font-weight: 800; color: #09192c; }
.db-page-subtitle { font-size: 0.9375rem; color: #64748b; margin-top: 4px; }
.db-tab-content { display: none; }
.db-tab-content.active { display: block; }

/* Stats Cards */
.db-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.db-stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 24px; display: flex; align-items: flex-start; gap: 16px; box-shadow: 0 1px 4px rgba(10,25,47,0.05); transition: all 0.22s ease; }
.db-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(10,25,47,0.1); }
.db-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-stat-icon.navy { background: rgba(10,25,47,0.08); color: #0a192f; }
.db-stat-icon.gold { background: rgba(194,133,70,0.12); color: #c28546; }
.db-stat-icon.green { background: rgba(21,128,61,0.1); color: #15803d; }
.db-stat-icon.blue { background: rgba(2,132,199,0.1); color: #0284c7; }
.db-stat-num { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.75rem; font-weight: 800; color: #09192c; line-height: 1; }
.db-stat-label { font-size: 0.8rem; color: #64748b; margin-top: 4px; font-weight: 500; }

/* Cards */
.db-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(10,25,47,0.05); margin-bottom: 24px; }
.db-card-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #f1f5f9; }
.db-card-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 700; color: #09192c; }
.db-card-body { padding: 20px 24px; }

/* Appointment Items */
.appt-list { display: flex; flex-direction: column; gap: 14px; }
.appt-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; transition: all 0.2s; }
.appt-item:hover { border-color: #c28546; box-shadow: 0 4px 12px rgba(10,25,47,0.08); }
.appt-date-box { width: 52px; height: 52px; border-radius: 10px; background: #0a192f; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.appt-day { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.25rem; font-weight: 800; line-height: 1; }
.appt-mon { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.appt-info { flex: 1; }
.appt-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.9375rem; font-weight: 700; color: #09192c; }
.appt-time { font-size: 0.8125rem; color: #64748b; margin-top: 3px; }
.appt-status { padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.status-confirmed { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-completed { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.status-cancelled { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Service Requests / Cases */
.case-list { display: flex; flex-direction: column; gap: 16px; }
.case-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; background: #fff; }
.case-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.case-id { font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; }
.case-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 700; color: #09192c; margin-bottom: 4px; }
.case-desc { font-size: 0.875rem; color: #64748b; }
.case-tracker { display: flex; align-items: center; gap: 0; margin-top: 16px; }
.tracker-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.tracker-step::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: #e2e8f0; z-index: 0; }
.tracker-step:first-child::before { display: none; }
.tracker-step.done::before { background: #c28546; }
.tracker-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #e2e8f0; background: #fff; display: flex; align-items: center; justify-content: center; z-index: 1; position: relative; font-size: 0.7rem; font-weight: 700; color: #94a3b8; }
.tracker-step.done .tracker-dot { background: #c28546; border-color: #c28546; color: #fff; }
.tracker-step.current .tracker-dot { border-color: #0a192f; background: #0a192f; color: #fff; }
.tracker-label { font-size: 0.65rem; font-weight: 600; color: #94a3b8; margin-top: 6px; text-align: center; }
.tracker-step.done .tracker-label, .tracker-step.current .tracker-label { color: #0a192f; font-weight: 700; }

/* Document Upload */
.doc-upload-zone { border: 2px dashed #c28546; border-radius: 12px; padding: 36px; text-align: center; background: rgba(194,133,70,0.03); cursor: pointer; transition: all 0.2s; }
.doc-upload-zone:hover, .doc-upload-zone.drag-over { background: rgba(194,133,70,0.08); border-color: #b87739; }
.doc-upload-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(194,133,70,0.12); color: #c28546; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.doc-upload-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 700; color: #09192c; margin-bottom: 6px; }
.doc-upload-sub { font-size: 0.8125rem; color: #64748b; }
.doc-upload-input { display: none; }
.doc-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.doc-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; }
.doc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-icon.pdf { background: #fef2f2; color: #dc2626; }
.doc-icon.img { background: #f0f9ff; color: #0284c7; }
.doc-icon.doc { background: #eff6ff; color: #3b82f6; }
.doc-icon.other { background: #f8fafc; color: #64748b; }
.doc-name { font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.9rem; font-weight: 600; color: #09192c; }
.doc-meta { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.doc-delete-btn { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #fee2e2; background: #fef2f2; color: #dc2626; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
.doc-delete-btn:hover { background: #dc2626; color: #fff; }

/* Notifications */
.notif-list { display: flex; flex-direction: column; gap: 12px; }
.notif-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; position: relative; transition: all 0.18s; }
.notif-item.unread { background: #fdf8f3; border-color: #f5d9a8; }
.notif-item:hover { box-shadow: 0 4px 12px rgba(10,25,47,0.08); }
.notif-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon.info { background: #eff6ff; color: #3b82f6; }
.notif-icon.action { background: #fffbeb; color: #b45309; }
.notif-icon.success { background: #f0fdf4; color: #15803d; }
.notif-icon.reminder { background: rgba(10,25,47,0.08); color: #0a192f; }
.notif-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.9rem; font-weight: 700; color: #09192c; }
.notif-desc { font-size: 0.8125rem; color: #64748b; margin-top: 3px; line-height: 1.5; }
.notif-time { font-size: 0.75rem; color: #94a3b8; margin-top: 6px; }
.notif-unread-dot { position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: #c28546; }
.notif-mark-read { position: absolute; top: 12px; right: 12px; font-size: 0.7rem; font-weight: 700; color: #c28546; cursor: pointer; background: none; border: none; }

/* Forms & Modals in Dashboard */
.db-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.db-form-group { margin-bottom: 16px; }
.db-form-group label { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.8rem; font-weight: 600; color: #0a192f; margin-bottom: 6px; }
.db-form-group input, .db-form-group select, .db-form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem; color: #09192c; background: #fff; outline: none; transition: border 0.18s; box-sizing: border-box; }
.db-form-group input:focus, .db-form-group select:focus, .db-form-group textarea:focus { border-color: #c28546; box-shadow: 0 0 0 3px rgba(194,133,70,0.15); }
.db-btn { display: inline-flex; align-items: center; gap: 8px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.875rem; font-weight: 700; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s; }
.db-btn-primary { background: linear-gradient(135deg, #0a192f, #102a4c); color: #fff; }
.db-btn-primary:hover { background: linear-gradient(135deg, #c28546, #b87739); transform: translateY(-1px); }
.db-btn-outline { background: transparent; color: #0a192f; border: 1.5px solid #e2e8f0; }
.db-btn-outline:hover { background: #f1f5f9; }
.db-btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.db-btn-danger:hover { background: #dc2626; color: #fff; }
.db-btn-gold { background: linear-gradient(135deg, #c28546, #b87739); color: #fff; box-shadow: 0 4px 12px rgba(194,133,70,0.3); }
.db-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(194,133,70,0.4); }

/* Empty State */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-state-icon { width: 64px; height: 64px; border-radius: 16px; background: #f1f5f9; color: #94a3b8; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty-state-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.0625rem; font-weight: 700; color: #09192c; margin-bottom: 8px; }
.empty-state-desc { font-size: 0.875rem; color: #64748b; }

/* Overlay modal */
.db-modal-overlay { position: fixed; inset: 0; background: rgba(4,13,26,0.65); backdrop-filter: blur(6px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all 0.3s; }
.db-modal-overlay.open { opacity: 1; visibility: visible; }
.db-modal-card { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 32px; position: relative; transform: scale(0.95) translateY(20px); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.db-modal-overlay.open .db-modal-card { transform: scale(1) translateY(0); }
.db-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748b; transition: all 0.15s; }
.db-modal-close:hover { background: #0a192f; color: #fff; }

/* Toast notifications */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(10,25,47,0.18); border-left: 4px solid; font-size: 0.875rem; font-weight: 600; min-width: 280px; animation: slideInToast 0.3s ease; }
.toast.success { border-color: #15803d; color: #14532d; }
.toast.error { border-color: #dc2626; color: #7f1d1d; }
.toast.info { border-color: #0284c7; color: #0c4a6e; }
.toast.warning { border-color: #b45309; color: #78350f; }
@keyframes slideInToast { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Welcome banner */
.db-welcome-banner { background: linear-gradient(135deg, #0a192f 0%, #102a4c 100%); border-radius: 16px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.db-welcome-text h2 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.375rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.db-welcome-text p { font-size: 0.9rem; color: #94a3b8; }
.db-welcome-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 900px) {
  .db-sidebar { display: none; }
  .db-main { padding: 20px 16px; }
  .db-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .db-welcome-banner { flex-direction: column; }
  .db-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .db-stats-grid { grid-template-columns: 1fr; }
}
