:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --font-family: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

header {
    text-align: center;
    margin-bottom: 10px;
}

h1 {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

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

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Current Price Section */
.current-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.price-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, rgba(15, 23, 42, 0.4) 70%);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow); }
    100% { box-shadow: 0 0 20px var(--accent-glow); }
}

.price-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-content .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.price-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.price-content .unit {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.status-low { color: var(--success-color); border-color: var(--success-color); background: rgba(74, 222, 128, 0.1); }
.status-medium { color: var(--warning-color); border-color: var(--warning-color); background: rgba(251, 191, 36, 0.1); }
.status-high { color: var(--danger-color); border-color: var(--danger-color); background: rgba(248, 113, 113, 0.1); }

/* Chart Section */
.chart-section h3, .list-section h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

/* List Section */
.list-section {
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.list-header {
    display: flex;
    justify-content: space-between;
    padding: 0 16px 8px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price-list {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
    margin-top: 8px;
    padding-right: 4px; /* Space for scrollbar */
}

/* Custom Scrollbar */
.price-list::-webkit-scrollbar {
    width: 6px;
}
.price-list::-webkit-scrollbar-track {
    background: transparent;
}
.price-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.price-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.price-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.price-item.current {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.price-item .time {
    font-weight: 500;
}

.price-item .price {
    font-weight: 600;
}

.price-low { color: var(--success-color); }
.price-medium { color: var(--warning-color); }
.price-high { color: var(--danger-color); }

footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-bottom: 10px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}
