/* DESIGN SYSTEM - AEDeportivo (SOLID & RESPONSIVE) */
:root {
    --primary: #177f4f;
    --primary-hover: #136a42;
    --bg-main: #09090b;
    --bg-card: #121214;
    --bg-nav: #000000;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    
    /* Fluid Typography - Scales with viewport */
    --text-xs: clamp(0.7rem, 2vw, 0.75rem);
    --text-sm: clamp(0.8rem, 2.5vw, 0.875rem);
    --text-base: clamp(0.9rem, 3vw, 1rem);
    --text-lg: clamp(1rem, 4vw, 1.15rem);
    --text-xl: clamp(1.2rem, 5vw, 1.5rem);
    --text-2xl: clamp(1.4rem, 6vw, 2rem);
    
    --radius: 1rem;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Archivo', sans-serif;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: clamp(1rem, 4vw, 2rem);
    position: relative;
}

/* Solid Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-nav);
    border-right: 1px solid var(--border);
    transition: transform 0.3s var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 0.75rem;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-link.active {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: rgba(23, 127, 79, 0.05);
}

/* Sidebar Toggle for Mobile */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        inset: 0;
        right: auto;
        transform: translateX(-100%);
        z-index: 100;
    }
    .sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 90;
    display: none;
}

.sidebar-overlay.visible { display: block; }

/* Solid Containers */
.card-solid {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Header Sticky */
.page-header {
    position: sticky;
    top: 0;
    background: rgba(9, 9, 11, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 40;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.table-solid {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.table-solid th {
    background: rgba(255,255,255,0.03);
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 900;
    color: var(--text-dim);
}

.table-solid td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}

.table-solid tr:last-child td { border-bottom: none; }

/* Buttons */
.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: white;
    font-size: var(--text-xs);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-solid:hover { background: var(--primary-hover); }

/* Typography Helpers */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); font-weight: 900; font-style: italic; }
.text-xl { font-size: var(--text-xl); font-weight: 900; font-style: italic; }
.text-2xl { font-size: var(--text-2xl); font-weight: 900; font-style: italic; }

/* Grid Helpers */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .grid-responsive { grid-template-columns: 1fr; }
}
/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Sidebar Open (Mobile) */
.sidebar.open, .sidebar-open { transform: translateX(0) !important; }
