/* Estilos principales del sistema */
:root {
    --celeste-primario: #e3f2fd;
    --celeste-secundario: #bbdefb;
    --celeste-oscuro: #1976d2;
    --celeste-hover: #2196f3;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Navbar personalizado */
.navbar-custom {
    background: linear-gradient(to right, var(--celeste-oscuro), var(--celeste-hover));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.9);
    transition: all 0.3s;
}

.navbar-custom .nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

/* Cards personalizadas */
.card-celeste {
    background: linear-gradient(135deg, var(--celeste-primario), var(--celeste-secundario));
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.1);
    transition: all 0.3s;
}

.card-celeste:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.2);
}

/* Botones personalizados */
.btn-celeste {
    background: linear-gradient(to right, var(--celeste-oscuro), var(--celeste-hover));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-celeste:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

/* Badges personalizados */
.badge-celeste {
    background-color: var(--celeste-oscuro);
    color: white;
}

/* Tablas personalizadas */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.table-custom thead {
    background: linear-gradient(to right, var(--celeste-oscuro), var(--celeste-hover));
    color: white;
}

.table-custom tbody tr:hover {
    background-color: var(--celeste-primario);
}

/* Formularios personalizados */
.form-control-custom {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control-custom:focus {
    border-color: var(--celeste-hover);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Sidebar personalizado */
.sidebar-custom {
    background: linear-gradient(180deg, var(--celeste-oscuro) 0%, #1565c0 100%);
    min-height: 100vh;
    color: white;
}

.sidebar-custom .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar-custom .nav-link:hover,
.sidebar-custom .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

/* Alertas personalizadas */
.alert-custom {
    border-radius: 10px;
    border: none;
    animation: slideInLeft 0.5s ease-out;
}

/* Progress bars */
.progress-custom {
    height: 10px;
    border-radius: 5px;
    background-color: #e0e0e0;
}

.progress-custom .progress-bar {
    background: linear-gradient(to right, var(--celeste-oscuro), var(--celeste-hover));
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-custom {
        min-height: auto;
    }
    
    .card-celeste {
        margin-bottom: 20px;
    }
}

/* Loading spinner */
.spinner-celeste {
    color: var(--celeste-oscuro);
}

/* Tooltips */
.tooltip-custom .tooltip-inner {
    background-color: var(--celeste-oscuro);
    border-radius: 5px;
}

.tooltip-custom .tooltip-arrow {
    border-top-color: var(--celeste-oscuro);
}