/* ═══════════════════════════════════════════════════════════════
   PREGAME DASHBOARD — Component Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Auth Screen ────────────────────────────────── */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}

.auth-card .logo-big {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.auth-card .free-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--green);
    background: var(--green-glow);
    border: 1px solid rgba(52, 211, 153, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.email-error {
    color: var(--red);
    font-size: 0.78rem;
    margin-top: 6px;
    text-align: left;
}

/* ─── Cards & Headers ────────────────────────────────── */
.dash-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.dash-card:hover {
    border-color: var(--border-hover);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.dash-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.dash-list-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dash-search-input {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: var(--text);
    width: 150px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.dash-filter-select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.dash-filter-select:focus {
    border-color: var(--accent);
}

.integration-prompt-banner {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.prompt-banner-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.prompt-banner-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 6px;
}

.dash-providers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.dash-provider-badge {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    transition: border-color 0.2s;
}
.dash-provider-name {
    font-size: 0.82rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.dash-provider-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.dash-provider-status.is-connected {
    color: var(--green);
}

.dash-card-footer-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-2);
    border-radius: 8px;
    padding: 10px 14px;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--surface-3);
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 14px;
    font-size: 0.85rem;
}
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.btn-full { width: 100%; }

/* ─── Form Inputs ────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─── Chips & Badges ─────────────────────────────────── */
.sidebar-chip {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--surface-3);
    color: var(--text-muted);

}

.new-chip {
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.auto-prep-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.15);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ─── Data Lists & Tables ────────────────────────────── */
.meetings-list, .data-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 600;
}
.empty-state p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 20px;
}

/* Floating Bulk Actions Bar */
.bulk-actions-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: #181826;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    padding: 10px 20px;
    display: none;
    align-items: center;
    gap: 14px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

.bulk-actions-bar.active,
.bulk-actions-bar.show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    background: #1e1e2d !important;
    border: 1px solid #3b82f6 !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.3) !important;
}

/* ─── Charts & Visualizations ────────────────────────── */
.chart-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 330px;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    margin-top: 10px;
}

.chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-grid-line {
    stroke: var(--border);
    stroke-dasharray: 4 4;
    stroke-width: 1;
    stroke-opacity: 0.6;
}

.chart-axis-text {
    fill: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
}

.chart-area {
    fill: url(#chart-gradient);
}

.chart-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.8;
}

.chart-bar-rect {
    fill: url(#bar-gradient);
    transition: opacity 0.2s ease, fill 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.chart-bar-rect:hover {
    fill: var(--accent-hover, #ff8555);
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.45));
    opacity: 1 !important;
}

.bar-hover-dim:hover .chart-bar-rect:not(:hover) {
    opacity: 0.4;
}

.chart-tooltip-bubble {
    position: absolute;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10;
    white-space: nowrap;
}

.chart-tooltip-bubble.visible {
    opacity: 1;
    transform: translate(-50%, -120%);
}

.outcomes-range-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.outcomes-range-btn:hover, .outcomes-range-btn.active {
    color: var(--text);
    background: var(--surface-3);
    border-color: var(--accent);
}
/* ─── Calendar Pagination ─────────────────────────────── */
.cal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.cal-pagination button {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cal-pagination button:hover:not([disabled]) {
    background: var(--surface-3);
    color: var(--text);
}
.cal-pagination button[disabled] {
    opacity: 0.4;
    cursor: default;
}

/* ─── Modals & Overlay ───────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    animation: slideDown 0.25s ease;
}

/* ─── Onboarding Wizard & Walkthrough Overlays ───────── */
.wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.wizard-overlay.hidden {
    display: none !important;
}

.wizard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.25s ease;
}

.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.wizard-steps {
    display: flex;
    gap: 8px;
    align-items: center;
}
.wizard-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}
.wizard-step-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    width: 24px;
    border-radius: 4px;
}
.wizard-skip {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s;
}
.wizard-skip:hover {
    color: var(--text);
}
.wizard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--accent);
    margin-bottom: 16px;
}
.wizard-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.wizard-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}
.wizard-credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.wizard-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px var(--accent-glow);
}
.wizard-btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-glow);
}
.wizard-btn-secondary {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.84rem;
    cursor: pointer;
    margin-top: 10px;
    padding: 8px;
    width: 100%;
    text-align: center;
    transition: color 0.2s;
}
.wizard-btn-secondary:hover {
    color: var(--text);
}
.wizard-form-group {
    margin-bottom: 14px;
    text-align: left;
}
.wizard-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.wizard-form-group input,
.wizard-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
    box-sizing: border-box;
}
.wizard-form-group input:focus,
.wizard-form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}
.wizard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.wizard-field-error {
    font-size: 0.76rem;
    color: var(--red);
    margin-top: 4px;
    display: none;
}
.wizard-form-error-banner {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 14px;
    display: none;
}
.crm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 4px 12px;
    border-radius: 16px;
    margin-bottom: 16px;
}
.crm-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}
.crm-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}
.crm-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--surface-2);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.crm-feature-check {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
}
.crm-feature-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 2px;
}
.crm-feature-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Modal Scroll Locking & Close Button Styles */
body:has(.modal-overlay:not(.hidden)),
body:has(.wizard-overlay:not(.hidden)),
body.modal-open {
    overflow: hidden !important;
}

.modal-close {
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    outline: none;
    padding: 0 !important;
}

.modal-close:hover {
    background: var(--surface-3) !important;
    border-color: var(--border-hover) !important;
    color: var(--text) !important;
    transform: scale(1.05);
}

.modal-close:active {
    transform: scale(0.95);
}

/* ─── Popovers & Toast Notifications ────────────────── */
.popover-card {
    position: absolute;
    top: 64px;
    left: 12px;
    width: 226px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    animation: slideDown 0.2s ease;
}

.popover-card.show {
    display: block;
}

.popover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.popover-item:hover {
    background: var(--surface-2);
    color: var(--text);
}

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

/* ─── Animated Skeleton Loader & Wave Shimmer ─── */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    display: inline-block;
}

.skeleton-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.skeleton-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
}

.skeleton-text-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.skeleton-title {
    width: 45%;
    height: 14px;
}

.skeleton-subtitle {
    width: 30%;
    height: 10px;
}

.skeleton-chip {
    width: 80px;
    height: 22px;
    border-radius: 12px;
}

.skeleton-btn {
    width: 90px;
    height: 32px;
    border-radius: 8px;
}

/* ─── Calendar Event Grid (Integrations) ─── */
.cal-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .cal-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cal-events-grid {
        grid-template-columns: 1fr;
    }
}

.cal-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: var(--surface-2);
    border-radius: 12px;
    border: 1px dashed var(--border);
}

.cal-event-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
}

.cal-event-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cal-event-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.cal-event-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.cal-event-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.cal-event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cal-event-meta .lucide-icon {
    opacity: 0.7;
}

.cal-event-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.btn-brief {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-brief:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-brief:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--surface-2) !important;
    color: var(--text-muted) !important;
    border-color: var(--border) !important;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-danger {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
    opacity: 0.9;
}
.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    opacity: 1;
}

.data-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.data-list-item:hover {
    border-color: var(--border-hover);
    background: var(--surface-2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.meeting-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}
.list-item-favicon {
    width: 38px;
    height: 38px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: background 0.2s;
}
.data-list-item:hover .list-item-favicon {
    background: rgba(255, 107, 53, 0.15);
}
.list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.list-item-title {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.35;
}
.list-item-prospect {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-left: 4px;
}
.list-item-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.list-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.list-item-date {
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.list-item-count {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.list-item-del-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.list-item-del-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.status-pending { background: rgba(255, 107, 53, 0.12); color: var(--accent); border: 1px solid rgba(255, 107, 53, 0.25); }
.status-generating { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.status-briefed { background: rgba(52, 211, 153, 0.12); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.25); }

/* ─── Brief View & Content ────────────────────────────────── */
.brief-view {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    margin-top: 20px;
}

.brief-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.brief-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.brief-actions {
    display: flex;
    gap: 10px;
}

.brief-content {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.7;
}

.brief-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 16px 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.brief-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 24px 0 12px 0;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brief-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: var(--text);
}

.brief-content p {
    margin-bottom: 14px;
    color: var(--text);
}

.brief-content ul, .brief-content ol {
    margin: 10px 0 16px 22px;
    padding: 0;
}

.brief-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text);
}

.brief-content strong {
    color: var(--text);
    font-weight: 600;
}

.brief-content em {
    color: var(--text-muted);
    font-style: italic;
}

.brief-content blockquote {
    background: var(--surface-2);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    margin: 14px 0;
    font-size: 0.88rem;
}

.brief-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.brief-feedback {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-label {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.feedback-btns {
    display: flex;
    gap: 8px;
}

.feedback-thumb {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-thumb:hover {
    border-color: var(--accent);
    background: var(--surface-3);
}

.feedback-thumb.active,
.feedback-thumb.active-up,
.feedback-thumb.active-down {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.feedback-comment-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
}

.feedback-comment-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.9rem;
}

.feedback-comment-row button {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-comment-row button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.generate-cta {
    text-align: center;
    padding: 40px 20px;
}

@media print {
    body * {
        visibility: hidden;
    }
    #meeting-brief-area, #meeting-brief-area * {
        visibility: visible;
    }
    #meeting-brief-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .sidebar, .dash-header, .meeting-detail-header, .generate-cta, .brief-feedback, .brief-actions, #bulk-actions-bar {
        display: none !important;
    }
}

/* ─── Toggle Switch Component ────────────────────────── */
.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #1e293b;
    border: 1.5px solid #334155;
    border-radius: 24px;
    transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2.5px;
    top: 2.5px;
    background: #94a3b8;
    border-radius: 50%;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.toggle input:checked + .toggle-slider {
    background: var(--accent, #6366f1);
    border-color: var(--accent, #6366f1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.toggle input:focus-visible + .toggle-slider {
    outline: 2px solid var(--accent, #6366f1);
    outline-offset: 2px;
}

