/* =================== Legacy theme (solo fuera de admin/auth) =================== */
body:not(.layout-admin):not(.layout-auth) {
    background-color: #f5f5f5;
    font-family: var(--font-sans, 'Roboto', sans-serif);
    margin: 0;
    padding: 0;
}

body:not(.layout-admin):not(.layout-auth) .container {
    padding-top: 20px;
    animation: fadeIn 1s ease;
}

body:not(.layout-admin):not(.layout-auth) .header-banner {
    background: linear-gradient(135deg, #FFF200, #8DC63F);
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
body:not(.layout-admin):not(.layout-auth) .header-banner h1 {
    color: #333;
    font-weight: 700;
    margin: 0;
    font-size: 2rem;
}
body:not(.layout-admin):not(.layout-auth) .header-banner p {
    color: #333;
    font-size: 1rem;
    margin-top: 5px;
}

/* =================== Headings =================== */
/* (Definido en Bloques 1, 2 y 3) */
body:not(.layout-admin):not(.layout-auth) h2 {
    text-align: center;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

/* =================== Form Controls =================== */
/* (Bloque 1) */
body:not(.layout-admin):not(.layout-auth) .form-inline .form-control {
    margin-right: 10px;
    border-radius: 4px;
}

/* =================== Buttons =================== */
/* (Bloques 1 y 2) */
body:not(.layout-admin):not(.layout-auth) .btn-primary,
body:not(.layout-admin):not(.layout-auth) .btn-action,
body:not(.layout-admin):not(.layout-auth) .btn-deactivate,
body:not(.layout-admin):not(.layout-auth) .btn-approve,
body:not(.layout-admin):not(.layout-auth) .btn-success {
    background-color: #8DC63F;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    margin: 2px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}
body:not(.layout-admin):not(.layout-auth) .btn-primary:hover,
body:not(.layout-admin):not(.layout-auth) .btn-action:hover,
body:not(.layout-admin):not(.layout-auth) .btn-deactivate:hover,
body:not(.layout-admin):not(.layout-auth) .btn-approve:hover,
body:not(.layout-admin):not(.layout-auth) .btn-success:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    background-color: #7ab040;
}
body:not(.layout-admin):not(.layout-auth) .btn-secondary {
    background-color: #FFF200;
    color: #333;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    margin: 2px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}
body:not(.layout-admin):not(.layout-auth) .btn-secondary:hover {
    background-color: #e6e600;
}
body:not(.layout-admin):not(.layout-auth) .btn-destructive {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    margin: 2px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}
body:not(.layout-admin):not(.layout-auth) .btn-destructive:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    background-color: #c82333;
}

/* =================== Modal Header =================== */
/* (Bloque 1) */
body:not(.layout-admin):not(.layout-auth) .modal-header {
    background-color: #8DC63F;
    color: #fff;
}
body:not(.layout-admin):not(.layout-auth) .modal-header .close {
    color: #fff;
}

/* =================== Table Styles =================== */
/* (Bloque 1 y 2; se elige box-shadow con 0.1 para mayor contraste) */
body:not(.layout-admin):not(.layout-auth) .table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    width: 100%;
}
body:not(.layout-admin):not(.layout-auth) .table th,
body:not(.layout-admin):not(.layout-auth) .table td {
    border: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: center;
    padding: 12px;
}

/* =================== Navigation Tabs =================== */
/* (Bloque 2: aplicable en páginas tipo historial) */
body:not(.layout-admin):not(.layout-auth) .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}
body:not(.layout-admin):not(.layout-auth) .nav-tabs .nav-link {
    font-weight: 500;
    color: #333;
    border: none;
    padding: 12px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    cursor: pointer;
    background-color: #fff;
}
body:not(.layout-admin):not(.layout-auth) .nav-tabs .nav-link.active {
    background-color: #8DC63F;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* =================== Tab Content =================== */
/* (Bloque 2) */
body:not(.layout-admin):not(.layout-auth) .tab-content {
    background: #fff;
    padding: 20px;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* =================== List Group =================== */
/* (Bloque 3) */
body:not(.layout-admin):not(.layout-auth) .list-group {
    margin-bottom: 40px;
}
body:not(.layout-admin):not(.layout-auth) .list-group-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}
body:not(.layout-admin):not(.layout-auth) .list-group-item:hover,
body:not(.layout-admin):not(.layout-auth) .list-group-item.active {
    background: #FFF200;
    color: #333;
    border-color: #FFF200;
}

/* =================== Card Styles =================== */
/* (Bloque 3) */
body:not(.layout-admin):not(.layout-auth) .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}
body:not(.layout-admin):not(.layout-auth) .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
body:not(.layout-admin):not(.layout-auth) .card-header {
    background-color: #8DC63F;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    padding: 15px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
body:not(.layout-admin):not(.layout-auth) .card-body {
    background-color: #fff;
    padding: 20px;
    text-align: center;
}
body:not(.layout-admin):not(.layout-auth) .card-title {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
    font-weight: bold;
}

/* =================== Animations =================== */
/* (Definido en los tres bloques) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ========================================================= */
/* ESTILOS DEL CALENDARIO UNIVERSAL                          */
/* ========================================================= */

.fc-ghost-event {
    background-color: #f1f5f9 !important;
    border: 2px dashed #94a3b8 !important;
    color: #475569 !important;
    opacity: 0.8;
    text-align: center;
    font-weight: bold;
    cursor: nwse-resize; 
}

.custom-popover {
    position: absolute;
    width: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    z-index: 99999; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.custom-popover .popover-header {
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    cursor: grab; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.custom-popover .popover-header:active {
    cursor: grabbing;
}

.custom-popover .popover-body {
    padding: 12px;
    font-size: 0.85rem;
}