:root {
    --primary-green: #008a02;
    --primary-orange: #ff5e00;
    --bg-dark: #0a0c10;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-gradient: linear-gradient(135deg, var(--primary-green) 0%, #00b303 100%);
    --orange-gradient: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c00 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

.glass-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem 1rem;
    z-index: 1000;
}

.logo-container {
    padding: 0.5rem 1rem 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo {
    max-width: 180px;
    height: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(0, 138, 2, 0.2));
}

.sidebar-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 138, 2, 0.4));
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background: var(--card-bg);
    color: var(--text-main);
    transform: translateX(5px);
}

.nav-item.active {
    border-left: 4px solid var(--primary-green);
    background: linear-gradient(90deg, rgba(0, 138, 2, 0.1) 0%, rgba(0, 138, 2, 0) 100%);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

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

.welcome-text h1 {
    font-size: 2rem;
    font-weight: 700;
}

.welcome-text p {
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 8px 0;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-delta {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.delta-up {
    color: #2ecc71;
}

.delta-down {
    color: #e74c3c;
}

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

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

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 138, 2, 0.4);
}

.btn-orange {
    background: var(--orange-gradient);
    color: white;
}

.btn-orange:hover {
    box-shadow: 0 0 20px rgba(255, 94, 0, 0.4);
}

/* Supervision View */
.pistes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.piste-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

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

.status-indicator {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-available {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-occupied {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.progress-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 1s linear;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.6s ease-out forwards;
}