/* 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;
    }
}
