/* =========================================
   ESTILOS SISTEMA DE LAVADOS
   Tema: Azul/Turquesa (Agua y Limpieza)
   ========================================= */

:root {
    /* Paleta de Lavados */
    --primary-color: #0369a1;
    --secondary-color: #06b6d4;
    --accent-color: #0891b2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #6366f1;
    --light-bg: #f0f9ff;
    --dark-text: #1e293b;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(3, 105, 161, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #cffafe 100%);
    color: var(--dark-text);
    min-height: 100vh;
    padding: 20px;
}

/* ============ NAVBAR ============ */
.navbar-custom {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-custom .nav-link {
    color: white !important;
    margin: 0 10px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar-custom .nav-link:hover {
    color: #fde047 !important;
    transform: translateY(-2px);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #fde047;
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after {
    width: 80%;
}

/* ============ CONTENEDOR ============ */
.container-custom {
    max-width: 1000px;
    margin: 0 auto;
}

/* ============ CARDS ============ */
.card-custom {
    background: white;
    border: none;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card-custom:hover {
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.2);
    transform: translateY(-5px);
}

.card-custom .card-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 1.2rem;
    border-bottom: 3px solid var(--accent-color);
}

.card-custom .card-header h1,
.card-custom .card-header h2,
.card-custom .card-header h3,
.card-custom .card-header h4,
.card-custom .card-header h5,
.card-custom .card-header h6 {
    color: white !important;
    margin: 0;
}

.card-custom .card-body {
    padding: 30px;
}

/* ============ FORMULARIOS ============ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid #e0f2fe;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: var(--secondary-color);
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.25);
}

.form-control::placeholder {
    color: #999;
}

/* ============ BOTONES ============ */
.btn-custom {
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary-custom {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(3, 105, 161, 0.4);
    color: white;
}

.btn-success-custom {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-danger-custom {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    color: white;
}

.btn-warning-custom {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-warning-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
    color: white;
}

/* ============ ENLACES ============ */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.link-menu {
    display: inline-block;
    margin: 10px 0;
    padding: 12px 20px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none !important;
    font-weight: 600;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.link-menu:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
    color: white !important;
    text-decoration: none;
}

/* ============ MENU VERTICAL ============ */
.menu-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    display: block;
    padding: 15px 20px;
    background: white;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
}

.menu-item:hover {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05) 0%, rgba(3, 105, 161, 0.05) 100%);
    border-left-color: #fde047;
    transform: translateX(5px);
    color: var(--secondary-color);
    text-decoration: none;
}

/* ============ TABLAS ============ */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid #e0f2fe;
}

.table tbody tr:hover {
    background-color: #f0f9ff;
    transform: scale(1.01);
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* ============ ALERTAS ============ */
.alert-custom {
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success-custom {
    background-color: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.alert-danger-custom {
    background-color: #fee2e2;
    color: #7f1d1d;
    border-left-color: #ef4444;
}

.alert-warning-custom {
    background-color: #fef3c7;
    color: #92400e;
    border-left-color: #f59e0b;
}

.alert-info-custom {
    background-color: #e0e7ff;
    color: #3730a3;
    border-left-color: #6366f1;
}

/* ============ HEADINGS ============ */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* ============ LOGIN ============ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(3, 105, 161, 0.2);
    overflow: hidden;
    border-top: 4px solid var(--secondary-color);
}

.login-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h1 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.login-body {
    padding: 40px 30px;
}

/* ============ FOOTER ============ */
.footer-custom {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .navbar-custom {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .card-custom {
        margin-bottom: 20px;
    }

    .login-card {
        border-radius: 0;
    }

    .menu-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn-custom {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .card-custom .card-body {
        padding: 15px;
    }

    .form-control {
        padding: 10px 12px;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* ============ ANIMACIONES ============ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: slideIn 0.5s ease;
}

/* ============ UTILIDADES ============ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.rounded {
    border-radius: var(--border-radius);
}

.shadow {
    box-shadow: var(--box-shadow);
}

/* ============ SPINNER ============ */
.spinner {
    border: 4px solid #e0f2fe;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============ BADGES ============ */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.bg-success {
    background-color: #10b981 !important;
}

.bg-warning {
    background-color: #f59e0b !important;
}

.bg-danger {
    background-color: #ef4444 !important;
}

.bg-info {
    background-color: #6366f1 !important;
}
