/* =========================================
   BADALONA FUTSAL IRIS - TEMA VISUAL v2.0
   ========================================= */

:root {
    /* Colores Oficiales */
    --iris-green: #40B505;
    --iris-blue: #20249E;
    --iris-yellow: #FFD700;
    --iris-orange: #FF6600;
    
    /* Fondo y Superficies */
    --bg-main: #0F172A;        /* Azul Noche Profundo */
    --bg-card: rgba(30, 41, 59, 0.85); /* Cristal Oscuro */
    --bg-card-hover: rgba(51, 65, 85, 0.95);
    
    /* Tipografía */
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    
    /* Bordes y Sombras */
    --border-accent: var(--iris-green);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --gradient-primary: linear-gradient(135deg, var(--iris-green) 0%, var(--iris-blue) 100%);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding-bottom: 80px; /* Espacio para la barra inferior */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--iris-green) !important; }
.text-warning { color: var(--iris-yellow) !important; }
.text-info { color: var(--iris-blue) !important; }

/* =========================================
   CABECERA (HEADER)
   ========================================= */
.page-header {
    background: linear-gradient(180deg, var(--iris-blue) 0%, var(--bg-main) 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--iris-green);
    box-shadow: 0 4px 20px rgba(32, 36, 158, 0.4);
    margin-bottom: 20px;
}

.page-header-title {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: var(--text-main);
}

.page-subtitle {
    color: var(--iris-green);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* =========================================
   TARJETAS (CARDS) - EFECTO CRISTAL
   ========================================= */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--iris-green);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-left-color: var(--iris-yellow);
}

.card-header-custom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--iris-green);
    border-radius: 16px 16px 0 0;
}

.card-body {
    padding: 1.5rem;
    color: var(--text-main);
}

/* =========================================
   BOTONES
   ========================================= */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 15px rgba(64, 181, 5, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 181, 5, 0.5);
    opacity: 0.9;
    color: white;
}

.btn-success {
    background-color: var(--iris-green);
    border-color: var(--iris-green);
    color: white;
    border-radius: 12px;
    font-weight: 700;
}

.btn-outline-primary {
    color: var(--iris-green);
    border: 2px solid var(--iris-green);
    border-radius: 12px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--iris-green);
    color: white;
}

/* =========================================
   NAVEGACIÓN INFERIOR (BOTTOM BAR)
   ========================================= */
.bottom-nav {
    background-color: var(--bg-card) !important;
    border-top: 2px solid var(--iris-green);
    backdrop-filter: blur(15px);
    padding: 10px 0;
    z-index: 999;
}

.bottom-nav .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.bottom-nav .nav-link:hover, .bottom-nav .nav-link.active {
    color: var(--iris-green) !important;
}

.bottom-nav .icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 2px;
}

/* =========================================
   BADGES
   ========================================= */
.badge.bg-success {
    background-color: var(--iris-green) !important;
    box-shadow: 0 0 8px rgba(64, 181, 5, 0.4);
}

.badge.bg-primary {
    background-color: var(--iris-blue) !important;
    box-shadow: 0 0 8px rgba(32, 36, 158, 0.4);
}

.badge.bg-warning {
    background-color: var(--iris-yellow) !important;
    color: var(--bg-main);
    font-weight: 700;
}

/* =========================================
   FORMULARIOS
   ========================================= */
.form-control, .form-select {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: white !important;
    border-radius: 10px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--iris-green);
    box-shadow: 0 0 0 0.25rem rgba(64, 181, 5, 0.25);
    background-color: rgba(15, 23, 42, 0.9) !important;
}

.form-label {
    color: var(--iris-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--iris-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--iris-green); }