/* MeetingMind — Napier AI */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --brand: #d97706;
    --brand-light: #f59e0b;
    --brand-dark: #92400e;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --bg: #fffbf5;
    --card-bg: #fff;
    --border: #e7e2d8;
    --text: #1c1917;
    --text-muted: #78716c;
    --radius: 10px;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }

/* NAVBAR */
.navbar { background: var(--brand-dark); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 100; }
.nav-brand { display: flex; align-items: center; gap: 8px; }
.brand-icon { font-size: 20px; }
.brand-name { color: white; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.brand-tag { color: #fde68a; font-size: 12px; background: rgba(255,255,255,0.15); padding: 2px 8px; border-radius: 20px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link { color: #fde68a; text-decoration: none; padding: 6px 14px; border-radius: 6px; font-size: 14px; transition: background .15s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.15); color: white; }
.nav-user { display: flex; align-items: center; gap: 12px; margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.2); }
.nav-user span { color: #fde68a; font-size: 13px; }
.btn-logout { color: #fde68a; font-size: 13px; text-decoration: none; }
.btn-logout:hover { color: white; }

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 28px 24px 60px; }
.alert { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }

/* AUTH */
.auth-wrapper { display: flex; justify-content: center; padding: 60px 16px; }
.auth-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 40px; width: 100%; max-width: 440px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.auth-logo { font-size: 22px; font-weight: 800; color: var(--brand); margin-bottom: 24px; }
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; }
.form-group input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; outline: none; transition: border-color .15s; background: white; }
.form-group input:focus { border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(217,119,6,0.12); }
.auth-footer { margin-top: 20px; font-size: 14px; color: var(--text-muted); text-align: center; }
.auth-footer a { color: var(--brand); text-decoration: none; font-weight: 500; }
.optional { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: -2px; }

/* BUTTONS */
.btn-primary { background: var(--brand); color: white; border: none; padding: 11px 20px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: background .15s; }
.btn-primary:hover { background: var(--brand-light); }
.btn-full { width: 100%; text-align: center; }
.btn-disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; border: 1px solid transparent; display: inline-block; transition: all .15s; }
.btn-view { background: #fef3c7; color: var(--brand-dark); border-color: #fde68a; }
.btn-view:hover { background: var(--brand); color: white; border-color: var(--brand); }
.btn-report { background: #f0fdf4; color: var(--success); border-color: #bbf7d0; }
.btn-report:hover { background: var(--success); color: white; }
.btn-delete { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-delete:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.back-link { color: var(--brand); text-decoration: none; font-size: 14px; font-weight: 500; display: inline-block; margin-bottom: 14px; }
.back-link:hover { text-decoration: underline; }

/* PLAN BAR */
.plan-bar { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.plan-bar-left { display: flex; align-items: center; gap: 12px; }
.plan-bar-right { display: flex; align-items: center; gap: 12px; }
.plan-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px; }
.plan-free { background: #f5f5f4; color: #78716c; }
.plan-pro { background: #fef3c7; color: #92400e; }
.plan-teams { background: #1c1917; color: white; }
.plan-usage { font-size: 13px; color: var(--text-muted); }
.plan-progress-track { background: #e7e2d8; border-radius: 4px; height: 6px; width: 120px; }
.plan-progress-fill { background: var(--brand); height: 6px; border-radius: 4px; }
.plan-upgrade-link { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
.plan-upgrade-link:hover { text-decoration: underline; }
.plan-pricing-link { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.plan-pricing-link:hover { color: var(--text); }

/* LIMIT BANNER */
.limit-banner { background: #fef3c7; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 12px 16px; font-size: 13px; color: #92400e; margin-bottom: 20px; }
.limit-banner a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.limit-banner a:hover { text-decoration: underline; }
.limit-warning { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }

/* DASHBOARD */
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.dashboard-title h1 { font-size: 26px; font-weight: 700; }
.dashboard-title p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* MEETING CARDS */
.meetings-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.meeting-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 20px; transition: box-shadow .15s; }
.meeting-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.meeting-icon { width: 48px; height: 48px; border-radius: 12px; background: #fef3c7; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.meeting-body { flex: 1; min-width: 0; }
.meeting-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meeting-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meta-item { font-size: 12px; color: var(--text-muted); }
.badge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; }
.badge-done { background: #f0fdf4; color: #16a34a; }
.badge-ai { background: #fef3c7; color: #92400e; }
.badge-rule { background: #f5f5f4; color: #78716c; }
.meeting-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* EMPTY STATE */
.empty-state { background: white; border: 2px dashed var(--border); border-radius: 16px; padding: 60px 20px; text-align: center; margin-bottom: 32px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }

/* INFO STRIP */
.info-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 8px; }
.info-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.info-icon { font-size: 22px; flex-shrink: 0; }
.info-card strong { font-size: 14px; font-weight: 600; display: block; margin-bottom: 3px; }
.info-card p { font-size: 12px; color: var(--text-muted); }

/* UPLOAD */
.upload-wrapper { max-width: 640px; margin: 0 auto; }
.upload-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.upload-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.upload-card > p { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.drop-zone { border: 2px dashed var(--brand-light); border-radius: 12px; padding: 40px 20px; text-align: center; background: #fffbf0; cursor: pointer; transition: all .2s; margin-bottom: 20px; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--brand); background: #fef3c7; }
.drop-icon { font-size: 40px; margin-bottom: 12px; }
.drop-zone h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.drop-zone p { font-size: 13px; color: var(--text-muted); }
.drop-zone input[type="file"] { display: none; }
.selected-file { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #92400e; margin-bottom: 16px; display: none; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-row label { font-size: 14px; font-weight: 500; }
.form-row input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; transition: border-color .15s; }
.form-row input:focus { border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(217,119,6,0.12); }
.whisper-note { background: #f5f5f4; border-radius: 8px; padding: 12px 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.processing-overlay { display: none; position: fixed; inset: 0; background: rgba(28,25,23,0.6); z-index: 999; justify-content: center; align-items: center; }
.processing-overlay.active { display: flex; }
.processing-box { background: white; border-radius: 16px; padding: 40px 48px; text-align: center; max-width: 380px; }
.processing-spinner { font-size: 40px; margin-bottom: 16px; animation: spin 2s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.processing-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.processing-box p { font-size: 13px; color: var(--text-muted); }

/* RESULTS */
.results-header { margin-bottom: 24px; }
.results-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.results-title-row h1 { font-size: 24px; font-weight: 700; }
.results-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.mode-ai { color: var(--brand); font-weight: 600; }
.mode-rule { color: var(--text-muted); }

.summary-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.summary-card h2 { font-size: 15px; font-weight: 700; color: var(--brand-dark); margin-bottom: 10px; }
.summary-card p { font-size: 14px; color: var(--text); line-height: 1.7; }

.section-heading { font-size: 18px; font-weight: 700; margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); color: var(--brand-dark); display: flex; align-items: center; gap: 8px; }
.count-badge { background: var(--brand); color: white; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

.actions-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.action-item { background: white; border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; }
.action-num { width: 24px; height: 24px; background: var(--brand); color: white; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.action-body { flex: 1; }
.action-text { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.action-owner { font-size: 12px; color: var(--brand); font-weight: 600; }

.decisions-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.decision-item { background: white; border: 1px solid var(--border); border-left: 4px solid var(--success); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.decision-icon { color: var(--success); font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.transcript-section { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.transcript-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); cursor: pointer; }
.transcript-header h3 { font-size: 15px; font-weight: 600; }
.transcript-toggle { font-size: 12px; color: var(--text-muted); }
.transcript-body { padding: 18px; font-size: 13px; line-height: 1.8; color: var(--text-muted); max-height: 300px; overflow-y: auto; display: none; }
.transcript-body.open { display: block; }

.topics-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.topic-chip { background: #fef3c7; color: var(--brand-dark); font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 20px; border: 1px solid #fde68a; }

.no-items { background: #f5f5f4; border-radius: 8px; padding: 16px; font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 20px; }
