/* =====================================================
   ESTILOS GLOBALES SIMPLES - SuperBetMoney
   Fondo blanco, letras negras, limpio y profesional
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff !important;
    color: #1a202c !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* TEXTOS */
h1, h2, h3, h4, h5, h6,
.profile-name,
.stats-value,
.wallet-balance,
.notification-title {
    color: #1a202c !important;
}

p, span, div, label,
.profile-email,
.stats-label,
.notification-desc {
    color: #4a5568 !important;
}

/* CARDS Y CONTENEDORES */
.card,
.profile-card,
.stats-card,
.wallet-card,
.notification-card,
.menu-card,
.template-card {
    background: #ffffff !important;
    color: #1a202c !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* INPUTS Y FORMULARIOS */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    background: #ffffff !important;
    color: #1a202c !important;
    border: 2px solid #e2e8f0 !important;
    padding: 12px !important;
    font-size: 16px !important; /* Importante para móvil */
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    background: #ffffff !important;
    color: #1a202c !important;
    border-color: #667eea !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #a0aec0 !important;
}

/* LABELS */
.form-label,
label {
    color: #1a202c !important;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* BOTONES */
.btn {
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* TABLAS */
.table {
    background: #ffffff !important;
    color: #1a202c !important;
}

.table thead {
    background: #f8f9fa !important;
    color: #1a202c !important;
}

.table tbody tr {
    background: #ffffff !important;
    color: #1a202c !important;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody tr:hover {
    background: #f8f9fa !important;
}

/* ALERTS */
.alert {
    color: #1a202c !important;
    border: 1px solid;
}

.alert-success {
    background: #d1fae5 !important;
    border-color: #10b981 !important;
}

.alert-danger {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
}

.alert-warning {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
}

.alert-info {
    background: #dbeafe !important;
    border-color: #3b82f6 !important;
}

/* MODALS */
.modal-content {
    background: #ffffff !important;
    color: #1a202c !important;
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #ffffff !important;
}

.modal-body {
    background: #ffffff !important;
    color: #1a202c !important;
}

.modal-footer {
    background: #f8f9fa !important;
}

/* NAVEGACIÓN */
.navbar,
.nav,
header {
    background: #ffffff !important;
    color: #1a202c !important;
    border-bottom: 1px solid #e2e8f0;
}

.nav-link {
    color: #1a202c !important;
}

.nav-link:hover {
    color: #667eea !important;
}

/* FOOTER */
footer {
    background: #f8f9fa !important;
    color: #1a202c !important;
    border-top: 1px solid #e2e8f0;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* =====================================================
   FORMULARIOS DE LOGIN Y REGISTRO - MÓVIL OPTIMIZADO
   ===================================================== */

.auth-page {
    background: #f8f9fa !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.auth-container {
    background: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

/* IMPORTANTE: Permitir scroll en móvil */
.auth-form-wrapper {
    max-height: calc(100vh - 40px);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-right: 10px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c !important;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6b7280 !important;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    font-weight: 600;
    color: #1a202c !important;
    margin-bottom: 8px;
    display: block;
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 16px !important;
    font-size: 16px !important; /* Evita zoom en iOS */
    border-radius: 8px;
    border: 2px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #1a202c !important;
    transition: all 0.3s;
}

.auth-form .form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 24px;
}

.auth-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.auth-links a {
    color: #667eea !important;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* RESPONSIVE - MÓVIL */
@media (max-width: 768px) {
    .auth-page {
        padding: 10px;
        display: block;
        height: auto;
        min-height: 100vh;
    }
    
    .auth-container {
        padding: 24px;
        margin: 20px auto;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .auth-form-wrapper {
        max-height: none;
        overflow-y: visible;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-form .form-control {
        font-size: 16px !important; /* CRÍTICO para evitar zoom */
        padding: 12px 14px !important;
    }
    
    .auth-form .btn-submit {
        padding: 12px;
    }
}

/* FIX para iOS - Evitar zoom al hacer focus */
@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* =====================================================
   UTILIDADES
   ===================================================== */

.text-white {
    color: #ffffff !important;
}

.text-black {
    color: #1a202c !important;
}

.bg-white {
    background: #ffffff !important;
}

.bg-gray {
    background: #f8f9fa !important;
}

.border-gray {
    border-color: #e2e8f0 !important;
}

.shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Asegurar que todo sea visible */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}


