:root {
    --bg-color: #0b0f19;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #0ea5e9;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Animated Orbs */
.background-elements {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px; height: 400px;
    background: #0284c7;
    top: -10%; left: -10%;
}
.orb-2 {
    width: 300px; height: 300px;
    background: #6366f1;
    bottom: -10%; right: -5%;
    animation-delay: -5s;
}
.orb-3 {
    width: 250px; height: 250px;
    background: #be123c;
    top: 40%; left: 30%;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* Main Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(14, 165, 233, 0.2);
    color: var(--accent-color);
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.highlight {
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Drop Zone */
.drop-zone {
    padding: 50px;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent-color);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.drop-icon {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.file-input {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%; height: 100%;
}

/* Stats Overview */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
}

.stat-card {
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Calendar Grid */
.tracker-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.workout-card {
    padding: 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workout-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Status Indicators */
.status-indicator {
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--text-secondary);
}

.workout-card.status-done .status-indicator { background: var(--success); }
.workout-card.status-redline .status-indicator { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.workout-card.status-pending .status-indicator { background: var(--glass-border); }

.card-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    margin-top: 5px;
    margin-right: 80px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-details {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.card-target {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

.status-badge {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-done { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-redline { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.badge-pending { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
