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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.mountain-bg {
    position: fixed;
    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 1200 600"><path d="M0,400 L300,200 L600,300 L900,100 L1200,250 L1200,600 L0,600 Z" fill="rgba(99,102,241,0.05)"/></svg>') no-repeat center bottom;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

main {
    position: relative;
    z-index: 1;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.prediction-card {
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-ready {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.status-pending {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.status-waiting {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.prediction-card h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

.prediction-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
}

.prediction-icon {
    font-size: 4rem;
}

.prediction-text {
    font-size: 2rem;
    font-weight: 600;
}

.confidence-meter {
    margin-bottom: 2rem;
}

.confidence-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confidence-bar {
    width: 100%;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 1rem;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.confidence-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.confidence-value {
    text-align: right;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.feedback-section {
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.feedback-section h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feedback-display {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feedback-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.next-prediction {
    text-align: center;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.75rem;
    color: var(--text-secondary);
}

.next-prediction strong {
    color: var(--text-primary);
}

.no-prediction {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.info-card {
    text-align: center;
}

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

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.info-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

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

    header h1 {
        font-size: 2rem;
    }

    .prediction-display {
        flex-direction: column;
        text-align: center;
    }

    .prediction-text {
        font-size: 1.5rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}
