/* ========================================
   MEETING SUMMARIZER - MAIN STYLESHEET
   ======================================== */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === NAVIGATION === */
.navbar {
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50px;
    transition: var(--transition);
}

.user-profile-btn:hover {
    background: var(--background);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-profile-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.user-email-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-item:hover:not(.disabled) {
    background: var(--background);
    color: var(--primary-color);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.dropdown-item:hover:not(.disabled) svg {
    color: var(--primary-color);
}

.dropdown-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    padding: 2rem 20px;
}

/* === HERO SECTION === */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === PAGE HEADER === */
.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* === CARDS === */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

/* Editable Title Styles */
.editable-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.editable-title {
    border: 2px solid transparent;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
    cursor: pointer;
}

.editable-title:hover {
    background: var(--background);
}

.editable-title[contenteditable="true"] {
    border-color: var(--primary-color);
    background: var(--surface);
    cursor: text;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--background);
    color: var(--primary-color);
}

.btn-icon.success {
    color: var(--success-color);
}

.btn-icon.success:hover {
    background: rgba(16, 185, 129, 0.1);
}

.btn-icon.danger {
    color: var(--danger-color);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* === FILE INPUT === */
.file-input-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: block;
    padding: 0.75rem 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--background);
}

.file-label:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.file-input:focus + .file-label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 1.2rem;
}

/* === DIVIDER === */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* === PROGRESS BAR === */
.progress-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
}

/* === RECORDING === */
.recording-status {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--danger-color);
}

.pulse {
    width: 12px;
    height: 12px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.recording-timer {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* === AUDIO PREVIEW === */
.audio-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
}

.audio-preview h4 {
    margin-bottom: 1rem;
}

.audio-preview audio {
    width: 100%;
    margin-bottom: 1rem;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-actions .form-control {
    flex: 1;
    min-width: 200px;
}

/* === ALERTS === */
.alert {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.alert h4 {
    margin-bottom: 0.5rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid var(--success-color);
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid var(--danger-color);
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

/* === LOADING STATE === */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* === MEETINGS LIST === */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    width: 300px;
    max-width: 100%;
}

.meetings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.meeting-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.meeting-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.meeting-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.meeting-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.meeting-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* === CHAIN LAYOUT === */
.chain-container {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.chain-container:hover {
    box-shadow: var(--shadow-lg);
}

/* Latest Meeting Card */
.latest-meeting-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.latest-meeting-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.latest-meeting-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.chain-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.latest-meeting-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.latest-meeting-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.latest-meeting-actions .btn {
    flex: 1;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Previous Meetings Section */
.previous-meetings-section {
    background: #f1f5f9;
    border-radius: var(--radius);
    overflow: hidden;
}

.previous-meetings-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.previous-meetings-toggle:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.toggle-icon {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.previous-meetings-list {
    padding: 0 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 1000px;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
    opacity: 1;
}

.previous-meetings-list.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
}

.previous-meetings-list.expanded {
    max-height: 1000px;
    padding: 0 1.5rem 1rem 1.5rem;
    opacity: 1;
}

/* Previous Meeting Card (compact) */
.previous-meeting-card {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.previous-meeting-card:hover {
    border-left-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.previous-meeting-info {
    flex: 1;
}

.previous-meeting-card h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.previous-meeting-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.previous-meeting-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.previous-meeting-actions .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* === MEETING DETAIL PAGE === */
.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.meeting-title-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.meeting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    color: var(--text-secondary);
}

.meta-item strong {
    color: var(--text-primary);
}

/* === TABS === */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.tab-button {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === CONTENT DISPLAY === */
.content-display {
    line-height: 1.8;
    color: var(--text-primary);
}

.content-display h1,
.content-display h2,
.content-display h3,
.content-display h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-display ul,
.content-display ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-display p {
    margin-bottom: 1rem;
}

.transcript-display {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius);
    max-height: 600px;
    overflow-y: auto;
}

/* === TODO LIST === */
.todos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-color);
}

.todo-checkbox {
    margin-top: 0.25rem;
}

.todo-text {
    flex: 1;
    line-height: 1.6;
}

/* === CHAT === */
.chat-messages {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.chat-welcome {
    text-align: center;
    padding: 2rem;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.suggested-questions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.suggestion-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition);
    max-width: 400px;
    width: 100%;
}

.suggestion-btn:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.chat-message {
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.chat-message.user {
    text-align: right;
}

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 1rem;
    border-radius: var(--radius);
    line-height: 1.6;
}

.chat-message.user .message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .message-bubble {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.chat-input-form {
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.chat-submit {
    padding: 1rem 2rem;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-warning {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* === FOOTER === */
.footer {
    background: var(--surface);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .meetings-container {
        grid-template-columns: 1fr;
    }

    .meeting-header {
        flex-direction: column;
    }

    .tabs {
        gap: 0.25rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .preview-actions {
        flex-direction: column;
    }

    .preview-actions .form-control {
        width: 100%;
    }

    .message-bubble {
        max-width: 90%;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* === SPEAKER MODAL === */
.speaker-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.speaker-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.speaker-label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    background: var(--surface);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.speaker-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.speaker-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--text-primary);
}

/* === MEETING TIMELINE & FOLLOW-UP === */
.meeting-timeline {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow-lg);
    color: white;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timeline-label {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.timeline-chain {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.timeline-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.timeline-item.current {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.timeline-item.current a {
    font-weight: 700;
}

.timeline-arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: bold;
}

.btn-text-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    transition: var(--transition);
}

.btn-text-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Follow-Up Modal Styles */
.followup-preview {
    background: var(--background);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.preview-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.chain-preview-text {
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control option {
    padding: 8px;
}

/* === FOLLOW-UP BANNER === */
.follow-up-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.follow-up-banner-content {
    flex: 1;
}

.follow-up-banner-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.follow-up-banner-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.btn-close-banner {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* === SUCCESS BUTTON STYLE === */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}


