/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Color Palette */
    --primary-color: #334155;
    --primary-hover: #475569;
    --primary-light: #64748b;
    --accent-color: #0ea5e9;
    --accent-hover: #0284c7;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    
    /* Backgrounds */
    --background: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    
    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.header-text {
    text-align: left;
    flex: 1;
    min-width: 250px;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 200px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.status-item.status-overall {
    font-weight: 500;
}

.status-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-badge.status-connected {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--success-color);
    font-weight: 600;
}

.status-badge.status-connected .status-dot {
    background-color: var(--success-color);
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

.status-badge.status-disconnected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--error-color);
    font-weight: 600;
}

.status-badge.status-disconnected .status-dot {
    background-color: var(--error-color);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

.status-badge.status-executing {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    font-weight: 600;
}

.status-badge.status-executing .status-dot {
    background-color: #d97706;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-badge.status-executing .status-queued {
    opacity: 0.9;
    font-weight: 500;
}

.status-badge.status-optional {
    background-color: #fef3c7;
    color: #d97706;
}

.status-badge.status-optional .status-dot {
    background-color: #d97706;
}

.status-badge.status-loading {
    background-color: #f1f5f9;
    color: #64748b;
}

.status-badge.status-loading .status-dot {
    background-color: #94a3b8;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive status indicator */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-text {
        text-align: center;
    }
    
    .status-indicator {
        width: 100%;
    }
}

/* System info and prompt sections removed - internal implementation details */

/* Buttons - Professional Style */
.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.35);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.15);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(15, 23, 42, 0.25);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
    background-color: var(--background);
    position: relative;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    transform: scale(1.01);
}

.upload-area.dragover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-width: 2px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.upload-placeholder {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
    pointer-events: auto;
}

.upload-placeholder:hover {
    background-color: rgba(14, 165, 233, 0.05);
}

.upload-placeholder:active {
    background-color: rgba(14, 165, 233, 0.1);
}

.upload-placeholder svg {
    color: var(--accent-color);
    opacity: 0.8;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.1));
}

.upload-main-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

/* Upload Info */
.upload-info {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.upload-info.file-mode {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #2563eb;
}

.upload-info.folder-mode {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 3px solid #d97706;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.upload-placeholder svg {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.upload-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}


.upload-buttons {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.upload-buttons .btn {
    pointer-events: auto;
}

/* File List */
.file-list {
    margin-bottom: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--background);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.file-name {
    font-weight: 500;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.file-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.2rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
}

/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Simple Task Item */
.task-item-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.task-item-simple:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.task-item-simple.status-completed {
    border-left: 3px solid var(--success-color);
}

.task-item-simple.status-uploaded,
.task-item-simple.status-extracting,
.task-item-simple.status-identifying,
.task-item-simple.status-generating,
.task-item-simple.status-processing {
    border-left: 3px solid var(--warning-color);
}

.task-item-simple.status-failed {
    border-left: 3px solid var(--error-color);
}

.task-info {
    flex: 1;
    cursor: pointer;
}

.task-info:hover {
    opacity: 0.8;
}

.task-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.task-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.task-type-badge.type-precheck {
    background-color: #fef3c7;
    color: #d97706;
}

.task-type-badge.type-generate {
    background-color: #dbeafe;
    color: #2563eb;
}

.task-id-short {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.task-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.task-status-badge.status-completed {
    background-color: #dcfce7;
    color: #16a34a;
}

.task-status-badge.status-uploaded,
.task-status-badge.status-extracting,
.task-status-badge.status-identifying,
.task-status-badge.status-generating,
.task-status-badge.status-processing {
    background-color: #fef3c7;
    color: #d97706;
}

.task-status-badge.status-failed {
    background-color: #fee2e2;
    color: #dc2626;
}

.task-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
}


.progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 40px;
}

/* Task Status Progression */
.task-status-progression {
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.task-status-progression .status-completed {
    color: var(--success-color);
}

.task-status-progression .status-active {
    color: var(--accent-color);
    font-weight: 700;
    animation: pulse-text 2s ease-in-out infinite;
}

.task-status-progression .status-success {
    color: var(--success-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(5, 150, 105, 0.2);
}

.task-status-progression .status-error {
    color: var(--error-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}

.task-status-progression .status-pending {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Inline Progress Bar (embedded in status) */
.inline-progress-bar {
    display: inline-block;
    width: 120px;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 10px;
    vertical-align: middle;
    border: 2px solid #cbd5e1;
    position: relative;
}

.inline-progress-bar .progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #059669 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.3s ease-out;
    animation: shimmer 2s ease-in-out infinite;
    will-change: width;
}

/* Enhanced Progress Bar with Phases */
.task-progress-simple {
    margin-top: 0.75rem;
    padding: 0.75rem 0;
}

.progress-phase {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.phase-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.phase-name {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8125rem;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 50%, var(--accent-color) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
    animation: shimmer 2s ease-in-out infinite;
}

/* Phase-specific colors - override the default */
.progress-fill.phase-uploading {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.progress-fill.phase-extracting {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #8b5cf6 100%) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.progress-fill.phase-analyzing {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.progress-fill.phase-generating {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #10b981 100%) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: progress-shine 1.5s ease-in-out infinite;
}

.progress-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 3rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    font-size: 0.8125rem;
    color: var(--accent-color);
    font-weight: 700;
    min-width: 3rem;
    text-align: right;
    font-feature-settings: 'tnum';
    letter-spacing: 0.05em;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-task-action {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.025em;
}

.btn-task-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-download {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
}

.btn-download:hover {
    box-shadow: 0 4px 12px 0 rgba(14, 165, 233, 0.3);
}

.btn-download.btn-download-loading {
    cursor: wait;
}

.btn-download .btn-spinner {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.375rem;
    vertical-align: -0.2em;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn-retry {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-retry:hover {
    box-shadow: 0 4px 12px 0 rgba(217, 119, 6, 0.3);
}

.btn-generate {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.25);
}
.btn-generate:hover {
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.35);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-delete:hover {
    box-shadow: 0 4px 12px 0 rgba(220, 38, 38, 0.3);
}

/* Old task item styles (keep for modal) */
.task-item {
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.task-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.task-item.status-completed {
    border-left-color: var(--success-color);
}

.task-item.status-uploaded,
.task-item.status-extracting,
.task-item.status-identifying,
.task-item.status-generating,
.task-item.status-processing {
    border-left-color: var(--warning-color);
}

.task-item.status-failed {
    border-left-color: var(--error-color);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.task-id {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.task-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.task-status.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.task-status.uploaded,
.task-status.extracting,
.task-status.identifying,
.task-status.generating,
.task-status.processing {
    background-color: #fef3c7;
    color: #92400e;
}

.task-status.failed {
    background-color: #fee2e2;
    color: #991b1b;
}

.task-status.created, .task-status.queued {
    background-color: #e0e7ff;
    color: #3730a3;
}

.task-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Duplicate progress styles removed - using enhanced version above */

/* Utility Classes */
.hidden {
    display: none !important;
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Authentication Section */
.auth-section {
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
}

.auth-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.auth-section p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.auth-input-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-input.error {
    border-color: var(--danger-color);
}

.auth-hint {
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.5rem;
}

.auth-error {
    padding: 0.75rem;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* User Badge */
.user-badge {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
}

.user-email {
    font-size: 0.875rem;
    color: #333;
    font-weight: 500;
}

.btn-logout {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #666;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.btn-logout:hover {
    color: var(--primary-color);
}

/* Hide main content until authenticated */
#main-content {
    display: none;
}

#main-content.authenticated {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .task-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-badge {
        position: static;
        margin: 1rem;
        justify-content: center;
    }
    
    .auth-input-group {
        flex-direction: column;
    }
}
