/* WaitSmart AI - Premium Healthcare Waiting List Management Styles */

:root {
    /* Medical/Healthcare Color Palette */
    --primary-blue: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2847;
    
    --success-green: #059669;
    --success-light: #10b981;
    --success-bg: rgba(5, 150, 105, 0.1);
    
    --warning-amber: #d97706;
    --warning-light: #f59e0b;
    --warning-bg: rgba(217, 119, 6, 0.1);
    
    --danger-red: #dc2626;
    --danger-light: #ef4444;
    --danger-bg: rgba(220, 38, 38, 0.1);
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    
    --border-color: #e2e8f0;
    --border-light: #f0f4f8;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.25rem; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Return Home Button */
.return-home-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.return-home-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
}

.return-home-btn svg {
    transition: transform 0.3s ease;
}

.return-home-btn:hover svg {
    transform: translateX(-3px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 10px;
}

.logo-ai {
    color: var(--success-green);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 2px;
    border: 1px solid var(--border-color);
}

.lang-option {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 6px;
    font-size: 0.875rem;
}

.lang-option.active {
    background: white;
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.lang-option:hover:not(.active) {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

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

.btn-urgent:hover {
    background: var(--danger-light);
}

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

.btn-white-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(26, 54, 93, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 54, 93, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    top: -300px;
    right: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--success-green);
    bottom: -200px;
    left: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--danger-bg);
    color: var(--danger-red);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--success-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.25rem;
}

.stat-trend {
    font-size: 0.75rem;
    color: var(--success-green);
    margin-top: 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Problem Section */
.problem-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--danger-red);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.problem-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse .feature-content {
    direction: ltr;
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
}

.feature-content h3 {
    margin-bottom: 1rem;
}

.feature-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
}

/* Feature Visuals */
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-preview {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
}

.mini-stat {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.mini-stat.urgent {
    background: var(--danger-bg);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.mini-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mini-chart {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 60px;
    margin-top: 1rem;
}

.chart-bar {
    flex: 1;
    background: var(--primary-blue);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.chart-bar:hover {
    background: var(--primary-light);
}

.ai-preview {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.ai-score {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    border: 8px solid var(--danger-red);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--danger-bg);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--danger-red);
}

.score-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.ai-factors {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.factor {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.network-preview {
    position: relative;
    width: 300px;
    height: 300px;
}

.network-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.network-node.main {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--success-green);
}

.network-node:nth-child(2) {
    top: 20%;
    left: 20%;
}

.network-node:nth-child(3) {
    top: 20%;
    right: 20%;
}

.network-node:nth-child(4) {
    bottom: 20%;
    left: 30%;
}

.network-line {
    position: absolute;
    height: 2px;
    background: var(--border-color);
    transform-origin: left center;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Demo Section */
.demo-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.demo-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.demo-nav-item {
    background: white;
    border: 2px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.demo-nav-item:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.demo-nav-item.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.nav-icon {
    font-size: 1.25rem;
}

.demo-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.demo-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard View */
.dashboard-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.metric-card.urgent {
    background: var(--danger-bg);
    border-color: rgba(220, 38, 38, 0.2);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--success-green);
}

.metric-badge {
    background: var(--danger-red);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.metric-subtext {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.metric-progress {
    margin-top: 0.5rem;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--success-green);
    transition: width 0.5s ease;
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    height: 350px;
}

.chart-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.chart-card canvas {
    max-height: 280px !important;
    height: 280px !important;
}

.alerts-section h4 {
    margin-bottom: 1rem;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
}

.alert-item.critical {
    border-left-color: var(--danger-red);
    background: var(--danger-bg);
}

.alert-item.warning {
    border-left-color: var(--warning-amber);
    background: var(--warning-bg);
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-action {
    color: var(--primary-blue);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.alert-action:hover {
    text-decoration: underline;
}

/* Prioritization View */
.prioritization-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.priority-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.patient-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.patient-card {
    display: grid;
    grid-template-columns: auto 1fr 2fr auto;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.patient-card.high-priority {
    border-color: var(--danger-red);
    background: var(--danger-bg);
}

.patient-card.medium-priority {
    border-color: var(--warning-amber);
    background: var(--warning-bg);
}

.patient-score {
    display: flex;
    align-items: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    border: 4px solid;
}

.score-circle.high {
    background: var(--danger-bg);
    color: var(--danger-red);
    border-color: var(--danger-red);
}

.score-circle.medium {
    background: var(--warning-bg);
    color: var(--warning-amber);
    border-color: var(--warning-amber);
}

.patient-info h4 {
    margin-bottom: 0.5rem;
}

.patient-details {
    display: flex;
    gap: 1rem;
}

.detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    background: white;
    border-radius: 4px;
}

.ai-reasoning {
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.ai-reasoning h5 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.ai-reasoning ul {
    list-style: none;
    font-size: 0.875rem;
}

.ai-reasoning li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.ai-reasoning li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

.patient-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

/* Coordination View */
.coordination-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.map-container {
    margin: 2rem 0;
}

.hospital-map {
    position: relative;
    height: 400px;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.hospital-marker {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
}

.hospital-marker::before {
    content: "🏥";
}

.hospital-marker.main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-color: var(--primary-blue);
    background: var(--primary-blue);
}

.hospital-marker.main::before {
    filter: brightness(0) invert(1);
}

.hospital-marker.available {
    border-color: var(--success-green);
}

.hospital-marker.full {
    border-color: var(--danger-red);
    background: var(--danger-bg);
}

.hospital-marker:nth-child(2) {
    top: 30%;
    left: 20%;
}

.hospital-marker:nth-child(3) {
    top: 60%;
    right: 25%;
}

.hospital-marker:nth-child(4) {
    bottom: 20%;
    left: 35%;
}

.marker-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: pulseMarker 2s infinite;
}

@keyframes pulseMarker {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.hospital-marker:hover {
    transform: scale(1.1);
    z-index: 10;
}

.hospital-marker:hover::after {
    content: attr(data-name) "\A" "Capaciteit: " attr(data-capacity) "\A" "Wachttijd: " attr(data-wait);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: pre;
    box-shadow: var(--shadow-lg);
}

.map-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 20px;
    height: 20px;
    border: 3px solid;
    border-radius: 50%;
}

.legend-color.available {
    border-color: var(--success-green);
}

.legend-color.full {
    border-color: var(--danger-red);
}

.transfer-suggestions {
    margin-top: 2rem;
}

.suggestion-card {
    background: var(--success-bg);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.suggestion-badge {
    background: var(--success-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.suggestion-savings {
    color: var(--success-green);
    font-weight: 600;
}

/* Analytics View */
.analytics-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.forecast-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
}

.forecast-card canvas {
    max-height: 250px !important;
    height: 250px !important;
}

.forecast-insight {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--warning-bg);
    border-radius: 8px;
    margin-top: 1rem;
    align-items: flex-start;
}

.insight-icon {
    font-size: 1.5rem;
}

.forecast-insight p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.seasonal-heatmap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.heatmap-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.month {
    width: 40px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.heat-cell {
    flex: 1;
    height: 30px;
    border-radius: 4px;
    transition: var(--transition);
}

.heat-cell.high {
    background: var(--danger-red);
    opacity: 0.8;
}

.heat-cell.medium {
    background: var(--warning-amber);
    opacity: 0.6;
}

.heat-cell.low {
    background: var(--success-green);
    opacity: 0.4;
}

/* ROI Section */
.roi-section {
    padding: 80px 0;
}

.roi-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.roi-header {
    text-align: center;
    margin-bottom: 3rem;
}

.roi-header h2 {
    margin-bottom: 0.5rem;
}

.roi-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.roi-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roi-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.roi-input-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.roi-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
}

.roi-value {
    display: inline-block;
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 0.5rem;
}

.roi-results {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
}

.roi-results h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.roi-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.roi-metric:last-child {
    border-bottom: none;
}

.roi-metric.highlight {
    background: var(--success-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.roi-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.roi-breakdown {
    margin: 2rem 0;
}

.roi-payback {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.payback-metric {
    text-align: center;
}

.payback-metric .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.payback-metric .value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--success-green);
}

/* Success Section */
.success-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.success-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.success-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.success-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.success-metrics .metric {
    text-align: center;
}

.success-metrics .value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--success-green);
}

.success-metrics .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

blockquote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-author {
    display: flex;
    flex-direction: column;
}

.success-author strong {
    color: var(--text-primary);
}

.success-author span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        margin-bottom: 1rem;
    }
    
    .compliance-badges {
        justify-content: center;
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

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

.link-group h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.link-group a:hover {
    color: white;
}

.compliance-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding: 1.5rem 1rem 1rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-block {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-block.reverse {
        direction: ltr;
    }
    
    .roi-calculator {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .lang-switcher {
        padding: 1px;
    }
    
    .lang-option {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    /* Return button adjustments for mobile */
    .return-home-btn {
        bottom: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .return-home-btn span {
        display: none; /* Hide text on mobile, show only arrow */
    }
    
    .btn-small {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .demo-nav {
        flex-wrap: wrap;
    }
    
    .demo-nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .patient-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .forecast-grid {
        grid-template-columns: 1fr;
    }
    
    .success-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }