/* AI Video Analysis Platform Styles - Following FaceOff Design Pattern */
:root {
    --primary-red: #da2b26;
    --secondary-gray: #4A5568;
    --light-gray: #F7FAFC;
    --background-color: #F8F9FA;
    --text-color: #2D3748;
    --text-color-light: #5A677B;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --border-color: #E2E8F0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.top-nav {
    background: var(--primary-red);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Cards */
.card {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin: 40px 0;
}

.hero-logo, .upload-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-icon {
    font-size: 4rem !important;
    color: var(--primary-red);
    background: var(--light-gray);
    padding: 20px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo h1, .upload-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.hero-logo p, .upload-header p {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin: 0;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c21b17 100%);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
    color: #fff;
}

.stat-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.3;
    font-size: 2rem !important;
}

/* Section Headings */
.section-heading {
    text-align: center;
    font-weight: 500;
    color: var(--text-color-light);
    margin: 40px 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-red);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Analysis Types Grid */
.analysis-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.analysis-type-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.analysis-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.analysis-type-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.analysis-icon {
    background: var(--light-gray);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.analysis-icon .material-icons {
    font-size: 2.5rem !important;
    color: var(--primary-red);
}

.analysis-type-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.analysis-type-card p {
    color: var(--text-color-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-tag {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.feature-tag.disabled {
    background: #e2e8f0;
    color: #94a3b8;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 2px 4px rgb(255, 255, 255);
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background-color: #c21b17;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgb(255, 255, 255);
}

.btn-secondary {
    background-color: #da2b26;
    color: white !important;
    
}

.btn-secondary:hover {
    background-color: #996d6d;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-gray);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--light-gray);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(218, 43, 38, 0.1);
}

.help-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color-light);
    margin-top: 5px;
}

.file-name {
    display: block;
    text-align: center;
    color: var(--text-color-light);
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 8px;
    background: var(--light-gray);
    border-radius: 6px;
}

input[type="file"] {
    display: none;
}

/* Upload Form Specific */
.upload-card {
    max-width: 600px;
    margin: 0 auto;
}

.analysis-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.analysis-option {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.analysis-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.analysis-option label {
    display: block;
    padding: 20px;
    cursor: pointer;
    margin: 0;
}

.analysis-option input:checked + label {
    background: var(--primary-red);
    color: white;
}

.analysis-option input:checked + label .material-icons {
    color: white;
}

.analysis-option.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.analysis-option-content {
    text-align: center;
}

.analysis-option .material-icons {
    font-size: 2rem !important;
    color: var(--primary-red);
    display: block;
    margin-bottom: 10px;
}

.analysis-option h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.analysis-option p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* Advanced Settings */
.advanced-settings {
    margin: 25px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.advanced-settings summary {
    padding: 15px;
    background: var(--light-gray);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-settings summary:hover {
    background: #e2e8f0;
}

.advanced-content {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Video Preview */
.video-preview-container {
    margin-top: 20px;
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-preview-container video,
.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Progress Bars */
.progress-container {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    height: 28px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c21b17 100%);
    text-align: center;
    line-height: 28px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: width 0.4s ease;
    border-radius: 8px;
}

.progress-mini {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar-mini {
    height: 100%;
    background: var(--primary-red);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Loader */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.spin {
    animation: spin 2s linear infinite;
}

/* Analysis Detail Styles */
.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--primary-red);
}

.analysis-title-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.analysis-icon {
    background: var(--light-gray);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analysis-icon .material-icons {
    font-size: 1.8rem !important;
    color: var(--primary-red);
}

.analysis-title-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.analysis-title-content p {
    color: var(--text-color-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.analysis-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.analysis-status-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.analysis-type-badge {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Result Cards */
.results-section {
    display: grid;
    gap: 25px;
}

.result-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.result-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.face-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.face-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.face-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.face-placeholder .material-icons {
    color: var(--text-color-light);
    font-size: 1.5rem !important;
}

.face-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.face-details p {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin: 0;
}

.posture-badge,
.attention-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--primary-red);
    color: white;
}

.attention-badge.attention-attentive {
    background: var(--success-color);
}

.attention-badge.attention-drowsy {
    background: var(--danger-color);
}

.attention-badge.attention-surprised {
    background: var(--warning-color);
}

.attention-badge.attention-confused {
    background: var(--secondary-gray);
}

.attention-badge.attention-normal {
    background: #6366f1;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color-light);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Tags */
.posture-tags,
.attention-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.posture-tag,
.attention-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.posture-tag.walking {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.posture-tag.standing {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

.posture-tag.sitting {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #6366f1;
}

.posture-tag.lying {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.posture-tag.bending {
    background: #fed7d7;
    color: #9b2c2c;
    border-color: #e53e3e;
}

.posture-tag.hands-up {
    background: #fbb6ce;
    color: #97266d;
    border-color: #d53f8c;
}

.attention-tag.attentive {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.attention-tag.drowsy {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.attention-tag.surprised {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.attention-tag.confused {
    background: #f3f4f6;
    color: #374151;
    border-color: #6b7280;
}

.attention-tag.normal {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #6366f1;
}

/* Actions */
.actions-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.video-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
}

.info-label {
    font-weight: 500;
    color: var(--text-color-light);
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
}

/* Processing Card */
.processing-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.processing-card h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.processing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.processing-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Error Card */
.error-card {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    text-align: center;
}

.error-card h3 {
    color: #991b1b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-message {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.error-actions {
    margin-top: 20px;
}

/* Pending Card */
.pending-card {
    text-align: center;
    background: var(--light-gray);
}

.pending-icon {
    font-size: 4rem !important;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.pending-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.pending-card p {
    color: var(--text-color-light);
    margin-bottom: 25px;
}

/* List Page Styles */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.list-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
}

.filters-card {
    margin-bottom: 25px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.search-group {
    grid-column: span 2;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.results-info {
    margin-bottom: 20px;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

/* Analysis Grid */
.analyses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.analysis-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-red);
}

.analysis-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.analysis-type-icon {
    background: var(--light-gray);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analysis-type-icon .material-icons {
    font-size: 1.5rem !important;
    color: var(--primary-red);
}

.analysis-card-title {
    flex: 1;
    min-width: 0;
}

.analysis-card-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.analysis-card-title p {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.analysis-card-status {
    flex-shrink: 0;
}

.analysis-card-content {
    padding: 20px;
}

.analysis-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.meta-item .material-icons {
    font-size: 1rem !important;
}

.progress-mini-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-mini {
    flex: 1;
}

.progress-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color-light);
}

.analysis-card-actions {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.empty-state .card {
    text-align: center;
    max-width: 400px;
    margin: 40px auto;
}

.empty-icon {
    font-size: 4rem !important;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-color-light);
    margin-bottom: 25px;
}

/* Quick Start */
.quick-start-section {
    margin: 40px 0;
}

.quick-start-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.quick-start-step {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin: 0;
}

.quick-start-actions {
    text-align: center;
}

/* Recent Analyses */
.recent-analyses {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.analysis-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.analysis-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.analysis-info {
    flex: 1;
    min-width: 0;
}

.analysis-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.analysis-info p {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.analysis-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-color-light);
}

.analysis-type {
    display: flex;
    align-items: center;
    gap: 5px;
}

.analysis-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.analysis-status {
    flex-shrink: 0;
}

.analysis-actions {
    flex-shrink: 0;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: white;
}

.page-info {
    padding: 0 20px;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* Messages */
.messages-container {
    background: rgba(218, 43, 38, 0.1);
    padding: 15px 0;
    margin-bottom: 20px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Disclaimer */
.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-color-light);
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
    }

    .hero-logo h1, .upload-header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analysis-types-grid {
        grid-template-columns: 1fr;
    }

    .analysis-header {
        flex-direction: column;
        gap: 20px;
    }

    .analysis-title-section {
        align-items: center;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filters-form {
        grid-template-columns: 1fr;
    }

    .search-group {
        grid-column: span 1;
    }

    .analyses-grid {
        grid-template-columns: 1fr;
    }

    .actions-section {
        flex-direction: column;
        align-items: center;
    }

    .video-actions {
        flex-direction: column;
    }

    .analysis-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quick-start-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-logo h1, .upload-header h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 20px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .analysis-meta {
        flex-direction: column;
        gap: 8px;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }
}

/* Text Selection */
::selection {
    background-color: var(--primary-red);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-red);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c21b17;
}

/* Add these logo styles to your existing CSS */

/* Navigation Logo */
.nav-logo {
    height: 35px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Page Logo */
.hero-logo-img,
.upload-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Logo Section Adjustments */
.hero-logo,
.upload-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Remove the old icon styles */
.hero-icon {
    display: none; /* Hide the material icon */
}

/* Mobile Responsive Logo */
@media (max-width: 768px) {
    .nav-logo {
        height: 30px;
    }
    
    .hero-logo-img,
    .upload-logo-img {
        height: 60px;
    }
    
    .nav-brand a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 25px;
    }
    
    .hero-logo-img,
    .upload-logo-img {
        height: 50px;
    }
    
    .nav-brand a {
        font-size: 1rem;
    }
}

/* Logo hover effects */
.nav-logo,
.hero-logo-img,
.upload-logo-img {
    transition: all 0.3s ease;
}

.nav-brand a:hover .nav-logo {
    transform: scale(1.05);
}

.hero-logo-img:hover,
.upload-logo-img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}
/* Small logos for detail pages */
.analysis-logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.list-logo {
    height: 30px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

/* All Types Analysis Option Styles */
.combo-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.combo-icon {
    background: rgba(218, 43, 38, 0.1);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.combo-icon .material-icons {
    font-size: 1.2rem !important;
    color: var(--primary-red);
}

.combo-plus {
    font-weight: bold;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.analysis-option input:checked + label .combo-icon {
    background: rgba(255, 255, 255, 0.2);
}

.analysis-option input:checked + label .combo-icon .material-icons {
    color: white;
}

.analysis-option input:checked + label .combo-plus {
    color: white;
}

/* Highlight the all types option */
.analysis-option[data-type="all"] {
    border: 2px solid var(--primary-red);
    background: linear-gradient(135deg, rgba(218, 43, 38, 0.05) 0%, rgba(218, 43, 38, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.analysis-option[data-type="all"]::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -5px;
    right: -35px;
    background: var(--primary-red);
    color: white;
    padding: 2px 40px;
    font-size: 0.7rem;
    font-weight: 600;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.analysis-option[data-type="all"]:hover {
    border-color: #c21b17;
    background: linear-gradient(135deg, rgba(218, 43, 38, 0.08) 0%, rgba(218, 43, 38, 0.04) 100%);
}
/* Add to your CSS file */
.processing-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    transform: scale(1.1);
}

.step.completed {
    opacity: 1;
    color: #10b981;
}

.step-icon {
    font-size: 2rem !important;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step.completed .step-icon {
    background: #10b981;
    color: white;
}

.step-text {
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
}

/* Combined Videos Section Styles */
.combined-videos-section {
    margin-bottom: 30px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.video-card {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.video-header {
    padding: 20px;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.video-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 1.2rem;
}

.video-header p {
    color: var(--text-color-light);
    margin: 0;
    font-size: 0.9rem;
}

.video-container {
    padding: 0;
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
}

.video-actions {
    padding: 15px 20px;
    background: white;
    text-align: center;
}

/* Combined Actions Section */
.combined-actions {
    margin-top: 30px;
}

.actions-card {
    text-align: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f1f5f9 100%);
}

.actions-card h4 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.3rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* Analysis Type Indicators */
.video-header .material-icons {
    font-size: 1.5rem !important;
}

.video-card:has(.material-icons:contains("accessibility_new")) {
    border-left: 5px solid #10b981;
}

.video-card:has(.material-icons:contains("visibility")) {
    border-left: 5px solid var(--primary-red);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container video {
        max-height: 250px;
    }
}

/* Loading State for Videos */
.video-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--light-gray);
    color: var(--text-color-light);
}

.video-loading .material-icons {
    font-size: 2rem !important;
    margin-right: 10px;
    animation: spin 2s linear infinite;
}

/* Video Progress Indicators */
.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.3);
}

.video-progress-bar {
    height: 100%;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

/* Enhanced Video Controls */
.video-container {
    position: relative;
}

.video-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.posture-overlay {
    background: rgba(16, 185, 129, 0.9);
}

.eye-overlay {
    background: rgba(218, 43, 38, 0.9);
}

/* Comparison Mode Toggle */
.comparison-toggle {
    text-align: center;
    margin: 20px 0;
}

.comparison-toggle button {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.comparison-toggle button:hover {
    background: #c21b17;
    transform: translateY(-1px);
}

.comparison-mode .videos-grid {
    grid-template-columns: 1fr 1fr;
}

.comparison-mode .video-container video {
    max-height: 400px;
}

/* Emotion Tags Styles */
.emotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emotion-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid;
}

.emotion-tag.angry {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.emotion-tag.disgust {
    background: #dcfce7;
    color: #166534;
    border-color: #22c55e;
}

.emotion-tag.fear {
    background: #f3e8ff;
    color: #581c87;
    border-color: #a855f7;
}

.emotion-tag.happy {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.emotion-tag.sad {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

.emotion-tag.surprise {
    background: #fed7aa;
    color: #9a3412;
    border-color: #f97316;
}

.emotion-tag.neutral {
    background: #f3f4f6;
    color: #374151;
    border-color: #6b7280;
}

.emotion-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.emotion-badge.emotion-angry { background: #ef4444; }
.emotion-badge.emotion-disgust { background: #22c55e; }
.emotion-badge.emotion-fear { background: #a855f7; }
.emotion-badge.emotion-happy { background: #f59e0b; }
.emotion-badge.emotion-sad { background: #3b82f6; }
.emotion-badge.emotion-surprise { background: #f97316; }
.emotion-badge.emotion-neutral { background: #6b7280; }
