/* src/css/style.css - Hoja Maestra Global AClubeAR */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   FORMULARIOS GLOBALES (INPUTS HOMOGÉNEOS)
   ========================================== */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.88rem;
}

/* Regla maestra para TODOS los inputs sin excepción */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #111827;
    background-color: #ffffff;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
    height: auto;
    min-height: 80px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

input:disabled,
select:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

/* Checkboxes y Radios limpios */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #ea580c;
    cursor: pointer;
    margin: 0;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 1.75rem;
    background-color: #ea580c;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #c2410c;
}

.btn-primary:active {
    transform: scale(0.99);
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 4px;
    background-color: #4b5563;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-sm:hover {
    background-color: #374151;
}

/* ==========================================
   ALERTAS
   ========================================== */
.error {
    color: #991b1b;
    background-color: #fee2e2;
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

.alert-success {
    color: #166534;
    background-color: #dcfce7;
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border: 1px solid #bbf7d0;
}

/* ==========================================
   LOGIN
   ========================================== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-logo {
    max-width: 180px;
    margin-bottom: 1rem;
}

.login-box h2 {
    margin-top: 0;
    color: #111827;
    margin-bottom: 1.5rem;
}

.cf-turnstile-login-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

/* ==========================================
   BARRA DE NAVEGACIÓN (NAVBAR)
   ========================================== */
.navbar {
    background-color: #111827;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 60px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    height: 35px;
    margin-right: 1.5rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: #d1d5db;
    padding: 18px 12px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.dropbtn:hover {
    color: #ea580c;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 50;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.nav-right .dropdown-content {
    left: auto;
    right: 0;
}

.dropdown-content a {
    color: #374151;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-content a:hover {
    background-color: #fff7ed;
    color: #ea580c;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.text-danger {
    color: #dc2626 !important;
    font-weight: 600;
}

/* ==========================================
   CONTENEDORES PRINCIPALES
   ========================================= */
.dashboard-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
    margin: 2rem auto;
    max-width: 1100px;
    border: 1px solid #e5e7eb;
}

.profile-container {
    background: #ffffff;
    padding: 2.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
    margin: 2rem auto;
    max-width: 650px;
    border: 1px solid #e5e7eb;
}

/* ==========================================
   TABLAS
   ========================================== */
.table-responsive {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.data-table th {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table tr:hover {
    background-color: #f8fafc;
}

.badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-admin { background-color: #fee2e2; color: #991b1b; }
.badge-user { background-color: #e0f2fe; color: #075985; }
.badge-blocked { background-color: #fef08a; color: #854d0e; }
