/* ===== RESET BASE ===== */
html, body {
    min-height: 100%;
    margin: 0;
}

body {
    background-color: #f5f7fb !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c3e50;
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1100px;
}

/* SOLO el contenedor principal de la página, no el de la navbar */
body > .container {
    padding-bottom: 60px;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

/* ===== NAVBAR REDESIGN ===== */

.navbar {
    background: linear-gradient(90deg, #1e1b4b, #4338ca) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    padding: 12px 0;
}

/* CONTENIDO FLEX */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* Navbar collapse override - keep items in one row */
.navbar .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
}

.navbar .navbar-nav {
    flex-direction: row;
    align-items: center;
}

/* LOGO / BRAND */
.navbar-brand {
    font-weight: 700;
    font-size: 18px;
    color: #e2e8f0 !important;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand::before {
    content: "🛠️";
    font-size: 18px;
}

/* LINKS */
.navbar-nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    position: relative;
    color: #cbd5f5 !important;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

/* HOVER */
.nav-link:hover {
    background: rgba(59,130,246,0.15);
    color: #ffffff !important;
}

/* ACTIVE LINK */
.nav-link.active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white !important;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* EFECTO SUBTIL (underline animado) */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: 0.25s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* BOTÓN NAV (logout etc) */
.navbar .btn {
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #e2e8f0;
}

.navbar .btn:hover {
    background: rgba(255,255,255,0.15);
    transform: none;
    box-shadow: none;
}

/* RESPONSIVE (hamburger limpio) */
.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* OPCIONAL: separación visual derecha */
.navbar .ms-auto {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 30px !important;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ===== TABLAS ===== */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    background-color: white;
}

.table thead th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #334155;
}

.table td {
    vertical-align: middle;
}

/* ===== COLORES POR TIPO ===== */
.fila-urgente {
    background-color: #ffe5e5;
}

.fila-urgente:hover {
    background-color: #ffd6d6;
}

.fila-estandar {
    background-color: #e6f4ea;
}

.fila-estandar:hover {
    background-color: #d7f0df;
}

.row-urgente {
    background-color: #ffe5e5;
}

.row-estandar {
    background-color: #e6f4ea;
}

.evento-urgente {
    background-color: #dc3545;
}

.evento-estandar {
    background-color: #198754;
}

/* ===== BOTONES ===== */
.btn {
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== FORMULARIOS ===== */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    transition: 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

/* ===== ALERTAS ===== */
.alert {
    border-radius: 10px;
    font-weight: 500;
}

/* ===== BADGES ===== */
.badge {
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
}

.badge-pendiente {
    background-color: #ffc107;
    color: #212529;
}

.badge-asignada {
    background-color: #0d6efd;
    color: #fff;
}

.badge-finalizada {
    background-color: #198754;
    color: #fff;
}

.badge-cancelada {
    background-color: #dc3545;
    color: #fff;
}

/* ===== CALENDARIO ===== */
#calendario .col-md-2 {
    background: white;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    min-height: 120px;
}

#calendario .col-md-2:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

#calendario strong {
    display: block;
    margin-bottom: 6px;
    color: #334155;
}

/* EVENTOS DEL CALENDARIO */
#calendario div div {
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
}

.evento-calendario {
    transition: all 0.2s ease;
}

.evento-calendario:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ===== MODAL ===== */
.modal-content {
    border-radius: 12px;
    animation: scaleIn 0.2s ease;
}

/* ===== UTILIDADES ===== */
.text-muted {
    color: #64748b !important;
}

.mt-4 {
    margin-top: 30px !important;
}

/* ===== AUTH BACKGROUND ===== */
.auth-bg {
    background: linear-gradient(135deg, #1e1b4b, #4338ca);
    min-height: 100vh;
}

/* CONTENEDOR AUTH */
.auth-container {
    width: 100%;
    max-width: 420px;
}

/* LOGO AUTH */
.auth-logo {
    color: white;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 20px;
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-card {
    border-radius: 14px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ICONOS + TITULOS */
.dashboard-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* BOTONES FULL WIDTH */
.dashboard-card .btn {
    margin-top: 10px;
}

/* ===== STAT CARDS ===== */
.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== ANIMACIÓN ===== */
@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
