/* ESTILOS COMUNES (COMPARTIDOS PHP & HTML) */

.table-guardias th:not(:first-child),
.table-guardias td:not(:first-child) {
    width: 18% !important;
    min-width: 180px;
}

.table-guardias th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    background-color: #f8fafc;
}

.hora-col {
    width: 180px;
    min-width: 180px;
    font-weight: 700;
    color: var(--primary);
}

.teacher-slot {
    font-size: 0.75rem;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    min-height: 32px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.teacher-slot:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    z-index: 5;
}

.slot-blue {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #dbeafe;
}

.slot-emerald {
    background-color: #ecfdf5;
    color: #047857;
    border-color: #d1fae5;
}

.badge-count {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: bold;
}

.bg-blue-badge {
    background-color: #dbeafe;
    color: #2563eb;
}

.bg-emerald-badge {
    background-color: #d1fae5;
    color: #059669;
}

.btn-add {
    border: 1px dashed #cbd5e1;
    color: #94a3b8;
    font-size: 0.75rem;
    width: 100%;
    padding: 4px;
    background: transparent;
    transition: all 0.2s;
    border-radius: 6px;
}

.btn-add:hover {
    background-color: #f8fafc;
    color: #64748b;
    border-color: #94a3b8;
}

.btn-slot-action {
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: inherit;
    line-height: 1;
    transition: all 0.2s;
    opacity: 0.7;
}

.btn-slot-action:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
    opacity: 1;
}

/*BLOQUE 2: ESPECÍFICO DEL MOCKUP (HTML)*/


.btn-reset {
    background-color: #dc3545 !important;
    color: white !important;
    border: none;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background-color: #bb2d3b !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.modal-content {
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header .btn-close {
    font-size: 0.8rem;
    padding: 1rem;
}

.bg-blue-light {
    background-color: #eef2ff;
    color: #4f46e5;
    font-weight: 500;
    font-size: 0.75rem;
}

.custom-select {
    border: 1.5px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #64748b;
    background-color: #fff;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px;
}

.custom-select:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.1);
    outline: none;
}

.btn-assign {
    background-color: #8da9f2 !important;
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-assign:hover {
    background-color: #7a96e0 !important;
}

.btn-ghost {
    background-color: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-ghost:hover {
    background-color: #f1f5f9;
}

/* Entry Animation */
.main {
    animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: 1rem;
    padding-bottom: 2rem;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/*BLOQUE 3: ELEMENTOS DE ENTORNO (APP OVERRIDES) */

body {
    font-family: var(--font-main);
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(15, 76, 129, 0.03) 0, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(157, 195, 212, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(40, 167, 69, 0.03) 0, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

.navbar {
    backdrop-filter: blur(10px);
    background: rgba(15, 76, 129, 0.9) !important;
    padding: 0.75rem 1rem;
}

.nav-custom-link {
    transition: all 0.2s;
}

.nav-custom-link:hover {
    background: rgba(157, 195, 212, 0.2) !important;
    color: #fff !important;
}

.active-link {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--highlight);
}

footer {
    background: var(--primary) !important;
    color: white !important;
    padding: 2rem 0;
    margin-top: 4rem;
}

.bg-brand {
    background-color: var(--primary) !important;
}