/* estilos.css */

/* GLOBALES */
body { font-family: 'Inter', sans-serif; background-color: #F3F4F6; }
.dark body { background-color: #0a0a0a; color: #e5e5e5; }

/* SIDEBAR & MENU */
.menu-button { position: relative; transition: all 0.2s; border-left: 3px solid transparent; }
.menu-button:hover { background-color: #262626; }
.menu-button.active { background-color: #262626; color: #eab308; font-weight: 700; border-left-color: #eab308; }
.menu-button.active i { color: #eab308; }

/* MODALES */
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(2px); align-items: center; justify-content: center; }
.modal-content { background-color: #ffffff; margin: auto; padding: 32px; border: 1px solid #e5e5e5; width: 90%; max-width: 550px; border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.dark .modal-content { background-color: #171717; border-color: #404040; }
.close-button { color: #9ca3af; float: right; font-size: 24px; cursor: pointer; transition: color 0.2s; }
.close-button:hover { color: #000; } .dark .close-button:hover { color: #fff; }

/* TABLAS */
.table-cell { padding: 14px 12px; vertical-align: middle; border-bottom: 1px solid #e5e7eb; }
.table-header { padding: 14px 12px; background-color: #f9fafb; color: #111827; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; border-bottom: 2px solid #e5e7eb; }
.dark .table-header { background-color: #262626; color: #e5e5e5; border-color: #404040; }
.dark .table-cell { border-color: #404040; } .dark tr.border-b { border-color: #404040; } .dark .hover\:bg-gray-50:hover { background-color: #262626; }

/* BOLETÍN */
#bulletinModalContent { max-width: 1100px; width: 95%; }
.bulletin-page { background: white; width: 1056px; height: 816px; box-sizing: border-box; padding: 2rem; display: flex; flex-direction: column; color: black; position: relative; }
.bulletin-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.bulletin-table th, .bulletin-table td { border: 1px solid #000; padding: 10px 4px; text-align: center; font-size: 11px; font-weight: 700; vertical-align: middle; word-wrap: break-word; line-height: 1.1; }
.bulletin-table thead th { background-color: #e5e5e5; font-weight: 900; text-transform: uppercase; font-size: 11px; padding: 10px 2px;}
.bulletin-table th:nth-child(1) { width: 8%; } 
.bulletin-table th:nth-child(2) { width: 22%; }

/* CALENDARIO & UI */
#calendar { background-color: white; padding: 1.5rem; border-radius: 8px; border: 1px solid #e5e7eb; }
.dark #calendar { background-color: #171717; border-color: #404040; }
.fc-event { cursor: pointer; border: none !important; }
.fc-button-primary { background-color: #171717 !important; border-color: #171717 !important; }
.fc-button-primary:hover { background-color: #333 !important; }
.fc-button-active { background-color: #eab308 !important; border-color: #eab308 !important; color: black !important; }
.loader-container { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.loader { border: 4px solid #f3f3f3; border-radius: 50%; border-top: 4px solid #eab308; width: 40px; height: 40px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 50px 20px; color: #6b7280; background-color: white; border-radius: 8px; border: 1px dashed #d1d5db; }
.dark .empty-state { background-color: #171717; border-color: #404040; color: #9ca3af; }

/* IMPRESIÓN */
@media print {
    @page { size: letter landscape; margin: 0; }
    body, html { height: 100%; overflow: hidden; }
    body > *:not(#bulletinModal) { display: none !important; }
    #bulletinModal { display: block !important; position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; overflow: visible !important; }
    #bulletinModalContent { box-shadow: none !important; border: none !important; padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important; height: auto !important; }
    .no-print { display: none !important; }
    .bulletin-page { width: 100% !important; height: 100vh !important; padding: 1cm !important; box-shadow: none !important; border: none !important; box-sizing: border-box !important; page-break-after: always; }
    .bulletin-page:last-child { page-break-after: avoid; }
    #bulletin-container { visibility: visible !important; }
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .sidebar-text { transition: opacity 0.2s ease, visibility 0.2s ease; white-space: nowrap; }
    body.sidebar-collapsed #sidebar { width: 5rem; }
    body.sidebar-collapsed #main-content { margin-left: 5rem; }
    body.sidebar-collapsed .sidebar-text, body.sidebar-collapsed #sidebar .sidebar-title-container h2, body.sidebar-collapsed #sidebar hr, body.sidebar-collapsed #sidebar .px-3.text-xs { display: none; }
    body.sidebar-collapsed #sidebar .sidebar-title-container { justify-content: center; } 
    body.sidebar-collapsed #tabs { overflow-y: hidden; padding: 0; }
    body.sidebar-collapsed .menu-button, body.sidebar-collapsed #logoutBtn { justify-content: center; border-radius: 0; border-left: 0; }
    body.sidebar-collapsed .menu-button .w-5, body.sidebar-collapsed #logoutBtn .w-5 { margin-right: 0; }
}

/* BOTONES */
.btn-primary { background-color: #eab308; color: #171717; font-weight: 600; transition: all 0.2s; }
.btn-primary:hover { background-color: #ca8a04; transform: translateY(-1px); }
.btn-secondary { background-color: #171717; color: white; font-weight: 600; transition: all 0.2s; }
.btn-secondary:hover { background-color: #262626; transform: translateY(-1px); }
.dark .btn-secondary { background-color: #e5e5e5; color: #171717; } .dark .btn-secondary:hover { background-color: #d4d4d4; }
.btn-danger { background-color: #ef4444; color: white; font-weight: 600; } .btn-danger:hover { background-color: #dc2626; }