:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.2);
    --success-color: #4ade80;
    --warning-color: #facc15;
    --font-main: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 800px;
}

/* Glassmorphism Header */
.glass-header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
}

h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* Grid Layout */
.current-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.main-stat {
    grid-column: span 2;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 1rem;
}

.value-large {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.full-width {
    grid-column: span 2;
}

.stat-icon {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    width: 24px;
    height: 24px;
}

.label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.value {
    font-size: 1.25rem;
    font-weight: 600;
}

.sub-value,
.sub-stat {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--card-border);
    padding-left: 1.5rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.95rem;
    /* Adjust based on padding/border */
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    border: 2px solid var(--bg-color);
}

.timeline-time {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
}

/* Raw Code */
.raw-data-container {
    margin-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    padding: 0;
}

.raw-code {
    display: block;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--warning-color);
    margin-top: 0.5rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.hidden {
    display: none;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .current-grid {
        grid-template-columns: 1fr;
    }

    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* Grid Layout */
.current-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.main-stat {
    grid-column: span 2;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 1rem;
}

.value-large {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.full-width {
    grid-column: span 2;
}

.stat-icon {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    width: 24px;
    height: 24px;
}

.label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.value {
    font-size: 1.25rem;
    font-weight: 600;
}

.sub-value,
.sub-stat {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--card-border);
    padding-left: 1.5rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.95rem;
    /* Adjust based on padding/border */
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    border: 2px solid var(--bg-color);
}

.timeline-time {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
}

/* Raw Code */
.raw-data-container {
    margin-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    padding: 0;
}

.raw-code {
    display: block;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--warning-color);
    margin-top: 0.5rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.hidden {
    display: none;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .current-grid {
        grid-template-columns: 1fr;
    }

    .main-stat,
    .full-width {
        grid-column: span 1;
    }
}

.time-badge {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
}