/* ============================================
   FAB SIDEBAR & MODAL STYLES
   ============================================ */

/* === FAB SIDEBAR === */
.fab-sidebar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1000;
}

.fab-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.fab-menu {
    position: absolute;
    right: 0;
    bottom: 70px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-sidebar.open .fab-menu {
    opacity: 1;
    pointer-events: all;
    bottom: 75px;
}

.fab-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 160px;
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.fab-item:hover {
    background: rgba(51, 65, 85, 0.9);
    color: #f8fafc;
    border-color: #3B82F6;
    transform: translateX(-5px);
}

.fab-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.2));
    border-color: #3B82F6;
    color: #60A5FA;
}

.fab-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.modal-header i {
    color: #F59E0B;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
}

.modal-body {
    padding: 1.5rem;
}

.alert-details {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.alert-detail-row:last-child {
    border-bottom: none;
}

.alert-detail-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-detail-value {
    color: #f8fafc;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    color: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control option {
    background: #1e293b;
    color: #f8fafc;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.alert-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    color: #FCD34D;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.alert-warning i {
    font-size: 1.25rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    justify-content: flex-end;
}

.fab-modal-css .btn-primary, 
.fab-modal-css .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
}

.fab-modal-css .btn-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fab-modal-css .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.fab-modal-css .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.fab-modal-css .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* Responsive */
@media (max-width: 768px) {
    .fab-sidebar {
        left: 10px;
    }
    
    .fab-menu {
        left: 60px;
    }
    
    .fab-sidebar.open .fab-menu {
        left: 70px;
    }
    
    .fab-item {
        min-width: 140px;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* === REPORTES & AUDITORÍA === */
.section-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header-main h1 {
    font-size: 1.75rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
}

.summary-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
}

.meseros-list, .audit-log-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mesero-item, .audit-log-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
}

.mesero-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.mesero-info {
    flex: 1;
}

.mesero-name {
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.mesero-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.audit-log-time {
    font-size: 0.75rem;
    color: #64748b;
    min-width: 120px;
}

.audit-log-body {
    flex: 1;
}

.audit-log-action {
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.audit-log-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.audit-filters, .config-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    margin-bottom: 0.75rem;
}

.stat-big {
    font-size: 3rem;
    font-weight: 700;
    color: #3B82F6;
    text-align: center;
    padding: 2rem;
}
