@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&display=swap');

/* =========================================
   MEETING MUNCHER - MAIN STYLESHEET
   Modern CSS Organization with BEM Methodology
   ========================================= */

/* =========================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================= */
:root {
    /* Brand colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-darker: #1e3a8a;
    --primary-light: #e0e7ff;
    --secondary-color: #334155;
    --secondary-dark: #1f2937;
    --secondary-light: #e2e8f0;
    --success-color: #16a34a;
    --success-dark: #15803d;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;

    /* Surface colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-light: #f3f4f6;
    --bg-overlay: rgba(15, 23, 42, 0.55);
    --bg-info: #f0f9ff;
    --surface-muted: #e5e7eb;
    --sidebar-bg: #0f172a;
    --sidebar-border: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #1f2937;
    --text-muted: #6b7280;
    --text-light: #94a3b8;
    --text-inverse: #f8fafc;
    --text-error: #dc2626;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.1);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 45px rgba(15, 23, 42, 0.1);

    /* Typography */
    --font-family: 'Baloo 2', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;

    --font-weight-thin: 200;
    --font-weight-normal: 200;
    --font-weight-medium: 200;
    --font-weight-semibold: 200;
    --font-weight-bold: 200;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Shared tokens */
    --border-color: #e2e8f0;
    --border-strong: #cbd5f5;
    --transition: all var(--transition-base);
}

/* =========================================
   2. RESET & FOUNDATION STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-thin);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.page-content {
    flex: 1;
    padding: 3rem clamp(2rem, 4vw, 4rem);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.page-content--standalone {
    max-width: 480px;
    margin: 0 auto;
    padding-block: 4rem;
}

.page-footer {
    margin-top: auto;
    padding: 2rem clamp(2rem, 4vw, 4rem);
    background: transparent;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg-light);
    align-items: flex-start; /* prevent children from stretching taller than viewport */
}

.app-sidebar {
    width: 270px;
    background: var(--sidebar-bg);
    color: var(--text-inverse);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: inset -1px 0 0 var(--sidebar-border);
    position: sticky;
    top: 0;
    height: 100vh;           /* cap sidebar to viewport height */
    overflow-y: auto;        /* scroll sidebar independently if needed */
    flex-shrink: 0;          /* keep fixed width; do not shrink */
    align-self: flex-start;  /* respect its own height within flex row */
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-sidebar__logo {
    width: 64px;
    height: 64px;
    border-radius: 0;           /* no bubble */
    object-fit: contain;
    background: none;           /* remove bubble background */
    padding: 0;                 /* remove inner padding */
}

.app-sidebar__title {
    display: flex;
    flex-direction: column;
    font-weight: 200;
    letter-spacing: 0.02em;
}

.app-sidebar__title-main {
    font-size: 1.4rem;          /* match sub for consistent style */
    text-transform: none;       /* keep normal case, no ALL CAPS */
    color: var(--text-inverse); /* same color as sub */
}

.app-sidebar__title-sub {
    font-size: 1.4rem;          /* unify with main */
    color: var(--text-inverse);
}

.app-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 200;
}

.app-sidebar__link .app-sidebar__icon {
    font-size: 1.25rem;
}

.app-sidebar__link:hover,
.app-sidebar__link.is-active {
    color: var(--text-inverse);
    background: rgba(37, 99, 235, 0.18);
}

.app-sidebar__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-sidebar__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-sidebar__user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 200;
}

/* When a profile image is available, make it fill the avatar */
.app-sidebar__user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.app-sidebar__user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.app-sidebar__user-name {
    font-size: 0.95rem;
}

.app-sidebar__user-link {
    color: rgba(248, 250, 252, 0.75);
    font-size: 0.85rem;
}

.app-sidebar__user-link:hover {
    color: var(--text-inverse);
}

.app-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-shell__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   4. BUTTONS & FORM CONTROLS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 200;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

/* Button Variants */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Slightly brighter blue for the main Generate meeting summary button */
#generate-summary-btn.btn-primary {
    background: #1d4ed8;            /* vivid blue */
    border-color: #1d4ed8;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

#generate-summary-btn.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-dark);
    border-color: rgba(37, 99, 235, 0.2);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.15);
}

.btn-light {
    background: rgba(248, 250, 252, 0.1);
    color: var(--text-inverse);
    border-color: rgba(248, 250, 252, 0.2);
}

.btn-light:hover {
    background: rgba(248, 250, 252, 0.2);
}

.btn-tertiary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-tertiary:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(248, 250, 252, 0.25);
    color: var(--text-inverse);
}

.btn-ghost:hover {
    border-color: rgba(248, 250, 252, 0.45);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 0.4rem 0.75rem;
    font-size: var(--font-size-sm);
}

.btn-icon {
    display: inline-flex;
}

.btn-success {
    background: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =========================================
   5. FORMS & INPUT ELEMENTS
   ========================================= */
.form-group,
.form-field {
    margin-bottom: 1.5rem;
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 200;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    background: var(--bg-primary);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-textarea,
.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-help,
.form-group small,
.form-group .form-text,
.help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-inline {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 200;
    cursor: pointer;
    transition: var(--transition);
}

.btn-inline:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.meeting-name-field .meeting-name-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.meeting-name-display {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px dashed var(--border-color);
    background: var(--bg-light);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    min-height: 3.25rem;
}

.meeting-name-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: var(--font-size-sm);
    font-weight: 200;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.meeting-name-display #auto-meeting-name {
    font-weight: 200;
}

.meeting-name-input-wrapper {
    display: none;
    margin-top: 0.75rem;
}

.manual-name-hint {
    margin-top: 0.4rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    display: none;
}

.help-text--muted {
    color: var(--text-light);
}

/* =========================================
   6. FILE UPLOAD COMPONENTS
   ========================================= */
.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background-color: #fafafa;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.05);
}

.drop-zone input[type="file"] {
    position: absolute;
    left: -9999px;
}

.drop-zone .icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    display: block;
}

.drop-zone p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* =========================================
   7. PAGE-SPECIFIC COMPONENTS
   ========================================= */

/* Main Content */
main h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    font-size: var(--font-size-2xl);
    font-weight: 200;
}

/* Summary Components */
.summary-box,
.recipients-box {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.summary-box h3,
.recipients-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: var(--font-size-xl);
}

.summary-box div {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Recipients List */
.recipients-box ul {
    list-style: none;
    padding: 0;
}

.recipients-box li {
    background-color: var(--bg-primary);
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
}

/* =========================================
   8. LOADING & PROGRESS COMPONENTS
   ========================================= */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.loading-indicator.active {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.processing-overlay.active {
    display: flex;
}

.progress-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.progress-overlay.show {
    display: flex !important;
}

.progress-wheel {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-text {
    text-align: center;
    color: var(--text-color-secondary);
}

.progress-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.progress-status {
    font-size: var(--font-size-sm);
    color: var(--text-color-muted);
    margin-bottom: var(--spacing-xxs);
}

.progress-percentage {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
}

/* =========================================
   9. FLASH MESSAGES
   ========================================= */
.flashes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flash,
.error-message,
.form-errors .error {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    font-weight: 200;
    line-height: 1.4;
}

.flash-success {
    border-left-color: var(--success-color);
    background: rgba(22, 163, 74, 0.1);
    color: var(--success-dark);
}

.flash-error,
.error-message,
.form-errors .error {
    border-left-color: var(--danger-color);
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger-color);
}

.flash-info {
    border-left-color: var(--info-color);
    background: rgba(14, 165, 233, 0.1);
    color: #0c4a6e;
}

.flash-warning {
    border-left-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

/* =========================================
   10. STATUS & ERROR PAGES
   ========================================= */
.status-page {
    padding: 60px 20px;
    text-align: center;
}

.status-page__icon {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-lg);
    display: block;
}

.status-page__title {
    font-size: var(--font-size-6xl);
    margin-bottom: var(--spacing-lg);
    font-weight: 200;
}

.status-page__title--error {
    color: var(--danger-color);
}

.status-page__title--success {
    color: var(--success-color);
}

.status-page__subtitle {
    color: #495057;
    margin-bottom: var(--spacing-lg);
    font-weight: 200;
    font-size: var(--font-size-xl);
}

.status-page__description {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.status-page__actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   11. AUTHENTICATION PAGE STYLES
   ========================================= */
.login-page {
    /* Full-screen background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../Uri Engineering Building.jpg") center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
    z-index: 0;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 28px 24px;
    width: 90%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.welcome-title {
    font-size: 24px;
    font-weight: 200;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.logo-container {
    width: 96px;               /* larger logo on auth pages */
    height: 96px;
    border-radius: 0;          /* no bubble */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: visible;         /* let image render fully */
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;          /* no bubble */
}

.guest-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.guest-title {
    font-size: 16px;
    font-weight: 200;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.guest-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.guest-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 200;
    display: inline-block;
    transition: transform var(--transition-base);
}

.guest-button:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 14px;
}

.divider--sub {
    margin-top: 24px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 16px;
}

.social-signin {
    margin-top: 16px;
}

.google-signin-button {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 200;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.google-signin-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
}

.google-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(#4285f4 0deg 90deg, #db4437 90deg 180deg, #f4b400 180deg 270deg, #0f9d58 270deg 360deg);
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.google-text {
    font-size: 15px;
    font-weight: 200;
}

.login-container .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.login-container .form-label {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 200;
    margin-bottom: 8px;
}

.login-container .form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: all var(--transition-base);
}

.login-container .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-input {
    width: 16px;
    height: 16px;
}

.checkbox-label {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00bcd4 0%, #8e24aa 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 200;
    cursor: pointer;
    transition: transform var(--transition-base);
    margin-bottom: 20px;
}

.login-button:hover {
    transform: translateY(-1px);
}

.login-container .auth-links {
    color: var(--text-muted);
    font-size: 14px;
}

.login-container .auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 200;
}

.login-container .auth-links a:hover {
    text-decoration: underline;
}

.login-flash-messages {
    margin-bottom: 20px;
}

.login-flash-messages .flash {
    margin-bottom: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
}

.error-message {
    font-size: 0.9rem;
}

/* Registration Page Specific */
.register-container {
    max-height: 90vh;
    overflow-y: auto;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.half-width {
    flex: 1;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.form-errors {
    margin-top: 0.75rem;
}

.error {
    font-size: 0.9rem;
    display: block;
}

.signin-link {
    color: var(--text-muted);
    font-size: 14px;
}

.signin-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 200;
}

.signin-link a:hover {
    text-decoration: underline;
}

/* Profile Page Styles */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, #00bcd4 0%, #8e24aa 100%);
    color: white;
    text-align: center;
    padding: 40px 32px;
}

.profile-title {
    font-size: 28px;
    font-weight: 200;
    margin-bottom: 8px;
}

.profile-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.profile-content {
    padding: 32px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.info-card, .action-card {
    background: var(--bg-secondary);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 200;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.info-grid {
    display: grid;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.info-label {
    font-weight: 200;
    color: var(--text-muted);
    min-width: 130px;
    font-size: 14px;
}

.info-value {
    color: #1a1a1a;
    font-size: 14px;
    flex: 1;
}

.badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    font-weight: 200;
    text-transform: uppercase;
    margin-left: 8px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fffbeb;
    color: #d97706;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: var(--radius-lg);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 200;
    color: #8e24aa;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 200;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.register-button {
    background: linear-gradient(135deg, #00bcd4 0%, #8e24aa 100%);
}

.register-button:hover {
    transform: translateY(-1px);
}

/* Forgot Password Styles */
.forgot-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.reset-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00bcd4 0%, #8e24aa 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 200;
    cursor: pointer;
    transition: transform var(--transition-base);
    margin-bottom: 20px;
}

.reset-button:hover {
    transform: translateY(-1px);
}

.icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* =========================================
   12. LANDING PAGE STYLES
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin: -20px -20px 40px -20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 200;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn-primary {
    background-color: #ffffff;
    color: #4a4a4a;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn-primary:hover {
    background-color: #f8f9fa;
    color: #2c2c2c;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-btn-secondary {
    background-color: #ffffff;
    color: #4a4a4a;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: #ffffff;
    color: #2c2c2c;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.features-section {
    padding: 60px 0;
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    font-weight: 200;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 200;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

.cta-section {
    background-color: var(--bg-secondary);
    padding: 60px 20px;
    text-align: center;
    margin: 40px -20px -20px -20px;
    border-top: 1px solid #e9ecef;
}

.cta-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 200;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   13. SUMMARY PAGE STYLES
   ========================================= */
.summary-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.summary-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 10px;
}

.summary-meta {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.summary-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.content-section {
    background: var(--bg-secondary);
    border: 1px solid #e9ecef;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}

.content-section h3 {
    color: #495057;
    font-size: 1.3rem;
    font-weight: 200;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.content-section .content-body {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid #dee2e6;
    line-height: 1.6;
}

.action-items ul {
    list-style: none;
    padding-left: 0;
}

.action-items li {
    background: var(--bg-primary);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.recipients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recipient-tag {
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 200;
}

/* =========================================
   14. AUTHENTICATION & USER INTERFACE
   ========================================= */
.auth-user-info {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-right: 12px;
    font-weight: 200;
}

.hidden-input {
    display: none;
}

.help-text--muted {
    margin-top: 12px;
    color: var(--text-muted);
}

/* =========================================
   15. INTERACTIVE ELEMENTS
   ========================================= */
.placeholder-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.placeholder-text {
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-sm);
}

.error-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.error-text {
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-sm);
}

/* AI Chat Interface */
.ai-response {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-info);
    border-radius: var(--radius-lg);
    border-left: 4px solid #3b82f6;
}

.ai-response__question-label {
    font-weight: 200;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.ai-response__question-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.ai-response__answer-label {
    font-weight: 200;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.ai-response__answer-text {
    color: var(--text-secondary);
}

.action-buttons--spaced {
    margin-top: var(--spacing-md);
}

/* File Upload Status */
.file-info {
    color: var(--text-muted);
}

/* =========================================
   16. FOOTER
   ========================================= */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #dee2e6;
}

footer .container {
    background-color: transparent;
    box-shadow: none;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   17. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
    }

    .user-menu {
        align-items: center;
    }

    .logo {
        height: 60px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    header h1 {
        font-size: var(--font-size-2xl);
    }

    .container {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: var(--font-size-sm);
    }

    .user-actions,
    .auth-links {
        gap: 5px;
    }

    .status-page__actions {
        flex-direction: column;
        align-items: center;
    }

    /* Auth Pages Responsive */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .register-container, .forgot-container {
        max-width: 100%;
        padding: 24px 20px;
    }

    .profile-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    /* Landing Page Responsive */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 250px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }

    /* Summary Page Responsive */
    .summary-title {
        font-size: 1.8rem;
    }
    
    .summary-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .summary-actions .btn {
        width: 200px;
    }
    
    .content-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .drop-zone {
        padding: 30px 15px;
    }

    .logo {
        height: 50px;
    }

    header h1 {
        font-size: var(--font-size-xl);
    }

    .processing-overlay .progress-container {
        padding: 20px;
        margin: 20px;
    }

    .status-page__title {
        font-size: var(--font-size-4xl);
    }

    .status-page__icon {
        font-size: var(--font-size-3xl);
    }
}

/* =========================================
   18. UTILITY CLASSES
   ========================================= */
/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margins */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* Visibility */
.hidden { visibility: hidden; }
.visible { visibility: visible; }

/* ========================================
   18. DASHBOARD STYLES
   ======================================== */

/* Dashboard full-screen layout */
.dashboard-page {
    /* Allow page to expand beyond viewport and scroll */
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.dashboard-page body {
    height: 100vh;
    overflow: hidden !important;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-page html {
    overflow: hidden !important;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.dashboard-page footer {
    display: none !important;
}

.dashboard-page main.container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--bg-light) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

/* Ensure dashboard container takes full viewport */
.dashboard-page .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--bg-light) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Chat container */
.chat-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    min-height: 0;
}

/* Guest notice */
.guest-notice {
    display: none;
    background: var(--warning-color);
    border-bottom: 1px solid var(--warning-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    text-align: center;
    color: var(--warning-dark);
    font-size: var(--font-size-xs);
    flex-shrink: 0;
}

.guest-notice.show {
    display: block;
}

/* Main interface grid */
/* Section headers */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-xs);
}

.section-icon {
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-6px);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin: 0;
}

/* Output placeholders and content */
.output-placeholder {
    text-align: center;
    padding: 40px var(--spacing-lg);
    color: var(--text-color-muted);
}

.output-placeholder h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    color: var(--text-color-secondary);
}

.output-placeholder p {
    font-size: var(--font-size-sm);
    margin: 0;
}

.output-content {
    background: var(--bg-color-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    line-height: 1.6;
    white-space: pre-wrap;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Progress container and spinner */
.progress-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.progress-overlay.show {
    display: flex !important;
}

.progress-wheel {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-text {
    text-align: center;
    color: var(--text-color-secondary);
}

.progress-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.progress-status {
    font-size: var(--font-size-sm);
    color: var(--text-color-muted);
    margin-bottom: var(--spacing-xxs);
}

.progress-percentage {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.action-button {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.action-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-button.primary {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.action-button.primary:hover {
    background: var(--primary-color-dark);
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--spacing-xxs) var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
}

.status-indicator.success {
    background: var(--success-light);
    color: var(--success-dark);
}

.status-indicator.processing {
    background: var(--info-light);
    color: var(--info-dark);
}

.status-indicator.error {
    background: var(--error-light);
    color: var(--error);
}

/* Chat input styling */
.chat-input-container {
    position: sticky;
    bottom: 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-lg);
}

.chat-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
    resize: none;
    min-height: 44px;
    max-height: 120px;
    font-family: var(--font-family);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Group selection styles */
.group-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.group-button {
    padding: 10px 16px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.group-button:hover,
.group-button.active,
.group-button.selected,
.group-btn.selected {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.group-btn {
    padding: 10px 16px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
}

.group-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.new-group-btn {
    padding: 10px 16px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.new-group-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Group container for button + edit button */
.group-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.group-container .group-btn {
    margin: 0;
    border-radius: var(--radius-md);
}

.group-edit-btn {
    padding: 10px 8px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--primary-color);
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    margin-left: 4px;
}

.group-edit-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.group-container:hover .group-btn,
.group-container:hover .group-edit-btn {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Error message styling */
.error-message {
    color: var(--danger-color, #dc3545);
    font-size: var(--font-size-sm);
    padding: 8px 12px;
    background-color: var(--danger-bg, #f8d7da);
    border: 1px solid var(--danger-border, #f5c6cb);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.hidden-input {
    display: none;
}

/* Help text styling */
.help-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Dashboard-specific button styles */
.generate-button {
    font-size: var(--font-size-lg);
    font-weight: 200;
    gap: 0.75rem;
}

.file-upload-zone {
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.file-upload-zone:hover {
    border-color: var(--primary-dark);
    background: rgba(74, 144, 226, 0.05);
    transform: translateY(-1px);
}

.file-upload-zone.file-selected {
    border-color: var(--success-color);
    background: var(--success-light);
    color: var(--success-dark);
    box-shadow: var(--shadow-sm);
}

.upload-icon {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.missed-button {
    padding: 12px 20px;
    border: 1px solid var(--info-color);
    border-radius: var(--radius-md);
    background: var(--info-light);
    color: var(--info-dark);
    font-size: var(--font-size-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: var(--spacing-md);
}

.missed-button:hover {
    background: var(--info-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.followup-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    resize: vertical;
    transition: border-color var(--transition-base);
    margin-bottom: var(--spacing-sm);
}

.followup-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.ask-button {
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-right: var(--spacing-sm);
}

.ask-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.ask-button:disabled {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
}

.send-button {
    padding: 10px 20px;
    border: 1px solid var(--success-color);
    border-radius: var(--radius-md);
    background: var(--success-color);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
}

.send-button:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.send-button:disabled {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   LANDING PAGE REFRESH
   ========================================= */
.landing-hero {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 5vw, 4rem);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.landing-hero__intro {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    font-weight: 200;
    color: var(--text-light);
}

.landing-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    line-height: 1.1;
    color: var(--text-primary);
}

.landing-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 52ch;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.landing-hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.landing-hero__meta-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.landing-hero__meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.landing-hero__meta-value {
    font-weight: 200;
    color: var(--text-secondary);
}

.landing-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.landing-section--subtle {
    background: var(--bg-secondary);
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.landing-section--disclaimer {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.landing-section__header h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--text-primary);
}

.landing-section__header p {
    color: var(--text-muted);
    max-width: 60ch;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.landing-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.info-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.landing-section--subtle .info-card,
.landing-section--disclaimer .info-card {
    box-shadow: none;
    background: var(--bg-secondary);
}

.info-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.info-card__title {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.info-card__body {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.disclaimer-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* =========================================
   DASHBOARD LAYOUT REFRESH
   ========================================= */
.dashboard-page .page-content {
    background: var(--bg-light);
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    box-shadow: var(--shadow-sm);
}

.dashboard-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.2);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.dashboard-banner__body h2 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.dashboard-banner__body p {
    color: rgba(146, 64, 14, 0.8);
    font-size: 0.95rem;
}

.main-interface {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.dashboard-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-card--ai {
    gap: 1.5rem;
}

.dashboard-card .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.section-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 0;
}

.group-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.group-button,
.group-btn {
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 200;
    transition: var(--transition);
    cursor: pointer;
}

.group-button:hover,
.group-button.active,
.group-btn.selected {
    background: var(--primary-color);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.integrations-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.integration-setup {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.integration-setup__icon {
    font-size: 1.8rem;
}

.integration-setup__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.integration-setup__content h4 {
    font-size: 1.1rem;
}

.integration-setup__content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.integration-setup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
}

.integrations-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap; /* allow manage button to wrap below content */
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.integrations-status__icon {
    display: none; /* hide green check emoji */
}

.integrations-status__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-secondary);
}

/* Give a little space when Manage wraps under connections/badges */
#manage-integrations-btn {
    margin-top: 0.5rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    white-space: nowrap;
}

.file-upload {
    position: relative;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
    background: rgba(37, 99, 235, 0.08);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload.file-selected {
    border-color: var(--success-color);
    color: var(--success-dark);
    background: rgba(22, 163, 74, 0.12);
}

.upload-placeholder {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.previous-meeting-full-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.loading-placeholder {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.meeting-selection-confirmation {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--success-color);
    background: rgba(22, 163, 74, 0.1);
    color: var(--success-dark);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.generate-button-section {
    display: flex;
    justify-content: center;
}

.progress-container {
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .app-sidebar {
        width: 240px;
        padding-inline: 1.5rem;
    }

    .landing-hero,
    .landing-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .app-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .app-sidebar__footer {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .page-content {
        padding: 2rem;
    }

    .landing-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-hero__meta {
        grid-template-columns: 1fr;
    }

    .dashboard-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Modal styles for group creation */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    font-weight: 200;
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-2xl);
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.add-member-btn {
    padding: 8px 16px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: var(--spacing-sm);
}

.add-member-btn:hover {
    background: var(--primary-light);
    border-style: solid;
}

.save-group-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    color: white;
    font-size: var(--font-size-base);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.save-group-btn:hover {
    background: linear-gradient(135deg, var(--success-dark) 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.save-group-btn:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.member-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-secondary);
    transition: all var(--transition-base);
}

.member-item.collapsed {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-primary);
    border-color: var(--success-color);
}

.member-item.collapsed .member-fields,
.member-item.collapsed .member-actions {
    display: none;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.member-item.collapsed .member-header {
    margin-bottom: 0;
}

.member-title {
    font-weight: 200;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.member-controls {
    display: flex;
    gap: 6px;
}

.member-controls button {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    cursor: pointer;
    font-size: var(--font-size-xs);
    transition: all var(--transition-base);
    min-width: 24px;
    text-align: center;
}

.member-controls button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.member-controls .expand-member {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.member-controls .expand-member:hover {
    background: var(--primary-dark);
}

.member-controls .delete-member {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.member-controls .delete-member:hover {
    background: #c53030;
}

.member-fields {
    display: grid;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.member-field-full {
    grid-column: 1 / -1;
}

.members-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.members-container::-webkit-scrollbar {
    width: 6px;
}

.members-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.members-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.members-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.create-member-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: var(--spacing-sm);
}

.create-member-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.ai-interaction {
    margin-top: var(--spacing-lg);
}

.followup-box {
    display: none;
    margin-top: var(--spacing-sm);
}

.followup-box.show {
    display: block;
}

/* Enhanced form styling for dashboard */
.dashboard-page .form-input,
.dashboard-page .form-textarea,
.modal-content .form-input,
.modal-content .form-textarea,
.modal-content textarea {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all var(--transition-base);
    background: var(--bg-primary);
}

.dashboard-page .form-input:focus,
.dashboard-page .form-textarea:focus,
.modal-content .form-input:focus,
.modal-content .form-textarea:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.dashboard-page .form-label {
    font-weight: 200;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    margin-bottom: 8px;
    display: block;
}

.summary-content {
    display: none;
}

.summary-content.show {
    display: block;
}

/* Summary box styling */
.summary-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

/* Remove container constraints on login page */
body .container:has(.login-page) {
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* =========================================
   19. LIVE TRANSCRIPTION STYLES
   ========================================= */

/* Or Divider */
.or-divider {
    display: flex;
    align-items: center;
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.or-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.or-text {
    padding: 0 var(--spacing-md);
    color: var(--text-color-muted);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Web Speech API transcript styling */
.final-text {
    color: #333;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 4px;
}

.interim-text {
    color: #666;
    font-style: italic;
    background: rgba(23, 162, 184, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.transcript-cursor {
    animation: blink 1s infinite;
    font-weight: 200;
    color: #667eea;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Live Transcription Button */
.live-transcription-btn {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid var(--danger-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    font-size: var(--font-size-base);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.live-transcription-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.live-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.7;
    }
}

/* Live Transcription Container */
.live-transcription-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-height: 100%;
    overflow-y: auto;
}

/* Audio Visualizer */
.audio-visualizer {
    background: var(--bg-secondary);
    border: 2px solid var(--danger-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.audio-level-bars {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 3px;
    height: 30px;
    margin-bottom: var(--spacing-sm);
}

.audio-bar {
    width: 4px;
    min-height: 4px;
    background: linear-gradient(to top, var(--danger-color), #fecaca);
    border-radius: 2px 2px 0 0;
    animation: audioWave 1.2s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes audioWave {
    0%, 100% {
        height: 4px;
        background: linear-gradient(to top, var(--danger-color), #fecaca);
    }
    50% {
        height: 24px;
        background: linear-gradient(to top, #dc2626, var(--danger-color));
    }
}

.recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--danger-color);
    font-weight: 200;
    font-size: var(--font-size-base);
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: recordingPulse 1s ease-in-out infinite;
}

@keyframes recordingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Paused State Styles */
.audio-visualizer.paused .audio-bar {
    background: linear-gradient(to top, #6b7280, #9ca3af);
    animation: none;
    height: 4px;
}

.audio-visualizer.paused .recording-status {
    color: #6b7280;
}

.audio-visualizer.paused .recording-dot {
    background: #6b7280;
    animation: none;
    opacity: 1;
    transform: scale(1);
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.audio-visualizer.paused .recording-dot::after {
    content: "⏸️";
    position: absolute;
    color: white;
    font-size: 8px;
}

/* Saved State Styles */
.audio-visualizer.saved {
    display: none;
}

/* Live Transcript Display */
.live-transcript {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 250px;
    max-width: 100%;
    overflow: hidden;
}

.transcript-header {
    background: var(--bg-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 200;
    color: var(--text-color);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

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

.control-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-color);
    font-size: var(--font-size-xs);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 4px;
}

.control-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.pause-btn {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.pause-btn:hover {
    background: var(--warning-light);
    border-color: var(--warning-dark);
}

.stop-btn {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.stop-btn:hover {
    background: var(--danger-light);
    border-color: var(--danger-dark);
}

.control-btn.paused {
    border-color: var(--success-color);
    color: var(--success-color);
}

.control-btn.paused:hover {
    background: var(--success-light);
}

.transcript-content {
    flex: 1;
    padding: var(--spacing-md);
    overflow-y: auto;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.transcript-placeholder {
    color: var(--text-color-muted);
    font-style: italic;
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.transcript-text {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
}

.transcript-text.speaking {
    background: var(--primary-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

.transcript-text .speaker {
    font-weight: 200;
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
}

.transcript-text .timestamp {
    font-size: var(--font-size-xs);
    color: var(--text-color-muted);
    float: right;
}

/* Continuous Transcript Styles */
.continuous-transcript {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.continuous-transcript:empty::before {
    content: "Listening... Start speaking to see live transcription.";
    color: var(--text-color-muted);
    font-style: italic;
}

/* Save Transcript Modal Styles */
.transcript-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    max-height: 200px;
    overflow-y: auto;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--text-color-muted);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--danger-light);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Recording State Styles */
.recording-complete {
    background: var(--success-light);
    border: 1px solid var(--success-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    margin: var(--spacing-md) 0;
}

.recording-complete .status-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.recording-complete .status-text {
    color: var(--success-dark);
    font-weight: 200;
    font-size: var(--font-size-lg);
}

/* Previous Meeting Button */
.previous-meeting-btn {
    width: 100%;
    padding: 14px 24px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: var(--font-size-base);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

.previous-meeting-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.previous-meetings-list {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    max-height: 200px;
    overflow-y: auto;
}

.previous-meeting-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.previous-meeting-item:last-child {
    border-bottom: none;
}

.previous-meeting-item:hover {
    background: var(--bg-secondary);
}

.previous-meeting-item.selected {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 200;
}

.meeting-info {
    flex: 1;
}

.meeting-name {
    font-weight: 200;
    font-size: var(--font-size-sm);
    color: var(--text-color);
    margin-bottom: 4px;
}

.meeting-meta {
    font-size: var(--font-size-xs);
    color: var(--text-color-muted);
    display: flex;
    gap: 12px;
}

.meeting-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 200;
    text-transform: uppercase;
}

.meeting-type-badge.live {
    background: #ddd6fe;
    color: #7c3aed;
}

.meeting-type-badge.file {
    background: #dcfce7;
    color: #166534;
}

/* Stop Transcription Button */
.stop-transcription-btn {
    width: 100%;
    padding: 14px 24px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    font-size: var(--font-size-base);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    margin-top: var(--spacing-md);
}

.stop-transcription-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #4a5568 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Full-screen previous meeting mode */
.previous-meeting-full-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    max-height: calc(100vh - 200px);
}

.hide-previous-full-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    font-size: var(--font-size-base);
    font-weight: 200;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.hide-previous-full-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #4a5568 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.previous-meetings-full-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    max-height: 250px;
}

.previous-meetings-full-list .previous-meeting-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.previous-meetings-full-list .previous-meeting-item:last-child {
    border-bottom: none;
}

.previous-meetings-full-list .previous-meeting-item:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.previous-meetings-full-list .previous-meeting-item.selected {
    background: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    font-weight: 200;
}

.previous-meetings-full-list .meeting-name {
    font-size: var(--font-size-base);
    font-weight: 200;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.previous-meetings-full-list .meeting-meta {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

.previous-meetings-full-list .meeting-type-badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 200;
    text-transform: uppercase;
}

/* Right-side actions (badge + delete button) */
.previous-meeting-item .meeting-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-meeting-btn {
    background: var(--danger-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 200;
    cursor: pointer;
}

.delete-meeting-btn:hover {
    background: #b91c1c; /* darker red */
}

/* Meeting selection confirmation */
.meeting-selection-confirmation {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    color: white;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-weight: 200;
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.3s ease-out;
}

.meeting-selection-confirmation .selection-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.meeting-selection-confirmation .selected-meeting-name {
    font-weight: 200;
    text-decoration: underline;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Live Transcription */
@media (max-width: 768px) {
    .audio-level-bars {
        height: 25px;
    }
    
    .audio-bar {
        width: 3px;
    }
    
    @keyframes audioWave {
        0%, 100% {
            height: 3px;
        }
        50% {
            height: 18px;
        }
    }
    
    .live-transcript {
        height: 200px;
    }
    
    .audio-visualizer {
        padding: var(--spacing-sm);
    }
}

/* =========================================
   19.5. FULL-SCREEN AI SUMMARY STYLES
   ========================================= */

/* When AI output is shown, make it full screen */
.dashboard-page #ai-output-section.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: var(--bg-primary) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Hide other elements when in fullscreen mode */
.dashboard-page.summary-fullscreen .main-interface {
    display: none !important;
}

.dashboard-page.summary-fullscreen .generate-button-section {
    display: none !important;
}

.dashboard-page.summary-fullscreen .guest-notice {
    display: none !important;
}

/* Full screen summary container */
.fullscreen .summary-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: var(--spacing-xl) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Full screen summary header */
.fullscreen .section-header {
    position: sticky !important;
    top: 0 !important;
    background: var(--bg-primary) !important;
    z-index: 10 !important;
    padding: var(--spacing-lg) var(--spacing-xl) !important;
    margin: 0 -var(--spacing-xl) var(--spacing-lg) -var(--spacing-xl) !important;
    border-bottom: 2px solid var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.fullscreen .section-header .section-title {
    font-size: var(--font-size-2xl) !important;
    font-weight: 200 !important;
}

/* Summary box in fullscreen mode */
.fullscreen .summary-box {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--spacing-xl) !important;
    margin-bottom: var(--spacing-lg) !important;
    box-shadow: var(--shadow-md) !important;
    font-size: var(--font-size-base) !important;
    line-height: 1.8 !important;
}

.fullscreen .summary-box h3,
.fullscreen .summary-box h4 {
    font-size: var(--font-size-xl) !important;
    margin-bottom: var(--spacing-md) !important;
    color: var(--primary-color) !important;
    font-weight: 200 !important;
    border-bottom: 2px solid var(--primary-color) !important;
    padding-bottom: var(--spacing-sm) !important;
}

.fullscreen .content-section {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--spacing-xl) !important;
    margin-bottom: var(--spacing-lg) !important;
    box-shadow: var(--shadow-sm) !important;
}

.fullscreen .content-section h4 {
    font-size: var(--font-size-lg) !important;
    color: var(--text-primary) !important;
    margin-bottom: var(--spacing-md) !important;
    font-weight: 200 !important;
}

.fullscreen .content-section ul {
    font-size: var(--font-size-base) !important;
    line-height: 1.7 !important;
}

.fullscreen .content-section li {
    margin-bottom: var(--spacing-sm) !important;
    padding: var(--spacing-sm) 0 !important;
}

/* AI interaction section in fullscreen - now as bubble buttons */
.fullscreen .ai-interaction {
    margin-top: var(--spacing-lg) !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: static !important;
}

.fullscreen .missed-question {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: var(--spacing-lg) !important;
}

.fullscreen .missed-button {
    padding: 16px 32px !important;
    border: 2px solid var(--info-color) !important;
    border-radius: var(--radius-xl) !important;
    background: linear-gradient(135deg, var(--info-light) 0%, var(--bg-primary) 100%) !important;
    color: var(--info-dark) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 200 !important;
    cursor: pointer !important;
    transition: all var(--transition-base) !important;
    box-shadow: var(--shadow-md) !important;
    text-align: center !important;
    min-width: 250px !important;
}

.fullscreen .missed-button:hover {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--info-dark) 100%) !important;
    color: white !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Followup box styling in fullscreen */
.fullscreen .followup-box {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    padding: var(--spacing-lg) !important;
    margin-top: var(--spacing-md) !important;
    box-shadow: var(--shadow-md) !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.fullscreen .followup-input {
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    font-size: var(--font-size-base) !important;
    padding: 14px 18px !important;
}

.fullscreen .action-buttons {
    display: flex !important;
    gap: var(--spacing-sm) !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.fullscreen .ask-button,
.fullscreen .send-button {
    padding: 12px 24px !important;
    border-radius: var(--radius-lg) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 200 !important;
    min-width: 140px !important;
}

/* Summary loading overlay */
.summary-loading-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 100 !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(2px) !important;
}

.loading-spinner {
    width: 40px !important;
    height: 40px !important;
    border: 4px solid var(--border-color) !important;
    border-top: 4px solid var(--primary-color) !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-bottom: var(--spacing-md) !important;
}

.loading-text {
    font-size: var(--font-size-base) !important;
    font-weight: 200 !important;
    color: var(--primary-color) !important;
}

/* Temporary message styling */
.temporary-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: var(--radius-lg) !important;
    font-size: var(--font-size-sm) !important;
    font-weight: 200 !important;
    margin-bottom: var(--spacing-md) !important;
    text-align: center !important;
    box-shadow: var(--shadow-md) !important;
    animation: slideInDown 0.3s ease-out !important;
}

/* Process New Meeting button - Cool styling */
.process-new-meeting-btn {
    position: fixed !important;
    top: var(--spacing-lg) !important;
    right: var(--spacing-lg) !important;
    padding: 14px 24px !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ff6b9d 100%) !important;
    color: white !important;
    font-size: var(--font-size-sm) !important;
    font-weight: 200 !important;
    cursor: pointer !important;
    transition: all var(--transition-base) !important;
    z-index: 10001 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.process-new-meeting-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff7043 50%, #ff4081 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6) !important;
}

.process-new-meeting-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.5) !important;
}



/* Responsive fullscreen design */
@media (max-width: 768px) {
    .fullscreen .summary-content {
        padding: var(--spacing-md) !important;
    }
    
    .fullscreen .section-header {
        padding: var(--spacing-md) !important;
        margin: 0 -var(--spacing-md) var(--spacing-md) -var(--spacing-md) !important;
    }
    
    .fullscreen .ai-interaction {
        margin-top: var(--spacing-md) !important;
        padding: 0 !important;
    }
    
    .fullscreen .missed-button {
        min-width: 200px !important;
        padding: 12px 24px !important;
        font-size: var(--font-size-sm) !important;
    }
    
    .process-new-meeting-btn {
        top: var(--spacing-sm) !important;
        right: var(--spacing-sm) !important;
        padding: 10px 16px !important;
        font-size: var(--font-size-xs) !important;
    }
    
    .fullscreen .summary-box,
    .fullscreen .content-section {
        padding: var(--spacing-md) !important;
    }
}

/* ==========================================
   SUMMARY LOADING OVERLAY STYLES
   ========================================== */

.summary-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
}

.summary-loading-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: summarySpinner 1s linear infinite;
    margin-bottom: 15px;
}

.summary-loading-overlay .loading-text {
    color: #333;
    font-size: 16px;
    font-weight: 200;
    text-align: center;
}

@keyframes summarySpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ask and Remember button - Shiny Gold styling */
.ask-remember-button {
    padding: 10px 20px;
    border: 2px solid #DAA520;
}

/* =========================================
   FOLLOW-UP MEETING MODAL STYLES
   ========================================= */

.followup-agenda-modal {
    max-width: 800px !important;
}

.meeting-overview {
    margin-bottom: var(--spacing-lg);
}

.overview-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.overview-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.overview-icon {
    font-size: 1.5rem;
    margin-top: 4px;
}

.overview-item h4 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.overview-item p {
    margin: 0;
    color: var(--text-color-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.agenda-content {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin: 0 0 var(--spacing-md) 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
}

.agenda-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.agenda-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.2s ease;
}

.agenda-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.item-number {
    background: var(--primary-color);
    color: white;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-topic {
    flex: 1;
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.item-duration {
    font-size: var(--font-size-xs);
    color: var(--text-color-muted);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.item-details {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-color-secondary);
    line-height: 1.5;
}

.item-lead {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-color-muted);
}

.related-items {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.related-items strong {
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.related-items ul {
    margin: var(--spacing-xs) 0 0 0;
    padding-left: var(--spacing-md);
}

.related-items li {
    color: var(--text-color-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xxs);
}

.agenda-section {
    margin-bottom: var(--spacing-lg);
}

.agenda-section h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin: 0 0 var(--spacing-sm) 0;
}

.agenda-section ul {
    margin: 0;
    padding-left: var(--spacing-md);
}

.agenda-section li {
    color: var(--text-color-secondary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.auto-send-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #e1bee7;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.info-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}

.info-card h4 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
}

.info-card p {
    margin: 0;
    color: var(--text-color-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.footer-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    align-items: center;
}

.btn-large {
    padding: 12px 24px !important;
    font-size: var(--font-size-base) !important;
    font-weight: var(--font-weight-semibold) !important;
}

/* Success Modal Styles */
.success-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.success-header .modal-title {
    color: white;
}

.success-header .modal-close {
    color: white;
    opacity: 0.8;
}

.success-header .modal-close:hover {
    opacity: 1;
}

.success-content {
    text-align: center;
    padding: var(--spacing-lg);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.success-content h3 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-color);
    font-size: var(--font-size-lg);
}

.success-message {
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--text-color-secondary);
    font-size: var(--font-size-base);
}

.meeting-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .overview-card {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .footer-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-actions button {
        width: 100%;
        margin-bottom: var(--spacing-xs);
    }
    
    .item-header {
        flex-wrap: wrap;
    }
    
    .item-duration {
        order: 3;
        flex-basis: 100%;
        margin-top: var(--spacing-xs);
    }
}
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #FFD700 0%, #FFF8DC 25%, #FFD700 50%, #FFED4E 75%, #DAA520 100%);
    color: #333;
    font-size: var(--font-size-sm);
    font-weight: 200;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: var(--spacing-sm);
    position: relative;
    box-shadow: 
        0 4px 8px rgba(218, 165, 32, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.ask-remember-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.ask-remember-button:hover {
    background: linear-gradient(135deg, #FFED4E 0%, #FFF8DC 25%, #FFD700 50%, #FFFF99 75%, #CD853F 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(218, 165, 32, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: #B8860B;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.ask-remember-button:disabled {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* External actions container */
.external-actions {
    margin-top: var(--spacing-md);
    text-align: center;
}

.external-actions .send-button {
    margin: 0;
}

/* =========================================
   JIRA INTEGRATION STYLES
   ========================================= */

/* Jira Plugin Section */
.jira-plugin-section {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Jira Plugin Bubble */
.jira-plugin-bubble {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(74, 144, 226, 0.2);
    color: white;
    animation: jira-bubble-slide-in 0.6s ease-out;
}

.jira-plugin-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: jira-shimmer 3s ease-in-out infinite;
}

@keyframes jira-bubble-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jira-shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.jira-bubble-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.jira-bubble-content {
    position: relative;
    z-index: 2;
}

.jira-bubble-title {
    font-size: 1.1rem;
    font-weight: 200;
    margin: 0 0 var(--spacing-xs) 0;
    color: white;
}

.jira-bubble-text {
    font-size: 0.85rem;
    margin: 0 0 var(--spacing-md) 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.jira-bubble-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    backdrop-filter: blur(10px);
}

.jira-bubble-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.jira-bubble-btn .btn-icon {
    font-size: 1rem;
}

.jira-bubble-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.jira-bubble-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Jira Status Display */
.jira-status-display {
    background: var(--bg-primary);
    border: 1px solid var(--success-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.jira-status-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.jira-status-icon {
    font-size: 1.5rem;
    color: var(--success-color);
}

.jira-status-info {
    flex: 1;
}

.jira-status-title {
    font-size: 1.1rem;
    font-weight: 200;
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-primary);
}

.jira-status-count {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
}

.jira-manage-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jira-manage-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Jira Modal Styles */
.modal-content--large {
    max-width: 600px;
    width: 90vw;
}

.connections-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.connections-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 200;
    color: var(--text-primary);
}

.connections-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.connection-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.2s ease;
}

.connection-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.connection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.connection-name {
    font-size: 1.1rem;
    font-weight: 200;
    color: var(--text-primary);
    margin: 0;
}

.connection-status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 200;
}

.connection-status--valid {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.connection-status--invalid {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.connection-status--untested {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.connection-details {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.connection-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-test {
    background: var(--info-color);
    border: none;
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-test:hover {
    background: #138496;
}

.btn-delete {
    background: var(--danger-color);
    border: none;
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: #c82333;
}

.no-connections {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--text-muted);
    font-size: 1rem;
}

.no-connections-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.help-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 200;
}

.help-link:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.btn-loading {
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .jira-bubble-content {
        text-align: center;
    }
    
    .jira-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .jira-manage-btn {
        align-self: stretch;
        text-align: center;
    }
    
    .connection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .connection-actions {
        flex-wrap: wrap;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* =========================================
   PRETTY RED POPUP
   ========================================= */

/* Pretty Red Popup */
.red-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.red-popup {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #ef4444;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
    animation: popupAppear 0.3s ease-out;
}

.red-popup h3 {
    color: #dc2626;
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 200;
}

.red-popup p {
    color: #7f1d1d;
    margin: 0 0 24px 0;
    font-size: 16px;
    line-height: 1.5;
}

.red-popup-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 200;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.red-popup-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



/* Email Detection Styles */
.email-detection-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-left: var(--spacing-sm);
}

.email-detection-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

.email-drafts-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.email-drafts-overview .overview-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.email-draft-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    transition: all 0.2s ease;
    margin-bottom: var(--spacing-md);
}

.draft-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.draft-number {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 200;
}

.draft-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.no-emails-message {
    text-align: center;
    padding: var(--spacing-xl);
}

.temp-message.success {
    background: var(--success-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}



