/* ==========================================================================
   BEEDEE OFFLINE MEETING RECORDER & VIETNAMESE AI RECAP (v3.6.0)
   Identity: Deep Burgundy (#7A0C2E), Warm Amber (#F59E0B), Crisp Editorial UI
   ========================================================================== */

/* Prominent Launch Pill right below BeeDee Owl on Homepage */
.ed-rec-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 15px;
    border-radius: 9999px;
    background: #7A0C2E;
    color: #FFFFFF;
    border: 1.5px solid #1B1416;
    box-shadow: 0 2.5px 0 #1B1416;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.ed-rec-launch-btn:hover {
    background: #9B1C31;
    transform: translateY(-1px);
    box-shadow: 0 3.5px 0 #1B1416;
}
.ed-rec-launch-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #1B1416;
}

/* Global Recovery Banner (Visible if unfinished IndexedDB session exists) */
.bdr-recovery-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10050;
    width: calc(100% - 32px);
    max-width: 560px;
    background: #1B1416;
    color: #FFFFFF;
    border: 1.5px solid #F59E0B;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
}
.bdr-recovery-banner strong { font-family: 'Be Vietnam Pro', sans-serif; font-size: 0.88rem; color: #FDE68A; display: block; }
.bdr-recovery-banner span { font-size: 0.78rem; color: #E2E8F0; }
.bdr-recovery-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Modal Backdrop & Shell */
.bdr-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 20, 22, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.bdr-backdrop.open { display: flex; }

.bdr-modal {
    width: 100%;
    max-width: 540px;
    background: #FFFFFF;
    background-image:
        linear-gradient(to right, rgba(122, 12, 46, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(122, 12, 46, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 1.5px solid #1B1416;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(27, 20, 22, 0.28);
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1B1416;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.bdr-head {
    background: linear-gradient(135deg, #7A0C2E 0%, #580921 100%);
    color: #FFFFFF;
    padding: 18px 22px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.bdr-head-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0 0 3px 0;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bdr-head-sub {
    margin: 0;
    font-size: 0.78rem;
    color: #FBCFE8;
    line-height: 1.4;
}
.bdr-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bdr-close:hover { background: rgba(255, 255, 255, 0.22); }

.bdr-body {
    padding: 20px 22px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Clickable Enterprise Security Trust Badge */
.bdr-trust-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 12px;
    background: #ECFDF5;
    border: 1px solid rgba(5, 150, 105, 0.28);
    color: #065F46;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
.bdr-trust-btn:hover { background: #D1FAE5; }
.bdr-trust-drawer {
    display: none;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.77rem;
    color: #334155;
    line-height: 1.55;
}
.bdr-trust-drawer.open { display: block; }
.bdr-trust-drawer ul { margin: 6px 0 0 18px; padding: 0; }
.bdr-trust-drawer li { margin-bottom: 4px; }

/* Step 1: Quick Setup Form */
.bdr-field { display: flex; flex-direction: column; gap: 5px; }
.bdr-label {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1B1416;
}
.bdr-input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1.5px solid #D6C8CC;
    background: #FFFFFF;
    color: #1B1416;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bdr-input:focus {
    outline: none;
    border-color: #7A0C2E;
    box-shadow: 0 0 0 3px rgba(122, 12, 46, 0.12);
}

/* Audio Preset 2-Column Cards */
.bdr-preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.bdr-preset-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 13px;
    border-radius: 13px;
    border: 1.5px solid #D6C8CC;
    background: #FFFFFF;
    text-align: left;
    cursor: pointer;
    transition: all 0.16s ease;
}
.bdr-preset-card:hover { border-color: #7A0C2E; background: #FFF8F9; }
.bdr-preset-card.selected {
    border-color: #7A0C2E;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFFBEB 100%);
    box-shadow: 0 3px 0 #7A0C2E;
}
.bdr-preset-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1B1416;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bdr-preset-card.selected .bdr-preset-title { color: #7A0C2E; }
.bdr-preset-desc { font-size: 0.72rem; color: #574A4F; line-height: 1.4; }

.bdr-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #FAF8F6;
    border: 1px solid #EAE2E4;
    font-size: 0.78rem;
    color: #3C2F34;
    line-height: 1.45;
    cursor: pointer;
}
.bdr-checkbox-row input { margin-top: 2px; accent-color: #7A0C2E; width: 16px; height: 16px; flex-shrink: 0; }

.bdr-pwa-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 11px;
    background: #FFFBEB;
    border: 1px dashed rgba(217, 119, 6, 0.45);
    font-size: 0.75rem;
    color: #92400E;
}
.bdr-pwa-btn {
    padding: 5px 11px;
    border-radius: 9999px;
    background: #F59E0B;
    color: #1B1416;
    border: 1px solid #1B1416;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

/* Primary & Secondary Action Buttons */
.bdr-btn-primary {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    background: #7A0C2E;
    color: #FFFFFF;
    border: 1.5px solid #1B1416;
    box-shadow: 0 3px 0 #1B1416;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, background 0.15s ease;
}
.bdr-btn-primary:hover { background: #9B1C31; transform: translateY(-1px); }
.bdr-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.bdr-btn-amber {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #F59E0B;
    color: #1B1416;
    border: 1.5px solid #1B1416;
    box-shadow: 0 2px 0 #1B1416;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.bdr-btn-outline {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #FFFFFF;
    color: #1B1416;
    border: 1.5px solid #D6C8CC;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.bdr-btn-outline:hover { border-color: #7A0C2E; color: #7A0C2E; background: #FDF2F4; }

.bdr-btn-pocket {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 11px;
    background: #1B1416;
    color: #FDE68A;
    border: 1.5px solid #1B1416;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.bdr-btn-pocket:hover { background: #2D2226; }

/* Step 2: Active Recording Stage */
.bdr-stage {
    background: #FFFFFF;
    border: 1.5px solid #EAE2E4;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.bdr-rec-status-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.bdr-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    border-radius: 9999px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
}
.bdr-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #DC2626;
    animation: bdrPulse 1.1s ease-in-out infinite;
}
.bdr-live-pill.paused { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.bdr-live-pill.paused .bdr-live-dot { background: #D97706; animation: none; }
@keyframes bdrPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }

.bdr-timer {
    font-family: 'Be Vietnam Pro', monospace;
    font-size: 1.85rem;
    font-weight: 800;
    color: #1B1416;
    letter-spacing: 0.04em;
    line-height: 1.1;
}
.bdr-owl-rec-svg {
    width: 112px;
    height: 106px;
    filter: drop-shadow(0 6px 14px rgba(122, 12, 46, 0.15));
    transition: transform 0.12s ease;
}
.bdr-wave-canvas {
    width: 100%;
    height: 62px;
    border-radius: 12px;
    background: #FAF8F6;
    border: 1px solid #EAE2E4;
}
.bdr-backup-meta {
    font-size: 0.73rem;
    color: #059669;
    font-weight: 600;
}
.bdr-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.bdr-bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 110px;
    overflow-y: auto;
}
.bdr-bookmark-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 9px;
    background: #FFFBEB;
    border: 1px solid rgba(217, 119, 6, 0.28);
    font-size: 0.76rem;
}
.bdr-bookmark-time {
    font-family: 'Be Vietnam Pro', monospace;
    font-weight: 800;
    color: #7A0C2E;
    flex-shrink: 0;
}

/* Step 3: Background Processing / Done */
.bdr-processing-card {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFFBEB 100%);
    border: 1.5px solid rgba(122, 12, 46, 0.25);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}
.bdr-processing-card h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #7A0C2E;
    margin: 8px 0 8px;
}
.bdr-processing-card p {
    font-size: 0.85rem;
    color: #3C2F34;
    line-height: 1.55;
    margin: 0 0 12px;
}
.bdr-recap-preview {
    text-align: left;
    background: #FFFFFF;
    border: 1px solid #EAE2E4;
    border-radius: 12px;
    padding: 14px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #1B1416;
    margin-top: 12px;
}
.bdr-error-box {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    border-radius: 11px;
    padding: 10px 13px;
    font-size: 0.8rem;
    line-height: 1.45;
}

/* OLED PURE BLACK POCKET MODE OVERLAY */
.bdr-pocket-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 10500;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 48px 24px 56px;
    color: #FFFFFF;
    user-select: none;
    touch-action: none;
}
.bdr-pocket-overlay.open { display: flex; }
.bdr-pocket-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 20vh;
}
.bdr-pocket-red-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
    animation: bdrPulse 1.4s ease-in-out infinite;
}
.bdr-pocket-timer {
    font-family: 'Be Vietnam Pro', monospace;
    font-size: 2.3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.06em;
}
.bdr-pocket-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
}

/* Slide to Unlock Control */
.bdr-slide-track {
    position: relative;
    width: 280px;
    max-width: 90vw;
    height: 56px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bdr-slide-label {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    padding-left: 34px;
}
.bdr-slide-thumb {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F59E0B;
    color: #1B1416;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: grab;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}
.bdr-slide-thumb:active { cursor: grabbing; }

@media (max-width: 560px) {
    .bdr-preset-grid, .bdr-controls-row { grid-template-columns: 1fr; }
    .bdr-modal { border-radius: 18px; }
    .bdr-body { padding: 16px; }
}
