/* ═══════════════════════════════════════
   MON EXPERT — Dashboard & Admin Styles
   ═══════════════════════════════════════ */

/* ── AUTH CARD ── */
.auth-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.auth-card .form-group { margin-bottom: 16px; }
.auth-card label { display: block; font-size: 12px; font-weight: 700; color: #0F172A; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.auth-card .form-input {
    width: 100%; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 10px;
    font-size: 14px; font-family: 'Inter', sans-serif; transition: border 0.2s;
    box-sizing: border-box;
}
.auth-card .form-input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.btn-primary {
    display: block; width: 100%; padding: 14px; border: none; border-radius: 10px;
    background: #10B981; color: #fff; font-size: 14px; font-weight: 800;
    font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.2s;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary:hover { background: #059669; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── DASHBOARD LAYOUT ── */
.dash-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.dash-sidebar {
    background: #0F2B46;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.dash-sidebar-logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}
.dash-sidebar-logo img { height: 28px; filter: brightness(0) invert(1); opacity: 0.9; }
.dash-sidebar-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255,255,255,0.35); padding: 16px 24px 8px;
}
.dash-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 24px; font-size: 14px; color: rgba(255,255,255,0.65);
    text-decoration: none; transition: all 0.15s; font-weight: 500;
    border-left: 3px solid transparent;
}
.dash-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.dash-nav-link.active { color: #10B981; background: rgba(16,185,129,0.08); border-left-color: #10B981; font-weight: 700; }
.dash-nav-link .nav-icon { font-size: 18px; width: 24px; text-align: center; }
.dash-nav-link .badge {
    margin-left: auto; background: #EF4444; color: #fff;
    font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 10px;
}
.dash-sidebar-bottom {
    margin-top: auto; padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: absolute; bottom: 0; left: 0; right: 0;
}
.dash-user-info { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.dash-user-info strong { color: rgba(255,255,255,0.85); display: block; font-size: 13px; }
.dash-logout {
    display: block; width: 100%; padding: 8px; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; background: transparent; color: rgba(255,255,255,0.5);
    font-size: 12px; cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif;
}
.dash-logout:hover { color: #EF4444; border-color: #EF4444; }

.dash-main {
    background: #F8FAFC;
    padding: 32px 40px;
    min-height: 100vh;
}
.dash-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}
.dash-header h1 { font-size: 24px; font-weight: 800; color: #0F172A; }
.dash-header-actions { display: flex; gap: 10px; }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
    padding: 20px 24px; position: relative; overflow: hidden;
}
.stat-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.stat-card.green::after { background: #10B981; }
.stat-card.blue::after { background: #2563EB; }
.stat-card.orange::after { background: #F59E0B; }
.stat-card.red::after { background: #EF4444; }
.stat-card .stat-value { font-size: 32px; font-weight: 900; color: #0F172A; }
.stat-card .stat-label { font-size: 12px; font-weight: 600; color: #64748B; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.stat-card .stat-icon { position: absolute; top: 16px; right: 20px; font-size: 24px; opacity: 0.4; }

/* ── TABLE ── */
.dash-table-wrap {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.dash-table-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; border-bottom: 1px solid #F1F5F9;
}
.dash-table-header h3 { font-size: 15px; font-weight: 800; color: #0F172A; }
.dash-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
.dash-table th {
    padding: 12px 20px; text-align: left; font-size: 11px; font-weight: 700;
    color: #64748B; text-transform: uppercase; letter-spacing: 0.5px;
    background: #F8FAFC; border-bottom: 1px solid #E2E8F0;
}
.dash-table td {
    padding: 14px 20px; border-bottom: 1px solid #F1F5F9;
    color: #334155; vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: #F8FAFC; }
.dash-table .service-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dash-table .service-icon { font-size: 18px; }

/* ── BUTTONS ── */
.btn-sm {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700;
    font-family: 'Inter', sans-serif; cursor: pointer; border: none; transition: all 0.15s;
    text-decoration: none;
}
.btn-sm.green { background: #D1FAE5; color: #059669; }
.btn-sm.green:hover { background: #10B981; color: #fff; }
.btn-sm.blue { background: #DBEAFE; color: #2563EB; }
.btn-sm.blue:hover { background: #2563EB; color: #fff; }
.btn-sm.red { background: #FEF2F2; color: #EF4444; }
.btn-sm.red:hover { background: #EF4444; color: #fff; }
.btn-sm.navy { background: #0F2B46; color: #fff; }
.btn-sm.navy:hover { background: #1A3D5C; }

/* ── DETAIL CARD ── */
.detail-card {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
    padding: 28px; margin-bottom: 20px;
}
.detail-card h3 { font-size: 16px; font-weight: 800; color: #0F172A; margin-bottom: 16px; }
.detail-row {
    display: flex; align-items: baseline; padding: 8px 0;
    border-bottom: 1px solid #F8FAFC; font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 160px; color: #64748B; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; flex-shrink: 0; }
.detail-value { color: #0F172A; font-weight: 500; }

/* ── QUOTE CARD (admin) ── */
.quote-card {
    background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px;
    padding: 20px; margin-bottom: 12px; position: relative;
}
.quote-card.recommended { border-color: #10B981; background: #F0FDF4; }
.quote-card .quote-provider { font-size: 15px; font-weight: 800; color: #0F172A; }
.quote-card .quote-amount { font-size: 20px; font-weight: 900; color: #059669; margin-top: 4px; }
.quote-card .quote-desc { font-size: 13px; color: #64748B; margin-top: 8px; line-height: 1.6; }
.quote-card .recommended-badge {
    position: absolute; top: 12px; right: 12px;
    background: #10B981; color: #fff; font-size: 10px; font-weight: 800;
    padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
}
.quote-card .quote-actions { margin-top: 12px; display: flex; gap: 8px; }

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center; padding: 60px 20px; color: #94A3B8;
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: #64748B; margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ── MODAL ── */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff; border-radius: 16px; width: 100%; max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); overflow: hidden;
}
.modal-header {
    padding: 20px 24px; border-bottom: 1px solid #E2E8F0;
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 800; color: #0F172A; }
.modal-close { background: none; border: none; font-size: 20px; color: #94A3B8; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-body .form-group { margin-bottom: 14px; }
.modal-body label { display: block; font-size: 12px; font-weight: 700; color: #0F172A; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.modal-body .form-input {
    width: 100%; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 8px;
    font-size: 14px; font-family: 'Inter', sans-serif; box-sizing: border-box;
}
.modal-body .form-input:focus { outline: none; border-color: #2563EB; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #E2E8F0; display: flex; gap: 10px; justify-content: flex-end; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar {
        position: fixed; left: -260px; width: 260px; z-index: 100;
        transition: left 0.3s;
    }
    .dash-sidebar.open { left: 0; }
    .dash-main { padding: 20px 16px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .dash-table { font-size: 12px; }
    .dash-table th, .dash-table td { padding: 10px 12px; }
    .mobile-menu-btn {
        display: block !important; position: fixed; top: 12px; left: 12px; z-index: 99;
        background: #0F2B46; color: #fff; border: none; border-radius: 8px;
        width: 40px; height: 40px; font-size: 18px; cursor: pointer;
    }
}
