/* Minimal & Modern Chat Analyzer Styles */

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFF5F5 100%);
    min-height: 100vh;
    color: #2C3E50;
    line-height: 1.6;
    font-weight: 400;
}

/* Feather Icons Global Styles */
[data-feather] {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

svg {
    display: inline-block;
    vertical-align: middle;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 100%);
    border-bottom: 1px solid #FFE5DB;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(250, 86, 60, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.betterspace-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-divider {
    font-size: 1.25rem;
    color: #FA563C;
    font-weight: 400;
    opacity: 0.7;
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-icon {
    position: relative;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FA563C 0%, #FF8C00 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(250, 86, 60, 0.25);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2.5;
}

.logo-icon i:first-child {
    font-size: 1.25rem;
    color: white;
    position: absolute;
    z-index: 2;
}

.logo-icon i:last-child {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 1;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.tagline {
    font-size: 0.7rem;
    color: #718096;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.header-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
    font-size: 0.8rem;
    color: #2C3E50;
    background: linear-gradient(135deg, #FFF8F5 0%, #FEF2F2 100%);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #FFE5DB;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    white-space: nowrap;
}

.status-secure {
    color: #6BCB77;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 1px solid #BBF7D0;
}

/* Main Content */
.main {
    padding: 48px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 80px;
    padding: 0;
}

.hero-content h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-pill {
    background: linear-gradient(135deg, #FFF8F5 0%, #FEF2F2 100%);
    padding: 12px 20px;
    border-radius: 25px;
    color: #2C3E50;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #FFE5DB;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(250, 86, 60, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-pill i {
    font-size: 1rem;
    color: #FA563C;
}

.feature-pill:hover {
    background: linear-gradient(135deg, #FA563C 0%, #FF8C00 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(250, 86, 60, 0.2);
}

.feature-pill:hover i {
    color: white;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1rem;
    color: #6b7280;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Upload Section */
.upload-section {
    margin-bottom: 80px;
}

.upload-area {
    background: #ffffff;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 64px 48px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 32px;
}

.upload-area:hover {
    border-color: #25D366;
    background: #fafffe;
}

.upload-area.drag-over {
    border-color: #25D366;
    background: #f0fdf4;
    border-style: solid;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.upload-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.upload-content h4 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-content p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.browse-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browse-btn:hover {
    background: #374151;
}

/* File Info */
.file-info {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #25D366;
    margin-bottom: 30px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-details i {
    font-size: 2rem;
    color: #25D366;
}

.file-text {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
}

.remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Export Guide */
.export-guide {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    border: 1px solid #e5e7eb;
}

.export-guide details {
    cursor: pointer;
}

.export-guide summary {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.export-guide summary:hover {
    background: #f9fafb;
}

.guide-content {
    margin-top: 20px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.step-number {
    background: #1a1a1a;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.step-text {
    color: #374151;
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Analysis Options */
.analysis-options-section {
    margin-bottom: 80px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.option-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 100%);
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #FFE5DB;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(250, 86, 60, 0.06);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FA563C 0%, #FF8C00 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.option-card:hover::before {
    transform: scaleX(1);
}

.option-card:hover {
    border-color: #FEB8A3;
    box-shadow: 0 8px 25px rgba(250, 86, 60, 0.15);
    transform: translateY(-4px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF0EB 100%);
}

.option-card input[type="checkbox"] {
    display: none;
}

.option-card input[type="checkbox"]:checked + .option-content {
    color: #1a1a1a;
}

.option-card input[type="checkbox"]:checked::before {
    transform: scaleX(1);
}

.option-card input[type="checkbox"]:checked + .option-content .option-icon {
    background: linear-gradient(135deg, #FA563C 0%, #FF8C00 100%);
    color: white;
    transform: scale(1.05);
}

.option-content {
    text-align: center;
    transition: all 0.2s ease;
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF8F5 0%, #FEF2F2 100%);
    margin: 0 auto 20px;
    border: 2px solid #FFE5DB;
    box-shadow: 0 4px 12px rgba(250, 86, 60, 0.08);
    transition: all 0.3s ease;
    color: #FA563C;
}
    transition: all 0.2s ease;
}

.option-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.option-content p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Relationship Context Section */
.relationship-context-section {
    margin-bottom: 48px;
}

.relationship-context-section h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.relationship-context-section p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.relationship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.relationship-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 100%);
    border-radius: 16px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #FFE5DB;
    display: block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(250, 86, 60, 0.06);
}

.relationship-card:hover {
    border-color: #FEB8A3;
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF0EB 100%);
    box-shadow: 0 6px 20px rgba(250, 86, 60, 0.12);
}

.relationship-card input[type="radio"] {
    display: none;
}

.relationship-card input[type="radio"]:checked + .relationship-content {
    color: #1a1a1a;
}

.relationship-card input[type="radio"]:checked + .relationship-content .relationship-icon {
    background: linear-gradient(135deg, #FA563C 0%, #FF8C00 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(250, 86, 60, 0.3);
}

.relationship-card input[type="radio"]:checked {
    border-color: #1a1a1a;
}

.relationship-card:has(input[type="radio"]:checked) {
    border-color: #1a1a1a;
    background: #f9fafb;
}

.relationship-content {
    transition: all 0.2s ease;
}

.relationship-icon {
    font-size: 1.75rem;
    margin-bottom: 16px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF8F5 0%, #FEF2F2 100%);
    margin: 0 auto 16px;
    border: 2px solid #FFE5DB;
    box-shadow: 0 4px 12px rgba(250, 86, 60, 0.08);
    transition: all 0.3s ease;
    color: #FA563C;
}
    transition: all 0.2s ease;
}

.relationship-content h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.relationship-content p {
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
}

/* Privacy Option */
.privacy-option {
    margin-bottom: 48px;
}

.privacy-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    display: block;
}

.privacy-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.privacy-card input[type="checkbox"] {
    display: none;
}

.privacy-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.privacy-icon {
    font-size: 1.5rem;
    color: #6b7280;
    flex-shrink: 0;
}

.privacy-text h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.privacy-text p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Analyze Button */
.analyze-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 180px;
}

.analyze-btn:hover {
    background: #374151;
}

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Section */
.progress-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    margin-bottom: 80px;
    border: 1px solid #e5e7eb;
}

.progress-content h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 32px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: #1a1a1a;
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 500;
}

.progress-stats {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Demo Section */
.demo-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 80px;
    border: 1px solid #e5e7eb;
}

.demo-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #f3f4f6;
}

.demo-input textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
    background: #ffffff;
    color: #1a1a1a;
}

.demo-input textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.demo-input textarea::placeholder {
    color: #9ca3af;
}

.demo-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sample-btn, .demo-analyze-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.sample-btn {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.sample-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.demo-analyze-btn {
    background: #1a1a1a;
    color: white;
}

.demo-analyze-btn:hover {
    background: #374151;
}

.demo-results {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #25D366;
}

.demo-results h4 {
    color: #333;
    margin-bottom: 16px;
}

.demo-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.demo-result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.demo-label {
    font-weight: 500;
    color: #666;
}

.demo-value {
    font-weight: 600;
}

.sentiment-positive { color: #28a745; }
.sentiment-negative { color: #dc3545; }
.sentiment-neutral { color: #ffc107; }

.stress-minimal, .stress-low { color: #28a745; }
.stress-medium { color: #ffc107; }
.stress-high { color: #dc3545; }

.risk-minimal, .risk-low { color: #28a745; }
.risk-medium { color: #ffc107; }
.risk-high, .risk-critical { color: #dc3545; }

/* Privacy Section */
.privacy-section {
    margin-bottom: 80px;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.privacy-grid .privacy-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.privacy-grid .privacy-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.privacy-grid .privacy-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
    color: #6b7280;
}

.privacy-grid .privacy-card h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.privacy-grid .privacy-card p {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Features Section */
.features-section {
    margin-bottom: 80px;
}

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

.feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
    color: #6b7280;
}

.feature-card h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Results Section */
.results-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 80px;
    border: 1px solid #e5e7eb;
}

.results-overview {
    margin-bottom: 48px;
    text-align: center;
}

.results-overview h4 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 24px;
    font-weight: 600;
}

.overview-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.overview-stat {
    text-align: center;
}

.overview-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.overview-stats .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

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

.result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
}

.result-card h5 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sentiment-display, .stress-display {
    text-align: center;
}

.sentiment-score, .stress-score {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.sentiment-label, .stress-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cultural-factors {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cultural-factor {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.factor-name {
    font-weight: 500;
    text-transform: capitalize;
}

.factor-count {
    color: #666;
    font-size: 0.9rem;
}

/* Timeline Section */
.timeline-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.timeline-section h4 {
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-placeholder {
    text-align: center;
    padding: 20px;
}

.timeline-data {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-point {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.timeline-date {
    font-weight: 600;
    color: #333;
}

.timeline-sentiment, .timeline-stress {
    color: #666;
}

/* Recommendations Section */
.recommendations-section {
    margin-top: 40px;
    padding: 30px;
    background: #e8f5e8;
    border-radius: 12px;
    border: 1px solid #c3e6c3;
}

.recommendations-section h4 {
    color: #2c5f2c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #25D366;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

/* Footer */
.footer {
    background: #2C3E50;
    color: white;
    border-top: 1px solid #e5e7eb;
    padding: 48px 0;
    margin-top: 80px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-text {
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-info p {
    color: #6b7280;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.footer-info small {
    color: #9ca3af;
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: #1a1a1a;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #25D366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Error Message */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
    z-index: 1000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.error-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.error-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Participant Analysis Styles */
.participant-analysis-section {
    margin: 48px 0;
    padding: 0;
    background: transparent;
}

.participant-analysis-section h4 {
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}

.section-description {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
}

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

.participant-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 100%);
    border-radius: 16px;
    padding: 0;
    border: 2px solid #FFE5DB;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(250, 86, 60, 0.06);
}

.participant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(250, 86, 60, 0.12);
    border-color: #FEB8A3;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF0EB 100%);
}

.participant-card.risk-high {
    border-left: 6px solid #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.participant-card.risk-medium {
    border-left: 6px solid #f59e0b;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.participant-card.risk-low {
    border-left: 6px solid #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.participant-header {
    background: linear-gradient(135deg, #FFF8F5 0%, #FEF2F2 100%);
    padding: 24px 28px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #FFE5DB;
}

.participant-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.participant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FA563C 0%, #FF8C00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(250, 86, 60, 0.25);
}

.participant-details {
    flex: 1;
}

.participant-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.025em;
}

.participant-state {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-block;
}

.state-positive { 
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); 
    color: #166534; 
    box-shadow: 0 2px 4px rgba(22, 101, 52, 0.1);
}
.state-stable { 
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); 
    color: #475569; 
    box-shadow: 0 2px 4px rgba(71, 85, 105, 0.1);
}
.state-stressed { 
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); 
    color: #92400e; 
    box-shadow: 0 2px 4px rgba(146, 64, 14, 0.1);
}
.state-negative { 
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); 
    color: #991b1b; 
    box-shadow: 0 2px 4px rgba(153, 27, 27, 0.1);
}
.state-distressed { 
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%); 
    color: #7f1d1d; 
    box-shadow: 0 2px 4px rgba(127, 29, 29, 0.15);
}

.risk-indicator {
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.risk-high { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
    color: white; 
}
.risk-medium { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); 
    color: white; 
}
.risk-low { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
    color: white; 
}

.participant-stats {
    padding: 28px;
    margin: 0;
    background: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-item {
    background: linear-gradient(135deg, #FFF8F5 0%, #FEF2F2 100%);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #FFE5DB;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 86, 60, 0.1);
    background: linear-gradient(135deg, #FFF0EB 0%, #FFEEE8 100%);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
    letter-spacing: -0.025em;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cultural-indicators,
.stress-messages {
    margin-bottom: 20px;
    padding: 0 28px;
}

.indicators-label,
.stress-label {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicators-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicators-label svg {
    width: 18px;
    height: 18px;
    color: #FA563C;
}

.stress-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stress-label svg {
    width: 18px;
    height: 18px;
    color: #FFD93D;
}

.indicators-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cultural-tag {
    font-size: 0.75rem;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #B91C1C;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: capitalize;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(185, 28, 28, 0.1);
    border: 1px solid #FECACA;
}

.stress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stress-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
    transition: all 0.2s ease;
}

.stress-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.stress-date {
    font-size: 0.75rem;
    color: #92400e;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stress-text {
    font-size: 0.875rem;
    color: #451a03;
    display: block;
    margin-bottom: 8px;
    font-style: italic;
    line-height: 1.5;
}

.stress-score {
    font-size: 0.75rem;
    color: #92400e;
    font-weight: 700;
    background: rgba(146, 64, 14, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.alert-section {
    margin: 20px 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.alert-message {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #7f1d1d;
    font-weight: 600;
}

.alert-message i {
    font-size: 1.125rem;
    color: #ef4444;
}

.group-insights {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-top: 32px;
}

.group-insights h5 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}

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

.group-stat {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 24px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.group-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.group-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.group-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-header h3 {
        font-size: 1.8rem;
    }
    
    .header-content {
        gap: 16px;
        min-height: 50px;
    }
    
    .logo {
        gap: 12px;
    }
    
    .brand-logos {
        gap: 8px;
    }
    
    .betterspace-logo {
        height: 32px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .brand-text h1 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 0.65rem;
    }
    
    .header-stats {
        gap: 10px;
    }
    
    .stat-value {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .footer-branding {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .features-grid,
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .results-grid,
    .participants-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-actions {
        flex-direction: column;
    }
    
    .timeline-point {
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }
    
    .participant-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .group-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Enhanced Mobile Responsive Design - Additional Breakpoints */

/* Mobile First - Small Phones (320px-479px) */
@media (max-width: 479px) {
    /* Global Container */
    .container {
        padding: 0 8px;
        max-width: 100%;
    }
    
    /* Upload Area Mobile Optimization */
    .upload-area {
        padding: 16px 12px;
        margin: 12px 0;
        border-radius: 16px;
        min-height: 100px;
    }
    
    .upload-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .upload-text h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .upload-text p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Buttons Mobile Optimization */
    .btn-primary, .btn-secondary {
        padding: 12px 16px;
        font-size: 0.85rem;
        border-radius: 12px;
        width: 100%;
        max-width: 280px;
        margin: 6px auto;
        display: block;
        min-height: 44px; /* Touch target size */
    }
    
    .btn-group {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        margin: 16px 0;
    }
    
    /* Analysis Options Mobile */
    .analysis-options {
        padding: 12px;
        margin: 12px 0;
        border-radius: 16px;
    }
    
    .option-group {
        margin-bottom: 12px;
    }
    
    .option-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
        display: block;
    }
    
    .relationship-options {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .relationship-option {
        padding: 8px 6px;
        font-size: 0.75rem;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 10px;
    }
    
    /* Analysis Grid Mobile */
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 4px;
    }
    
    .metric-card {
        padding: 14px;
        border-radius: 14px;
        text-align: center;
    }
    
    .metric-card h4 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .metric-value {
        font-size: 1.6rem;
        margin-bottom: 4px;
    }
    
    .metric-label {
        font-size: 0.75rem;
    }
    
    /* Progress Mobile */
    .progress-container {
        padding: 12px;
        margin: 12px 0;
        border-radius: 12px;
    }
    
    .progress-bar {
        height: 6px;
        border-radius: 3px;
        margin: 8px 0;
    }
    
    .progress-text {
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* Results Mobile */
    .results-section {
        padding: 12px;
        margin: 12px 0;
        border-radius: 16px;
    }
    
    .results-header h3 {
        font-size: 1.2rem;
        margin-bottom: 6px;
        text-align: center;
    }
    
    /* Participant Analysis Mobile */
    .participant-analysis {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .participant-card {
        padding: 14px;
        border-radius: 14px;
    }
    
    .participant-card h5 {
        font-size: 0.95rem;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .participant-stats {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-top: 8px;
    }
    
    .stat-item {
        text-align: center;
        padding: 6px;
        background: rgba(0,0,0,0.03);
        border-radius: 8px;
    }
    
    .stat-value {
        font-size: 1.1rem;
        margin-bottom: 2px;
        font-weight: 600;
    }
    
    .stat-name {
        font-size: 0.7rem;
        opacity: 0.8;
    }
    
    /* Recommendations Mobile */
    .recommendations {
        padding: 12px;
    }
    
    .recommendation {
        padding: 10px;
        margin-bottom: 6px;
        font-size: 0.8rem;
        border-radius: 10px;
        line-height: 1.3;
    }
}

/* Large Phones (480px-767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        padding: 0 12px;
    }
    
    .upload-area {
        padding: 18px;
        min-height: 120px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: auto;
        max-width: none;
        min-width: 140px;
    }
    
    .btn-group {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .relationship-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .relationship-option {
        padding: 10px 8px;
        font-size: 0.8rem;
        min-height: 42px;
    }
    
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .participant-analysis {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .participant-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Touch-Friendly Interactions */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects for touch devices */
    .btn-primary:hover,
    .btn-secondary:hover,
    .relationship-option:hover,
    .metric-card:hover,
    .participant-card:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Add touch feedback */
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .relationship-option:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    /* Ensure touch targets are large enough */
    .relationship-option,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
    }
    
    .upload-area {
        min-height: 120px;
        cursor: pointer;
    }
    
    .upload-area:active {
        transform: scale(0.99);
        opacity: 0.95;
    }
}

/* Landscape Orientation Optimizations */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-content {
        padding: 16px 0;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
    
    .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .upload-area {
        padding: 12px;
        margin: 10px 0;
        min-height: 80px;
    }
    
    .upload-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
    
    .analysis-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .relationship-options {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .relationship-option {
        padding: 6px 4px;
        font-size: 0.7rem;
        min-height: 36px;
    }
    
    .btn-group {
        margin: 10px 0;
        gap: 8px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

/* Offline mode indicator */
.offline-indicator {
    background: linear-gradient(135deg, #ff9a56, #ffad56);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 154, 86, 0.3);
}

/* Enhanced Timeline Section */
.timeline-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    margin: 24px 0;
    color: #334155;
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(100,116,139,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 1;
    pointer-events: none;
}

.timeline-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.timeline-header h4 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.timeline-container {
    position: relative;
    z-index: 1;
}

.timeline-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.timeline-stat {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.timeline-stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.sentiment-positive {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.stat-icon.stress-high {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
}

.stat-icon.neutral {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #1e293b;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-journey {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.timeline-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    color: #334155;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.timeline-card-date {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.date-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

.date-month, .date-year {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sentiment-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sentiment-emoji {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.sentiment-details, .stress-details {
    text-align: center;
}

.sentiment-score, .stress-score {
    display: block;
    font-weight: 700;
    font-size: 16px;
}

.sentiment-label, .stress-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentiment-positive .sentiment-score {
    color: #10b981;
}

.sentiment-negative .sentiment-score {
    color: #ef4444;
}

.sentiment-neutral .sentiment-score {
    color: #64748b;
}

.stress-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stress-bar-container {
    width: 8px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.stress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 4px;
    transition: all 0.5s ease;
}

.stress-bar.stress-low {
    background: linear-gradient(to top, #10b981, #34d399);
}

.stress-bar.stress-medium {
    background: linear-gradient(to top, #f59e0b, #fbbf24);
}

.stress-bar.stress-high {
    background: linear-gradient(to top, #f97316, #fb923c);
}

.stress-bar.stress-extreme {
    background: linear-gradient(to top, #ef4444, #f87171);
}

.risk-pulse {
    position: absolute;
    top: 16px;
    right: 16px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.risk-low .pulse-dot {
    background: #10b981;
    animation: pulse-green 2s infinite;
}

.risk-medium .pulse-dot {
    background: #f59e0b;
    animation: pulse-orange 2s infinite;
}

.risk-high .pulse-dot {
    background: #ef4444;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.timeline-card-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 12px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.timeline-card:hover .timeline-card-hover {
    transform: translateY(0);
}

.hover-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.hover-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.hover-stat i {
    width: 14px;
    height: 14px;
}

.timeline-show-more {
    text-align: center;
    margin: 24px 0;
}

.show-more-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.show-more-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.timeline-insights {
    margin-top: 32px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.insight-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.insight-content h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.insight-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

/* Enhanced Mobile Responsive Design */

/* Mobile First - Small Phones (320px-479px) */
@media (max-width: 479px) {
    .timeline-section {
        padding: 16px 12px;
        margin: 12px 0;
        border-radius: 16px;
    }
    
    .timeline-header h4 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .timeline-subtitle {
        font-size: 14px;
    }
    
    .timeline-stats-overview {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .timeline-stat {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .timeline-journey {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .timeline-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .timeline-card-date {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .date-day {
        font-size: 20px;
    }
    
    .date-month, .date-year {
        font-size: 11px;
    }
    
    .timeline-card-content {
        flex-direction: row;
        justify-content: space-around;
        gap: 16px;
        margin-bottom: 12px;
    }
    
    .sentiment-emoji {
        font-size: 20px;
    }
    
    .sentiment-score, .stress-score {
        font-size: 14px;
    }
    
    .sentiment-label, .stress-label {
        font-size: 10px;
    }
    
    .stress-bar-container {
        width: 6px;
        height: 32px;
    }
    
    .risk-pulse {
        top: 12px;
        right: 12px;
    }
    
    .pulse-dot {
        width: 10px;
        height: 10px;
    }
    
    .timeline-card-hover {
        position: static;
        transform: none;
        background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        color: #334155;
        border-top: 1px solid #e2e8f0;
        padding: 12px;
        margin-top: 12px;
        border-radius: 0 0 16px 16px;
    }
    
    .timeline-card:hover .timeline-card-hover {
        transform: none;
    }
    
    .hover-stats {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .hover-stat {
        justify-content: center;
        font-size: 11px;
    }
    
    .hover-stat i {
        width: 12px;
        height: 12px;
    }
    
    .show-more-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .insight-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    
    .insight-icon {
        font-size: 24px;
    }
    
    .insight-content h5 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .insight-content p {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Large Phones (480px-767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .timeline-section {
        padding: 20px 16px;
        margin: 16px 0;
    }
    
    .timeline-header h4 {
        font-size: 22px;
    }
    
    .timeline-stats-overview {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .timeline-stat:last-child {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .timeline-journey {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .timeline-card-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
    }
    
    .timeline-card-hover {
        position: absolute;
        transform: translateY(100%);
    }
    
    .timeline-card:hover .timeline-card-hover {
        transform: translateY(0);
    }
    
    .hover-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }
    
    .insight-card {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
}

/* Tablets (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .timeline-section {
        padding: 28px 24px;
    }
    
    .timeline-stats-overview {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .timeline-journey {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .timeline-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        border-color: #e2e8f0;
    }
    
    .timeline-card-hover {
        position: static;
        transform: none;
        background: rgba(248, 250, 252, 0.8);
        color: #334155;
        border-top: 1px solid #e2e8f0;
        margin-top: 12px;
    }
    
    .timeline-stat:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .show-more-btn:hover {
        transform: none;
        background: #f8fafc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .timeline-card::before {
        height: 2px;
    }
    
    .pulse-dot {
        border: 0.5px solid rgba(255, 255, 255, 0.3);
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .timeline-section {
        padding: 16px 20px;
    }
    
    .timeline-header h4 {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .timeline-subtitle {
        font-size: 13px;
    }
    
    .timeline-stats-overview {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .timeline-stat {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .timeline-journey {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .timeline-card {
        padding: 12px;
    }
    
    .insight-card {
        padding: 16px;
        flex-direction: row;
        gap: 12px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .timeline-card,
    .timeline-stat,
    .show-more-btn,
    .timeline-card-hover {
        transition: none;
    }
    
    .pulse-dot {
        animation: none;
    }
    
    @keyframes pulse-green,
    @keyframes pulse-orange,
    @keyframes pulse-red {
        0%, 100% { box-shadow: none; }
        50% { box-shadow: none; }
    }
}
