/* Navigation */
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.15s ease;
}
.nav-link:hover {
    background: #f1f5f9;
    color: #334155;
}
.nav-link.active {
    background: #eff6ff;
    color: #2563eb;
}

.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    color: #94a3b8;
    transition: color 0.15s ease;
}
.mobile-nav.active {
    color: #2563eb;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    transition: box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    outline: none;
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary {
    background: #2563eb;
    color: white;
}
.btn-primary:hover {
    background: #1d4ed8;
}
.btn-primary:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}
.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.btn-secondary:hover {
    background: #e2e8f0;
}
.btn-danger {
    background: #fef2f2;
    color: #dc2626;
}
.btn-danger:hover {
    background: #fee2e2;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 10px;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-uploading { background: #fef3c7; color: #92400e; }
.badge-transcribing { background: #dbeafe; color: #1e40af; }
.badge-analyzing { background: #ede9fe; color: #5b21b6; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-error { background: #fee2e2; color: #991b1b; }

/* Form inputs */
.input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* Recorder */
.recorder-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.recorder-btn.idle {
    background: #2563eb;
    color: white;
}
.recorder-btn.idle:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}
.recorder-btn.recording {
    background: #dc2626;
    color: white;
    animation: pulse-record 1.5s ease-in-out infinite;
}

@keyframes pulse-record {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
}

/* Audio wave visualization */
.wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 48px;
}
.wave-bar {
    width: 4px;
    border-radius: 2px;
    background: #3b82f6;
    transition: height 0.1s ease;
}

/* Progress */
.progress-bar {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: #2563eb;
    transition: width 0.3s ease;
}

/* Stat card */
.stat-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
}
.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* Analysis content */
.analysis-content h2 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 20px 0 8px; }
.analysis-content h3 { font-size: 16px; font-weight: 600; color: #334155; margin: 16px 0 6px; }
.analysis-content p { color: #475569; line-height: 1.6; margin-bottom: 8px; }
.analysis-content ul, .analysis-content ol { color: #475569; padding-left: 20px; margin-bottom: 8px; }
.analysis-content li { margin-bottom: 4px; line-height: 1.5; }
.analysis-content strong { color: #1e293b; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Select styled */
select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
}

/* Textarea */
textarea.input {
    resize: vertical;
    min-height: 120px;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}
.empty-state .material-icons-round {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
