/* ══════════════════════════════════════════════════════════════
   DASHBOARD — Bento box widget layout for the command center
   ══════════════════════════════════════════════════════════════ */

/* ── Dashboard View ── */
.dashboard-view {
    padding: 24px;
    position: relative;
    overflow: hidden;
    min-height: calc(100dvh - var(--header-height));
}

/* Ambient background — warm golden-hour (from landing page) */
.dashboard-view::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.08) 0%, rgba(255, 107, 107, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    animation: dashOrb1 20s ease-in-out infinite;
    z-index: 0;
}
.dashboard-view::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: -40px;
    left: -40px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.06) 0%, rgba(255, 159, 67, 0.03) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    animation: dashOrb2 25s ease-in-out infinite;
    z-index: 0;
}
body.dark-mode .dashboard-view::before {
    background: radial-gradient(circle, rgba(10, 132, 255, 0.10) 0%, rgba(94, 92, 230, 0.06) 40%, transparent 70%);
}
body.dark-mode .dashboard-view::after {
    background: radial-gradient(circle, rgba(94, 92, 230, 0.08) 0%, rgba(10, 132, 255, 0.05) 40%, transparent 70%);
}
@keyframes dashOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes dashOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -25px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.9); }
}

/* ── Dashboard Greeting ── */
.dashboard-greeting {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}
.dashboard-greeting h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}
.dashboard-greeting h1 .greeting-name {
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dashboard-greeting p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Bento Grid ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(80px, auto);
    grid-auto-flow: dense;
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* ── Widget Card Base ── */
.widget-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 20px;
    position: relative;
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;

    /* Subtle gradient top accent */
    border-top: 2px solid transparent;
    background-clip: padding-box;
}
.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.widget-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 180, 80, 0.30);
    box-shadow: 0 8px 32px rgba(245, 150, 70, 0.10), 0 2px 8px var(--shadow);
}
.widget-card:hover::before {
    opacity: 1;
}
body.dark-mode .widget-card {
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.06);
}
body.dark-mode .widget-card:hover {
    border-color: rgba(10, 132, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(10, 132, 255, 0.10);
}

/* Widget Header */
.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}
.widget-title svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
}
.widget-action {
    font-size: 13px;
    font-weight: 600;
    color: var(--apple-blue);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
}
.widget-action:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════
   Widget 0: Weather (4col × 1row)
   ═══════════════════════════════════════ */
.widget-weather {
    grid-column: span 4;
    grid-row: span 1;
    cursor: default;
}
.weather-widget-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.weather-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}
.weather-location-line {
    font-size: 11px;
    color: var(--text-tertiary);
}
.daily-quote-section {
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: 10px;
    border-left: 3px solid var(--apple-blue);
}
.daily-quote-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.45;
    font-style: italic;
}
.daily-quote-author {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 6px;
}
.weather-loading {
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 16px 0;
}
.weather-hilo {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 4px;
}
.weather-sun-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}
.weather-sun-row svg {
    width: 12px;
    height: 12px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 1.75;
    flex-shrink: 0;
}
.weather-precip-today {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--apple-blue);
    margin-top: 3px;
}
.weather-current {
    display: flex;
    align-items: center;
    gap: 12px;
}
.weather-icon-big {
    font-size: 42px;
    line-height: 1;
    flex-shrink: 0;
}
.weather-temp-group {
    flex: 1;
    min-width: 0;
}
.weather-temp {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.weather-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
}
.weather-detail {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.weather-forecast {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.forecast-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 10px;
    background: var(--bg-input);
    min-width: 0;
}
.forecast-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.forecast-icon {
    font-size: 18px;
    line-height: 1;
}
.forecast-temps {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}
.forecast-lo {
    font-weight: 500;
    color: var(--text-tertiary);
}
.forecast-rain {
    font-size: 10px;
    font-weight: 600;
    color: var(--apple-blue);
}

/* ═══════════════════════════════════════
   Widget 1: Reminders (compact — 4col × 2row)
   ═══════════════════════════════════════ */
.widget-reminders {
    grid-column: span 4;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - var(--header-height) - 160px);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Stat Pills Row */
.reminder-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.reminder-stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}
.reminder-stat-pill .stat-count {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}
.reminder-stat-pill .stat-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}
.stat-pill-overdue {
    background: rgba(255, 59, 48, 0.10);
    color: var(--danger);
}
.stat-pill-overdue .stat-count {
    color: var(--danger);
}
.stat-pill-today {
    background: rgba(255, 159, 67, 0.10);
    color: #E8850C;
}
body.dark-mode .stat-pill-today {
    color: #FFB340;
}
.stat-pill-soon {
    background: rgba(0, 122, 255, 0.08);
    color: var(--apple-blue);
}
.stat-pill-completed {
    background: rgba(52, 199, 89, 0.10);
    color: var(--success);
}

/* Task List */
.reminder-task-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
}
.reminder-task-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.reminder-task-check:hover {
    border-color: var(--apple-blue);
}
.reminder-task-check.checked {
    background: var(--success);
    border-color: var(--success);
}
.reminder-task-check.checked::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}
.reminder-task-priority {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.priority-high { background: var(--danger); }
.priority-normal { background: #FF9F43; }
.priority-low { background: var(--text-tertiary); }

.reminder-task-info {
    flex: 1;
    min-width: 0;
}
.reminder-task-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.reminder-task-due {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.reminder-task-due.overdue {
    color: var(--danger);
    font-weight: 600;
}
.reminder-task-due.snoozed {
    color: #FF9500;
    font-weight: 500;
    font-style: italic;
}

/* Task row wrapper (for collapsible notes) */
.reminder-task-row-wrap {
    border-radius: 10px;
    transition: background 0.15s ease;
}
.reminder-task-row-wrap:hover {
    background: var(--bg-input);
}
.reminder-task-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
}

/* Tags (category + frequency badges) */
.reminder-task-tags {
    display: flex;
    gap: 4px;
    margin-top: 2px;
    flex-wrap: wrap;
}
.reminder-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 16px;
}
.reminder-tag-cat {
    background: rgba(52, 199, 89, 0.10);
    color: #34C759;
}
.reminder-tag-freq {
    background: rgba(88, 86, 214, 0.10);
    color: #5856D6;
}
body.dark-mode .reminder-tag-cat {
    background: rgba(50, 215, 75, 0.12);
    color: #32D74B;
}
body.dark-mode .reminder-tag-freq {
    background: rgba(94, 92, 230, 0.15);
    color: #7D7AFF;
}

/* Notes toggle chevron */
.reminder-notes-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    margin-left: 4px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease;
    vertical-align: middle;
}
.reminder-notes-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}
body.dark-mode .reminder-notes-toggle {
    background: rgba(255, 255, 255, 0.06);
}
body.dark-mode .reminder-notes-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}
.reminder-task-row-wrap.notes-open .reminder-notes-toggle svg {
    transform: rotate(180deg);
}

/* Collapsible notes content */
.reminder-task-notes {
    padding: 0 8px 8px 46px; /* align with task title (check+priority+gap) */
    animation: notesSlideIn 0.15s ease;
}
.reminder-task-notes-inner {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 6px 10px;
    background: var(--bg-input);
    border-radius: 8px;
    border-left: 3px solid var(--apple-blue);
}
@keyframes notesSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Weekly Summary (inside widget) */
.reminder-weekly-summary {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 10px;
    margin-bottom: 10px;
    background: rgba(52, 199, 89, 0.06);
    border-radius: 8px;
    text-align: center;
}

/* Snoozed stat pill */
.stat-pill-snoozed {
    background: rgba(255, 149, 0, 0.10);
    color: #E8850C;
}
body.dark-mode .stat-pill-snoozed {
    color: #FFB340;
}

/* Empty state */
.widget-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: var(--text-tertiary);
    gap: 8px;
}
.widget-empty-icon {
    font-size: 32px;
    opacity: 0.7;
}
.widget-empty-text {
    font-size: 14px;
    font-weight: 500;
}
.widget-empty-sub {
    font-size: 12px;
    color: var(--text-tertiary);
    opacity: 0.8;
}

/* Client count badge */
.client-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--apple-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════
   Widget 2: Recent Clients (7col × 1row)
   ═══════════════════════════════════════ */
.widget-clients {
    grid-column: span 8;
    grid-row: span 1;
}
.client-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.client-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    transition: background 0.15s ease;
    cursor: pointer;
}
.client-row:hover {
    background: var(--bg-input);
}
.client-type-icon {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    color: var(--text-tertiary);
}
.client-type-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
}
.client-info {
    flex: 1;
    min-width: 0;
}
.client-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-summary {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-time {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}
.client-search-input {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 4px;
    box-sizing: border-box;
}
.client-search-input::placeholder {
    color: var(--text-tertiary);
}
.client-search-input:focus {
    border-color: var(--apple-blue);
}
.client-list-expanded {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.client-list-expanded::-webkit-scrollbar {
    width: 4px;
}
.client-list-expanded::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* ═══════════════════════════════════════
   Widget 3: CGL Compliance (compact — 4col × 2row)
   ═══════════════════════════════════════ */
.widget-compliance {
    grid-column: span 4;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - var(--header-height) - 160px);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Compliance Stat Pills */
.compliance-stats {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.compliance-stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 5px 6px;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    flex: 1;
    min-width: 0;
    text-align: center;
}
.compliance-stat-pill .stat-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
}
.compliance-stat-pill .stat-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.compliance-stat-pill.stat-critical .stat-count {
    color: var(--danger);
}
.compliance-stat-pill.stat-critical {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.15);
}
.compliance-stat-pill.stat-warning .stat-count {
    color: #E8850C;
}
body.dark-mode .compliance-stat-pill.stat-warning .stat-count {
    color: #FFB340;
}
.compliance-stat-pill.stat-warning {
    background: rgba(255, 179, 64, 0.08);
    border-color: rgba(255, 179, 64, 0.15);
}
.compliance-stat-pill.stat-ok .stat-count {
    color: var(--success);
}
.compliance-stat-pill.stat-total .stat-count {
    color: var(--apple-blue);
}

/* All-clear message */
.compliance-all-clear {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(52, 199, 89, 0.06);
    border: 1px solid rgba(52, 199, 89, 0.12);
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
    margin-top: 8px;
}
.compliance-all-clear svg {
    width: 20px;
    height: 20px;
    stroke: var(--success);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.compliance-status {
    display: flex;
    align-items: center;
    gap: 12px;
}
.compliance-indicator {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.compliance-indicator svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}
.compliance-indicator.status-ok {
    background: rgba(52, 199, 89, 0.12);
    color: var(--success);
}
.compliance-indicator.status-ok svg { stroke: var(--success); fill: none; }
.compliance-indicator.status-warning {
    background: rgba(255, 159, 67, 0.12);
    color: #E8850C;
}
body.dark-mode .compliance-indicator.status-warning { color: #FFB340; }
.compliance-indicator.status-warning svg { stroke: currentColor; fill: none; }
.compliance-indicator.status-critical {
    background: rgba(255, 59, 48, 0.12);
    color: var(--danger);
    animation: compliancePulse 2s ease-in-out infinite;
}
.compliance-indicator.status-critical svg { stroke: var(--danger); fill: none; }
@keyframes compliancePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
}
.compliance-text {
    flex: 1;
}
.compliance-text .compliance-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.compliance-text .compliance-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Severity left border accent */
.widget-compliance.severity-ok {
    border-left: 4px solid var(--success);
}
.widget-compliance.severity-warning {
    border-left: 4px solid #FFB340;
}
.widget-compliance.severity-critical {
    border-left: 4px solid var(--danger);
}

/* Compliance Policy List (shown when policies need attention) */
.compliance-policy-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}
.compliance-policy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.15s ease;
}
.compliance-policy-row:hover {
    background: var(--bg-input);
}
.compliance-policy-severity {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.compliance-policy-severity.critical {
    background: var(--danger);
    box-shadow: 0 0 6px rgba(255, 59, 48, 0.4);
}
.compliance-policy-severity.warning {
    background: #FFB340;
    box-shadow: 0 0 6px rgba(255, 179, 64, 0.3);
}
.compliance-policy-info {
    flex: 1;
    min-width: 0;
}
.compliance-policy-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compliance-policy-link {
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s ease;
}
.compliance-policy-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
.compliance-policy-number {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 1px;
}
.compliance-policy-exp {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.compliance-policy-exp.critical {
    color: var(--danger);
}
.compliance-policy-exp.warning {
    color: #E8850C;
}
body.dark-mode .compliance-policy-exp.warning {
    color: #FFB340;
}
.compliance-policy-more {
    text-align: center;
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 4px 0 2px;
}
.compliance-policy-more a {
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: 600;
}
.compliance-policy-more a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════
   Quick Actions Mini-Widget (5col × 1row)
   ═══════════════════════════════════════ */
.widget-quick-actions {
    grid-column: span 4;
    grid-row: span 1;
}
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--transition-spring);
    text-align: center;
}
.quick-action-btn:hover {
    background: var(--bg-widget-hover);
    border-color: var(--border);
    transform: scale(1.02);
}
.quick-action-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--apple-blue);
    fill: none;
    stroke-width: 1.75;
}
.quick-action-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   Quick Launch Strip (full width, 1 row)
   ═══════════════════════════════════════ */
.widget-quick-launch {
    grid-column: 1 / -1;
    padding: 10px 20px;
}
.quick-launch-strip {
    display: none;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 4px;
}
.widget-quick-launch.is-open .quick-launch-strip {
    display: flex;
    padding-top: 10px;
}
.quick-launch-toggle .toggle-chevron {
    transition: transform 0.25s ease;
}
.widget-quick-launch.is-open .toggle-chevron {
    transform: rotate(90deg);
}
.quick-launch-strip::-webkit-scrollbar {
    height: 4px;
}
.quick-launch-strip::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}
.quick-launch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    scroll-snap-align: start;
    border: none;
    background: none;
    min-width: 72px;
    transition: background 0.2s ease, transform 0.2s var(--transition-spring);
}
.quick-launch-item:hover {
    background: var(--bg-input);
    transform: scale(1.06);
}
.quick-launch-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 1.75;
    transition: stroke 0.2s ease;
}
.quick-launch-item:hover svg {
    stroke: var(--apple-blue);
}
.quick-launch-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}
.quick-launch-item:hover .quick-launch-label {
    color: var(--text);
}
.quick-launch-divider {
    width: 1px;
    background: var(--border);
    margin: 4px 4px;
    flex-shrink: 0;
    align-self: stretch;
}

/* ═══════════════════════════════════════
   Dashboard Entrance Animations
   ═══════════════════════════════════════ */
.widget-card {
    animation: widgetFadeIn 0.5s var(--transition-smooth) both;
}
.bento-grid .widget-card:nth-child(1) { animation-delay: 0.05s; }
.bento-grid .widget-card:nth-child(2) { animation-delay: 0.08s; }
.bento-grid .widget-card:nth-child(3) { animation-delay: 0.11s; }
.bento-grid .widget-card:nth-child(4) { animation-delay: 0.14s; }
.bento-grid .widget-card:nth-child(5) { animation-delay: 0.17s; }
.bento-grid .widget-card:nth-child(6) { animation-delay: 0.20s; }

@keyframes widgetFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
   Responsive Overrides
   ═══════════════════════════════════════ */

/* 1024px–1279px — Narrower bento grid */
@media (min-width: 1024px) and (max-width: 1279px) {
    .widget-weather {
        grid-column: span 4;
    }
    .widget-reminders {
        grid-column: span 4;
    }
    .widget-compliance {
        grid-column: span 4;
    }
    .widget-clients {
        grid-column: span 8;
    }
    .widget-quick-actions {
        grid-column: span 4;
    }
}

/* 768px–1023px — 2 column layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .widget-weather {
        grid-column: span 2;
        grid-row: span 1;
    }
    .widget-reminders {
        grid-column: span 1;
        grid-row: span 1;
    }
    .widget-compliance {
        grid-column: span 1;
        grid-row: span 1;
    }
    .widget-clients {
        grid-column: span 1;
    }
    .widget-quick-actions {
        grid-column: span 1;
    }
    .widget-quick-launch {
        grid-column: span 2;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-view {
        padding: 20px;
    }
}

/* <768px — Single column stacked */
@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .widget-weather,
    .widget-reminders,
    .widget-clients,
    .widget-compliance,
    .widget-quick-actions,
    .widget-quick-launch {
        grid-column: span 1;
        grid-row: span 1;
    }
    .dashboard-view {
        padding: 16px;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dashboard-greeting h1 {
        font-size: 22px;
    }
    .reminder-stats {
        gap: 6px;
    }
    .reminder-stat-pill {
        padding: 4px 8px;
    }
    .reminder-stat-pill .stat-count {
        font-size: 16px;
    }
    .compliance-policy-list {
        max-height: 140px;
    }
    .weather-icon-big {
        font-size: 32px;
    }
    .weather-temp {
        font-size: 24px;
    }
}
/* ── Mobile Dark Mode Enhancements ── */
@media (max-width: 767px) {
    body.dark-mode .widget-card {
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
    }
    body.dark-mode .widget-card::before {
        opacity: 0.7;
    }
    body.dark-mode .dashboard-view {
        background: #0D0D0D;
    }
    body.dark-mode .bento-grid {
        gap: 12px;
    }
}
