html, body { 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
}
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: #000000; 
}
#app-container { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    background-color: #000000; 
}
.header-app { 
    background-color: #000000; 
    color: white; 
    padding: 1rem 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    flex-shrink: 0; 
}
.header-logo { 
    display: flex; 
    align-items: center; 
}
.header-logo img { 
    height: 40px; 
    margin-right: 15px; 
}
.header-logo-text { 
    font-weight: bold; 
    font-size: 1.75rem; 
    color: white; 
    text-transform: uppercase; 
}
.screen { 
    display: none; 
    flex-grow: 1; 
    flex-direction: column; 
}
.screen.active { 
    display: flex; 
}
#login-screen { 
    background-color: #000000; 
    align-items: center; 
    justify-content: center; 
    padding: 1rem; 
}
.login-header { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-bottom: 2rem; 
    margin-top: -10vh; 
}
.login-header img { 
    height: 100px; 
    margin-bottom: 1rem; 
}
.login-header-text { 
    font-weight: bold; 
    font-size: 2.25rem; 
    color: white; 
    text-transform: uppercase; 
}
.main-title-box { 
    background-color: #5a1a2e; 
    padding: 1rem 2.5rem; 
    border-radius: 0.5rem; 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: white; 
    text-transform: uppercase; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    margin-top: 1.5rem; 
    margin-bottom: 2rem; 
}
.password-container { 
    position: relative; 
    display: flex; 
    align-items: center; 
}
#togglePassword { 
    position: absolute; 
    right: 0.75rem; 
    cursor: pointer; 
    color: #4a5568; 
}
.main-menu-grid { 
    flex-grow: 1; 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem; 
    padding: 1.5rem; 
    background-color: #000000; 
}
.menu-item { 
    background-color: #5a1a2e; 
    border-radius: 0.5rem; 
    padding: 1rem; 
    text-align: center; 
    color: white; 
    cursor: pointer; 
    transition: background-color 0.3s; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    font-weight: bold; 
    font-size: 1.1rem; 
}
.menu-item:hover { 
    background-color: #4e1628; 
}
.menu-item-icon { 
    height: 64px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 0.5rem; 
}
.form-page { 
    flex-direction: column; 
    height: 100%; 
    background-color: #ffffff;
}
.form-title-section { 
    background-color: #1f2937; 
    color: white; 
    padding: 1rem 1.5rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-shrink: 0; 
}
.form-title { 
    font-size: 1.25rem; 
    font-weight: bold; 
}
.form-container { 
    padding: 1.5rem; 
    flex-grow: 1; 
    overflow-y: auto; 
    background-color: #ffffff; 
}
.btn-primary, .btn-save {
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    width: 100%;
}
.btn-primary { 
    background-color: #5a1a2e; 
}
.btn-primary:hover { 
    background-color: #4e1628; 
}
.btn-save { 
    background-color: #16a34a; 
}
.btn-save:hover { 
    background-color: #128a3f; 
}
.btn-primary:disabled, .btn-save:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* AQUÍ ESTÁ EL ARREGLO VISUAL PARA LOS INPUTS */
input, select, textarea { 
    border-color: #cbd5e1 !important; 
    color: #1f2937 !important;
    background-color: #ffffff !important; /* Fuerza fondo blanco */
}

input:focus, select:focus, textarea:focus { 
    --tw-ring-color: #5a1a2e !important; 
    border-color: #5a1a2e !important; 
}
input[type="password"] { 
    padding-right: 2.5rem; 
}
.icon-image {
    width: 64px;  
    height: 64px;  
}

input[type="password"]::-webkit-password-reveal-button {
    display: none;
    -webkit-appearance: none;
}

.conditional-field { 
    display: none; 
}
.conditional-field.visible {
    display: block;
}
