/* ══════════════════════════════════════════════════════
   DASHBOARD.CSS — AmyServes Admin / Client / Staff
══════════════════════════════════════════════════════ */

/* ── LAYOUT ─────────────────────────────────────────── */
.dash-page {
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
    font-family: 'Inter', sans-serif;
  }
  
  /* ── SIDEBAR ─────────────────────────────────────────── */
  .dash-sidebar {
    width: 240px;
    background: var(--navy-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
  }
  
  .dash-sidebar-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .dash-sidebar-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 8px;
  }
  
  .dash-sidebar-role {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
  }
  
  .dash-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
  }
  
  .dash-nav-section {
    padding: 0 12px;
    margin-bottom: 8px;
  }
  
  .dash-nav-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    padding: 8px 8px 6px;
    display: block;
  }
  
  .dash-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 0.855rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
  }
  
  .dash-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
  }
  
  .dash-nav a.active {
    background: rgba(200,148,26,0.15);
    color: var(--gold-light);
    border-left: 3px solid var(--gold);
    padding-left: 7px;
  }
  
  .dash-nav a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
  }
  
  .dash-nav a.active svg {
    opacity: 1;
  }
  
  .dash-nav-badge {
    margin-left: auto;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1.4;
  }
  
  .dash-nav-badge--red {
    background: #dc3246;
    color: #fff;
  }
  
  .dash-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  
  .dash-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .dash-user-chip:hover {
    background: rgba(255,255,255,0.06);
  }
  
  .dash-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  
  .dash-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
  }
  
  .dash-user-role {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
  }
  
  /* ── MAIN CONTENT ────────────────────────────────────── */
  .dash-main {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  /* ── TOP BAR ─────────────────────────────────────────── */
  .dash-topbar {
    background: #fff;
    border-bottom: 1px solid #e8e4de;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
  }
  
  .dash-topbar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
  }
  
  .dash-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .dash-topbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f5f7fa;
    border: 1px solid #e8e4de;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--navy);
    transition: all 0.2s;
    position: relative;
  }
  
  .dash-topbar-btn:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
  }
  
  .dash-topbar-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .dash-notif-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 7px; height: 7px;
    background: #dc3246;
    border-radius: 50%;
    border: 1.5px solid #fff;
  }
  
  /* ── PAGE BODY ───────────────────────────────────────── */
  .dash-content {
    padding: 32px;
    flex: 1;
  }
  
  .dash-page-header {
    margin-bottom: 28px;
  }
  
  .dash-page-header h1 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 4px;
  }
  
  .dash-page-header p {
    font-size: 0.875rem;
    color: var(--warm-grey);
  }
  
  /* ── STAT CARDS ──────────────────────────────────────── */
  .dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
  }
  
  .dash-stat-card {
    background: #fff;
    border: 1px solid #e8e4de;
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s;
  }
  
  .dash-stat-card:hover {
    box-shadow: 0 4px 20px rgba(26,60,94,0.08);
  }
  
  .dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
  }
  
  .dash-stat-icon--navy   { background: rgba(26,60,94,0.1); }
  .dash-stat-icon--teal   { background: rgba(15,110,86,0.1); }
  .dash-stat-icon--purple { background: rgba(60,52,137,0.1); }
  .dash-stat-icon--gold   { background: rgba(200,148,26,0.1); }
  
  .dash-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
  }
  
  .dash-stat-label {
    font-size: 0.8rem;
    color: var(--warm-grey);
  }
  
  .dash-stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .dash-stat-change--up   { color: #0f9d58; }
  .dash-stat-change--down { color: #dc3246; }
  .dash-stat-change--neu  { color: var(--warm-grey); }
  
  /* ── CARDS / PANELS ──────────────────────────────────── */
  .dash-card {
    background: #fff;
    border: 1px solid #e8e4de;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e8e4de;
  }
  
  .dash-card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
  }
  
  .dash-card-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .dash-card-body {
    padding: 24px;
  }
  
  .dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .dash-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  /* ── TABLE ───────────────────────────────────────────── */
  .dash-table-wrap {
    overflow-x: auto;
  }
  
  .dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.855rem;
  }
  
  .dash-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--warm-grey);
    background: #f8f7f4;
    border-bottom: 1px solid #e8e4de;
  }
  
  .dash-table td {
    padding: 14px 16px;
    color: var(--navy);
    border-bottom: 1px solid #f0ede8;
    vertical-align: middle;
  }
  
  .dash-table tr:last-child td {
    border-bottom: none;
  }
  
  .dash-table tr:hover td {
    background: #fafaf9;
  }
  
  /* ── BADGES / STATUS ─────────────────────────────────── */
  .dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
  }
  
  .dash-badge--green  { background: #e6f9ef; color: #0a7c42; }
  .dash-badge--yellow { background: #fff8e6; color: #a36a00; }
  .dash-badge--red    { background: #fdecea; color: #b71c1c; }
  .dash-badge--navy   { background: rgba(26,60,94,0.1); color: var(--navy); }
  .dash-badge--teal   { background: rgba(15,110,86,0.1); color: var(--teal); }
  .dash-badge--purple { background: rgba(60,52,137,0.1); color: var(--purple); }
  .dash-badge--grey   { background: #f0ede8; color: var(--warm-grey); }
  
  /* ── ACTIVITY FEED ───────────────────────────────────── */
  .dash-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .dash-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0ede8;
  }
  
  .dash-feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .dash-feed-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  
  .dash-feed-text {
    flex: 1;
  }
  
  .dash-feed-text strong {
    display: block;
    font-size: 0.855rem;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 2px;
  }
  
  .dash-feed-text span {
    font-size: 0.78rem;
    color: var(--warm-grey);
  }
  
  .dash-feed-time {
    font-size: 0.72rem;
    color: var(--warm-grey);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* ── MESSAGES ────────────────────────────────────────── */
  .dash-msg-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .dash-msg-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0ede8;
    cursor: pointer;
    transition: background 0.15s;
  }
  
  .dash-msg-item:last-child { border-bottom: none; }
  .dash-msg-item:hover { background: #fafaf9; }
  .dash-msg-item.unread { background: #fdf9f0; }
  .dash-msg-item.unread .dash-msg-subject { font-weight: 700; }
  
  .dash-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  
  .dash-msg-body { flex: 1; min-width: 0; }
  .dash-msg-from { font-size: 0.855rem; font-weight: 600; color: var(--navy); }
  .dash-msg-subject { font-size: 0.825rem; color: #444; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-msg-preview { font-size: 0.78rem; color: var(--warm-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-msg-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  .dash-msg-time { font-size: 0.72rem; color: var(--warm-grey); }
  .dash-msg-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
  
  /* Message detail panel */
  .dash-msg-detail {
    padding: 28px 32px;
    display: none;
  }
  
  .dash-msg-detail.open { display: block; }
  
  .dash-msg-detail-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e4de;
  }
  
  .dash-msg-detail-subject {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
  }
  
  .dash-msg-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--warm-grey);
  }
  
  .dash-msg-detail-meta strong { color: var(--navy); }
  
  .dash-msg-detail-body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: 28px;
  }
  
  /* ── SEARCH + FILTER BAR ─────────────────────────────── */
  .dash-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  
  .dash-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
  }
  
  .dash-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--warm-grey);
  }
  
  .dash-search-input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border: 1.5px solid #e8e4de;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s;
  }
  
  .dash-search-input:focus {
    border-color: var(--navy);
  }
  
  .dash-filter-select {
    padding: 9px 32px 9px 12px;
    border: 1.5px solid #e8e4de;
    border-radius: 8px;
    font-size: 0.855rem;
    font-family: inherit;
    background: #fff;
    color: var(--navy);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8070' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
  }
  
  /* ── BUTTONS ─────────────────────────────────────────── */
  .dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.855rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid transparent;
    text-decoration: none;
    white-space: nowrap;
  }
  
  .dash-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
  
  .dash-btn--primary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
  }
  
  .dash-btn--primary:hover {
    background: #1e4570;
    transform: translateY(-1px);
  }
  
  .dash-btn--secondary {
    background: #fff;
    color: var(--navy);
    border-color: #e8e4de;
  }
  
  .dash-btn--secondary:hover {
    border-color: var(--navy);
    background: #f5f7fa;
  }
  
  .dash-btn--danger {
    background: #fdecea;
    color: #b71c1c;
    border-color: #f5c6cb;
  }
  
  .dash-btn--danger:hover {
    background: #dc3246;
    color: #fff;
    border-color: #dc3246;
  }
  
  .dash-btn--teal {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
  }
  
  .dash-btn--sm {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  
  /* ── FORM ELEMENTS ───────────────────────────────────── */
  .dash-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
  }
  
  .dash-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
  }
  
  .dash-form-group input,
  .dash-form-group select,
  .dash-form-group textarea {
    padding: 10px 13px;
    border: 1.5px solid #e8e4de;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--navy);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
  }
  
  .dash-form-group input:focus,
  .dash-form-group select:focus,
  .dash-form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,60,94,0.07);
  }
  
  .dash-form-group textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  /* ── MODAL ───────────────────────────────────────────── */
  .dash-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,20,38,0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .dash-modal-overlay.open {
    display: flex;
  }
  
  .dash-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .dash-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e4de;
  }
  
  .dash-modal-header h3 {
    font-size: 1rem;
    color: var(--navy);
  }
  
  .dash-modal-close {
    width: 30px; height: 30px;
    border-radius: 6px;
    background: #f5f7fa;
    border: 1px solid #e8e4de;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .dash-modal-close:hover { background: var(--navy); color: #fff; }
  .dash-modal-close svg { width: 14px; height: 14px; }
  
  .dash-modal-body { padding: 24px; }
  
  .dash-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e8e4de;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  /* ── TOAST ───────────────────────────────────────────── */
  .dash-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--navy-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  
  .dash-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  
  .dash-toast--success { border-left: 4px solid #0f9d58; }
  .dash-toast--error   { border-left: 4px solid #dc3246; }
  .dash-toast--info    { border-left: 4px solid var(--gold); }
  
  /* ── EMPTY STATE ─────────────────────────────────────── */
  .dash-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--warm-grey);
  }
  
  .dash-empty span { font-size: 2.5rem; display: block; margin-bottom: 12px; }
  .dash-empty h4   { font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; }
  .dash-empty p    { font-size: 0.855rem; }
  
  /* ── HAMBURGER (mobile) ──────────────────────────────── */
  .dash-menu-toggle {
    display: none;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #f5f7fa;
    border: 1px solid #e8e4de;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--navy);
  }
  
  .dash-menu-toggle svg { width: 18px; height: 18px; }
  
  /* ── RESPONSIVE ──────────────────────────────────────── */
  @media (max-width: 1024px) {
    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  }
  
  @media (max-width: 768px) {
    .dash-sidebar {
      transform: translateX(-100%);
    }
  
    .dash-sidebar.open {
      transform: translateX(0);
      box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    }
  
    .dash-main { margin-left: 0; }
    .dash-menu-toggle { display: flex; }
    .dash-content { padding: 20px 16px; }
    .dash-stats-grid { grid-template-columns: 1fr 1fr; }
    .dash-grid-2 { grid-template-columns: 1fr; }
    .dash-grid-3 { grid-template-columns: 1fr; }
    .dash-topbar { padding: 0 16px; }
  }
  
  @media (max-width: 480px) {
    .dash-stats-grid { grid-template-columns: 1fr; }
  }

  .dash-nav-signout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  
    padding: 12px 14px;
    border: 1px solid #e7ddd2;
    border-radius: 12px;
  
    background: #fff;
    color: #8b2e2e;
  
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
  
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
  
    appearance: none;
    -webkit-appearance: none;
  }
  
  .dash-nav-signout-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
  }
  
  .dash-nav-signout-btn:hover {
    background: #fff5f5;
    border-color: #e8c4c4;
    color: #7a1f1f;
  }
  
  .dash-nav-signout-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 46, 46, 0.12);
  }
  
  .dash-nav-signout-btn:active {
    transform: translateY(1px);
  }

  /* ── NOTIFICATION BELL ──────────────────── */
.dash-notif-wrapper {
  position: relative;
}

.dash-notif-btn {
  position: relative;
}

.dash-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #d94f4f;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dash-notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid #e8e4de;
  z-index: 999;
  overflow: hidden;
}

.dash-notif-dropdown.open {
  display: block;
}

.dash-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e8e4de;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.dash-notif-mark-read {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
}

.dash-notif-list {
  max-height: 320px;
  overflow-y: auto;
}

.dash-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0ede8;
  cursor: pointer;
  transition: background 0.2s;
}

.dash-notif-item:hover {
  background: #faf8f5;
}

.dash-notif-item.unread {
  background: #f5f1eb;
}

.dash-notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dash-notif-item-icon.booking { background: #e8f5e9; }
.dash-notif-item-icon.message { background: #e3f2fd; }
.dash-notif-item-icon.status  { background: #fff3e0; }

.dash-notif-item-body {
  flex: 1;
  min-width: 0;
}

.dash-notif-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.dash-notif-item-text {
  font-size: 0.78rem;
  color: var(--warm-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-notif-item-time {
  font-size: 0.7rem;
  color: var(--warm-grey);
  white-space: nowrap;
  margin-top: 2px;
}

.dash-notif-footer {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-top: 1px solid #e8e4de;
}

.dash-notif-footer:hover {
  background: #faf8f5;
}

.dash-notif-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--warm-grey);
}

/* ═══════════════════════════════════════════
   PROFILE AVATAR UPLOAD
═══════════════════════════════════════════ */

/* Avatar wrapper with hover edit */
.profile-avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  cursor: pointer;
}

.profile-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-edit {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  padding: 0;
}

.profile-avatar-wrapper:hover .profile-avatar-edit {
  opacity: 1;
  transform: scale(1);
}

.profile-avatar-edit:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ═══════════════════════════════════════════
   AVATAR UPLOAD MODAL
═══════════════════════════════════════════ */

.avatar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.avatar-modal-overlay.open {
  display: flex;
}

.avatar-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: avatarModalIn 0.25s ease;
}

@keyframes avatarModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.avatar-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0ede8;
}

.avatar-modal-header h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0;
}

.avatar-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f5f3f0;
  color: var(--navy);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.avatar-modal-close:hover {
  background: #e8e4de;
}

.avatar-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Current preview */
.avatar-preview-section {
  text-align: center;
}

.avatar-preview-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 8px;
  overflow: hidden;
  border: 3px solid #f0ede8;
}

.avatar-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview-hint {
  font-size: 0.82rem;
  color: var(--warm-grey);
  margin: 0;
}

/* Dropzone */
.avatar-dropzone {
  width: 100%;
  border: 2px dashed #d4cfc7;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #faf9f7;
}

.avatar-dropzone:hover,
.avatar-dropzone.dragover {
  border-color: var(--navy);
  background: #f5f2ee;
}

.avatar-dropzone.dragover {
  border-color: var(--gold);
  background: #FFF8E7;
}

.dropzone-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 10px 0 4px;
}

.dropzone-subtext {
  font-size: 0.82rem;
  color: var(--warm-grey);
  margin: 0 0 10px;
}

.dropzone-browse-btn {
  padding: 8px 20px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dropzone-browse-btn:hover {
  background: var(--navy);
  color: #fff;
}

.dropzone-hint {
  font-size: 0.78rem;
  color: var(--warm-grey);
  margin: 12px 0 0;
}

/* New photo preview */
.avatar-new-preview {
  text-align: center;
  width: 100%;
}

.avatar-new-preview-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-new-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-new-filename {
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 500;
  margin: 0 0 8px;
}

.avatar-change-btn {
  padding: 6px 16px;
  border: 1px solid #d4cfc7;
  border-radius: 8px;
  background: #fff;
  color: var(--warm-grey);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-change-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Footer */
.avatar-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #f0ede8;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-remove-btn {
  color: #b04040 !important;
  font-size: 0.85rem !important;
}

.avatar-remove-btn:hover {
  background: #fff5f5 !important;
  color: #8b2020 !important;
}

/* Responsive */
@media (max-width: 480px) {
  .avatar-modal {
    max-width: 100%;
    border-radius: 12px;
  }

  .avatar-modal-footer {
    flex-direction: column;
  }

  .avatar-modal-footer > div {
    width: 100%;
    justify-content: stretch;
  }

  .avatar-modal-footer > div .dash-btn {
    flex: 1;
  }
}
