/* components.css */
/* ═══════════════════════════════════════════════════════════
   🎨 SISTEMA DE BOTÕES MODERNOS - Material Design Style
   Inspirado em: SAPO, WhatsApp, Material Design
   - Sombras suaves e elevação
   - Efeito ripple nos cliques
   - Cantos arredondados (12px padrão)
   - Transições fluidas
   - Totalmente baseado em CSS variables (branding)
   ═══════════════════════════════════════════════════════════ */

/* ===== BASE UNIVERSAL PARA TODOS OS BOTÕES ===== */
.btn {
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    vertical-align: middle;
    min-height: 40px; /* Acessibilidade: área de toque mínima */
}

/* Efeito Ripple (Material Design) */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== BOTÕES PRIMÁRIOS (FILLED) ===== */

/* Botão Primário - Gradiente da marca */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: var(--white);
    box-shadow: 0 3px 12px rgba(var(--primary-rgb), 0.3);
    border: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.5);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    filter: brightness(1.15);
    color: var(--white);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
    filter: brightness(1);
}

/* Botão Sucesso (Verde) */
.btn-success,
.btn-green {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    color: var(--white);
    box-shadow: 0 3px 12px rgba(var(--success-rgb), 0.3);
    border: none;
}

.btn-success:hover:not(:disabled),
.btn-green:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--success-rgb), 0.4);
    background: linear-gradient(135deg, var(--success-600), var(--success-700));
}

/* Botão Perigo (Vermelho) */
.btn-danger,
.btn-red {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
    color: var(--white);
    box-shadow: 0 3px 12px rgba(var(--danger-rgb), 0.3);
    border: none;
}

.btn-danger:hover:not(:disabled),
.btn-red:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--danger-rgb), 0.4);
    background: linear-gradient(135deg, var(--danger-600), var(--danger-700));
}

/* Botão Warning (Amarelo) */
.btn-warning {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
    color: var(--gray-900);
    box-shadow: 0 3px 12px rgba(var(--warning-rgb), 0.3);
    border: none;
}

.btn-warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--warning-rgb), 0.4);
    background: linear-gradient(135deg, var(--warning-600), var(--warning-700));
}

/* Botão Info (Azul claro) */
.btn-info {
    background: linear-gradient(135deg, var(--info-500), var(--info-600));
    color: var(--white);
    box-shadow: 0 3px 12px rgba(var(--info-rgb), 0.3);
    border: none;
}

.btn-info:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--info-rgb), 0.4);
}

/* Botão Secundário (Cinza suave) */
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-200);
    color: var(--gray-900);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ===== BOTÕES OUTLINE (BORDAS) - MODERNOS ===== */

/* Base para todos os botões outline */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-secondary,
.btn-outline-orange {
    background: transparent;
    border: 2px solid;
    border-radius: 12px; /* Garantir cantos arredondados */
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: none;
}

/* Hover universal: fundo suave + sombra + lift */
.btn-outline-primary:hover:not(:disabled),
.btn-outline-success:hover:not(:disabled),
.btn-outline-info:hover:not(:disabled),
.btn-outline-warning:hover:not(:disabled),
.btn-outline-danger:hover:not(:disabled),
.btn-outline-secondary:hover:not(:disabled),
.btn-outline-orange:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Primary Outline */
.btn-outline-primary {
    color: var(--primary-600);
    border-color: var(--primary-500);
}

.btn-outline-primary:hover:not(:disabled) {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-700);
}

/* Success Outline */
.btn-outline-success {
    color: var(--success-600);
    border-color: var(--success-500);
}

.btn-outline-success:hover:not(:disabled) {
    background: var(--success-50);
    border-color: var(--success-600);
    color: var(--success-700);
}

/* Danger Outline */
.btn-outline-danger {
    color: var(--danger-600);
    border-color: var(--danger-500);
}

.btn-outline-danger:hover:not(:disabled) {
    background: var(--danger-50);
    border-color: var(--danger-600);
    color: var(--danger-700);
}

/* Warning Outline */
.btn-outline-warning {
    color: var(--warning-700);
    border-color: var(--warning-500);
}

.btn-outline-warning:hover:not(:disabled) {
    background: var(--warning-50);
    border-color: var(--warning-600);
    color: var(--warning-800);
}

/* Info Outline */
.btn-outline-info {
    color: var(--info-600);
    border-color: var(--info-500);
}

.btn-outline-info:hover:not(:disabled) {
    background: var(--info-50);
    border-color: var(--info-600);
    color: var(--info-700);
}

/* Secondary Outline */
.btn-outline-secondary {
    color: var(--gray-700);
    border-color: var(--gray-400);
}

.btn-outline-secondary:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-500);
    color: var(--gray-800);
}

/* Orange Outline (custom) */
.btn-outline-orange {
    color: #ea580c;
    border-color: #f97316;
}

.btn-outline-orange:hover:not(:disabled) {
    background: #ffedd5;
    border-color: #ea580c;
    color: #c2410c;
}

/* ===== TAMANHOS DE BOTÕES ===== */

.btn-sm {
    padding: 0.3rem 0.3rem;
    font-size: 0.5rem;
    border-radius: 10px !important; /* Garantir que outline-sm também tem cantos arredondados */
    min-height: 12px;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 14px;
    min-height: 48px;
}

/* ===== BOTÕES COM ÍCONES ===== */

.btn i,
.btn .bi,
.btn .fa {
    font-size: 1.1em;
}

.btn-icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only.btn-sm {
    width: 32px;
    height: 32px;
}

.btn-icon-only.btn-lg {
    width: 52px;
    height: 52px;
}

/* ===== BOTÕES EM GRUPO ===== */

.btn-group {
    display: inline-flex;
    gap: 0.5rem;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== ESTADOS ESPECIAIS ===== */

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   📝 SISTEMA DE ANOTAÇÕES VISUAIS EM BOTÕES
   Badge circular integrado DENTRO de botões
   ═══════════════════════════════════════════════════════════ */

/* Container do botão com anotação - agora o próprio botão */
.btn-with-note {
    position: relative;
    overflow: visible !important; /* Crítico: permitir que badge saia dos limites */
}

/* Badge circular de anotação (canto superior direito DENTRO do botão) */
.btn-note-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--danger-600); /* Vermelho */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--danger-600);
    cursor: help;
    z-index: 100 !important; /* Z-index alto para ficar acima de tudo */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    pointer-events: auto; /* Permite interação com tooltip */
}

/* Hover: aumenta ligeiramente e destaca */
.btn-note-badge:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(229, 62, 62, 0.4);
    border-color: #c53030; /* Vermelho mais escuro */
    color: #c53030;
}

/* Animação de pulso sutil para chamar atenção */
@keyframes note-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.btn-note-badge {
    animation: note-pulse 2.5s ease-in-out infinite;
}

/* Remove animação no hover */
.btn-note-badge:hover {
    animation: none;
}

/* Variante amarela (warning) */
.btn-note-badge.warning {
    border-color: #520df2;
    color: #520df2;
    background: var(--warning-50);
}

.btn-note-badge.warning:hover {
    border-color: var(--warning-600);
    color: var(--warning-600);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

/* Variante verde (sucesso) */
.btn-note-badge.success {
    border-color: var(--success-700);
    color: var(--success-700);
    background: var(--success-50);
}

.btn-note-badge.success:hover {
    border-color: #059669;
    color: #059669;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

/* Hover universal: fundo suave + sombra + lift */
.btn-outline-primary:hover:not(:disabled),
.btn-outline-success:hover:not(:disabled),
.btn-outline-info:hover:not(:disabled),
.btn-outline-warning:hover:not(:disabled),
.btn-outline-danger:hover:not(:disabled),
.btn-outline-secondary:hover:not(:disabled),
.btn-outline-orange:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Primary (Roxo) */
.btn-outline-primary {
    color: var(--primary-500);
    border-color: var(--primary-500);
}

.btn-outline-primary:hover:not(:disabled) {
    background-color: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-600);
}

/* Success (Verde) */
.btn-outline-success {
    color: var(--success-500);
    border-color: var(--success-500);
}

.btn-outline-success:hover:not(:disabled) {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--success-500);
    color: var(--success-600);
}

/* Info (Azul) */
.btn-outline-info {
    color: var(--info-600);
    border-color: var(--info-600);
}

.btn-outline-info:hover:not(:disabled) {
    background-color: rgba(23, 162, 184, 0.1);
    border-color: var(--info-600);
}

/* Warning (Amarelo) */
/* .btn-outline-warning {
    color: var(--warning-600);
    border-color: var(--warning-600);
} */

.btn-outline-warning:hover:not(:disabled) {
    background-color: rgba(204, 153, 0, 0.1);
    border-color: var(--warning-600);
}

/* Danger (Vermelho) */
.btn-outline-danger {
    color: var(--danger-500);
    border-color: var(--danger-500);
}

.btn-outline-danger:hover:not(:disabled) {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-500);
}

/* Secondary (Cinza) */
.btn-outline-secondary {
    color: var(--gray-500);
    border-color: var(--gray-500);
}

.btn-outline-secondary:hover:not(:disabled) {
    background-color: rgba(108, 117, 125, 0.1);
    border-color: var(--gray-500);
    color: var(--dark-color);
}

/* Orange (Pagamentos em atraso) */
.btn-outline-orange {
    color: var(--orange-color);
    border-color: var(--orange-color);
}

.btn-outline-orange:hover:not(:disabled) {
    background-color: rgba(253, 126, 20, 0.1);
    border-color: var(--orange-color);
}

/* Tamanhos de Botões */
.btn-sm {
    padding: var(--space-1) var(--space-4);
    font-size: 0.8rem;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

/* Botões Compactos */
.btn-compact {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    min-width: 130px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--primary-500);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-compact:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-900));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* ===== GEAR PULSE ANIMATION (PWA Install Indicator) ===== */
.gear-pulse {
    animation: gear-pulse-animation 2s ease-in-out infinite;
    color: var(--warning-500) !important;
    filter: drop-shadow(0 0 8px var(--warning-500));
}

@keyframes gear-pulse-animation {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.15) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.15) rotate(270deg);
        opacity: 0.8;
    }
}

/* ===== CONTAINER PRINCIPAL BASE ===== */
.meu-container {
    max-width: 1300px;
    margin: 80px auto 0 auto;
    padding: 0 var(--space-4);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 576px) {
    .meu-container {
        margin-top: 70px;
        padding: 0 var(--space-2);
    }
}

@media (max-width: 768px) {
    .meu-container {
        margin-top: 75px;
        padding: 0 var(--space-3);
    }

    .btn-compact {
        padding: 3px 6px !important;
        font-size: 0.5rem !important;
        min-width: 110px;
    }
}



/* ===== CAIXA-TOPO ===== */
.caixa-topo {
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(184, 53, 53, 0.45) 100%) !important; */
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(184, 53, 53, 0.45) 100%) !important; */
    background: linear-gradient(135deg, var(--success-50), var(--warning-50), var(--info-50)) !important;

    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(128, 128, 128, 0.3) !important;
    border-radius: var(--border-radius-xl) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 15px 20px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Remove qualquer outra caixa-topo duplicada */
.caixa-topo:not(:first-of-type) {
    display: none !important;
}

.caixa-topo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.8;
}

/* Texto do PT */
.caixa-topo .card-text.mb-2 {
    font-size: 0.95rem;
    margin-bottom: 15px !important;
    text-align: center;
    font-weight: 600;
    color: var(--gray-800);
}

/* Summary mais compacto */
.caixa-topo .summary {
    margin-bottom: 5px !important;
}

/* Sem PT */
.caixa-topo .text-warning {
    font-size: 0.9rem;
    margin-bottom: 10px !important;
}

.caixa-topo h2.text-center {
    font-size: 1.3rem;
    margin: 0;
}

@media (max-width: 768px) {
    .caixa-topo {
        padding: 12px 15px !important;
        border-radius: var(--border-radius-lg);
    }
    
    .caixa-topo .card-text.mb-2 {
        font-size: 0.85rem;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 480px) {
    .caixa-topo {
        padding: 10px 12px !important;
        border-radius: var(--border-radius-sm);
    }
    
    .caixa-topo .card-text.mb-2 {
        margin-bottom: 8px !important;
    }
}

/* ===== SISTEMA DE MODAIS ===== */
.modal-content {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.modal-header {
    background: linear-gradient(135deg, var(--gray-600), var(--gray-200));
    color: var(--white);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    border-bottom: none;
    padding: var(--space-6);
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}

/* Botão Close Modernizado */
.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
}

.modal-header .btn-close::before {
    content: '✘';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1;
}

.modal-header .btn-close {
    background-image: none !important;
}

.modal-header .btn-close:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.modal-header .btn-close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: var(--space-4);
    background: var(--white);
}

.modal-footer {
    /* background: var(--gray-200er); */
    background: linear-gradient(135deg, var(--gray-200), var(--gray-600));
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
    padding: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════
   🎨 SISTEMA DE MODAIS PADRONIZADO V2.0
   Usado em: modal_helper.php, day_view.php, todas as páginas
   ═══════════════════════════════════════════════════════════ */

/* Layout Responsivo do Footer - Centralizado com Empilhamento */
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

/* Botões de Modal - Larguras Padronizadas */
.modal-footer .btn {
    min-width: 100px;
    max-width: 200px;
}

.modal-footer .btn-close::before {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gray-800);
    line-height: 1;
}

.modal-footer .btn-success {
    min-width: 120px; /* Botão principal (Confirmar/Marcar) ligeiramente maior  */
}

/* Cores de Header por Contexto */
.modal-warning .modal-header {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), linear-gradient(135deg, var(--warning-500), var(--warning-600));
    color: white;
}

.modal-success .modal-header {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), linear-gradient(135deg, var(--success-500), var(--success-600));
    color: white;
}

.modal-error .modal-header,
.modal-danger .modal-header {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), linear-gradient(135deg, var(--danger-500), var(--danger-600));
    color: white;
}

.modal-info .modal-header {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), linear-gradient(135deg, var(--info-500), var(--info-600));
    color: white;
}

/* Bordas Contextuais do Modal Content */
.modal-success .modal-content {
    border-color: var(--success-500);
}

.modal-error .modal-content,
.modal-danger .modal-content {
    border-color: var(--danger-500);
}

.modal-warning .modal-content {
    border-color: var(--warning-500);
}

.modal-info .modal-content {
    border-color: var(--info-500);
}

/* DEPRECATED: Remover após migração completa */
.modal-success .modal-content.legacy-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), linear-gradient(135deg, var(--success-500), var(--success-600));
}
.modal-error .modal-content.legacy-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), linear-gradient(135deg, var(--danger-500), var(--danger-600));
}
.modal-warning .modal-content.legacy-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), linear-gradient(135deg, var(--warning-500), var(--warning-600));
}
.modal-info .modal-content.legacy-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), linear-gradient(135deg, var(--info-500), var(--info-600));
}

/* ===== COMPONENTES DE AÇÃO ===== */
.action-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin: 0 auto;
}

.action-icon,
.custom-checkbox-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1.3rem;
    margin: 0 auto;
}

/* Checkbox Personalizado */
.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    cursor: pointer;
}

.custom-checkbox-icon.icon-unchecked::before {
    content: '⃣';
    color: var(--primary-500);
    border: 1px normal var(--primary-500);
    background: transparent;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.custom-checkbox-wrapper:hover .custom-checkbox-icon.icon-unchecked::before {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.05);
}

.custom-checkbox-icon.icon-checked::before {
    content: '📅';
    color: var(--success-500);
    border: 1px normal var(--success-500);
    background: rgba(72, 187, 120, 0.03);
    border-radius: 50%;
    padding: 3px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.15);
    animation: calendar-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

@keyframes calendar-appear {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.custom-checkbox-wrapper:hover .custom-checkbox-icon.icon-checked::before {
    background: rgba(72, 187, 120, 0.06);
    transition: background 0.2s ease;
}

/* Ícone de Indisponível */
.icon-unavailable-circle {
    position: relative;
    color: var(--danger-500);
    background: rgba(245, 101, 101, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.icon-unavailable-circle::before {
    content: '◯';
    font-size: 1.5rem;
    line-height: 1;
}

.icon-unavailable-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 18px;
    height: 2px;
    background: var(--danger-500);
    border-radius: var(--border-radius-md);
}

/* ===== TABELAS ===== */
.table-compact {
    width: 100%;
    border-collapse: collapse;
}

.table-compact th,
.table-compact td {
    padding: var(--space-2);
    text-align: left;
    border-bottom: 1px solid var(--gray-200er);
}

.table-compact th {
    background: var(--gray-200er);
    font-weight: 600;
    color: var(--gray-600);
}

.table-compact th:nth-child(3),
.table-compact td:nth-child(3) {
    width: 80px;
    text-align: center;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    border: 1px solid var(--gray-600);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.bg-warning {
    background: var(--warning-500) !important;
    color: var(--white);
}

/* ===== FORMULÁRIOS ===== */
.form-select, .form-control {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    padding: var(--space-2) var(--space-3);
    background: var(--white);
    transition: all var(--transition-fast);
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.fade .modal-dialog {
    animation: slideInDown 0.3s ease;
}

/* ===== IMPERSONATION BANNER ===== */
.impersonation-banner {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .impersonation-banner {
        top: 60px;
        left: 10px;
        right: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .impersonation-banner a {
        margin-top: 10px;
        align-self: flex-end;
    }
    
    /* Responsive para modais */
    .modal-dialog {
        margin: var(--space-2);
    }
    
    .modal-body {
        padding: var(--space-2);
    }
    
    .btn {
        width: 100%;
        margin-bottom: var(--space-2);
    }
    
    .modal-footer {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .modal-footer .btn {
        margin: 0;
    }
    
    /* Ações em mobile */
    .action-container {
        min-height: 35px;
    }
    
    .action-container .action-button {
        padding: 3px 6px;
        font-size: 0.75rem;
        white-space: nowrap;
        color: var(--primary-dark);
    }
}

/* ===== COMPONENTES ADICIONAIS Transitados da my_bookings.php===== */
.summary {
    padding: 5px;
}

.summary-item {
    margin-right: 15px;
}

.summary-item i {
    margin-right: 5px;
    color: var(--success-500);
}

.summary-item:nth-child(2) i {
    color: var(--info-600);
}

.group-icon i {
    font-size: 1em;
    margin-left: 5px;
    color: var(--success-500);
}

.group-icon:hover {
    cursor: help;
}

/* Links de tabela */
.table-compact td a.text-decoration-none:hover {
    text-decoration: underline !important;
}

/* Badge específico */
.badge.bg-warning.text-dark {
    font-size: 0.8em;
}

/* Select customizado para formulários */
.client-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: 1px solid #ccc;
    padding: 0.2rem 0.3rem;
    font-size: 0.875rem;
    line-height: 1.5;
    width: auto;
}

/* Botão compacto específico */
.btn-compact {
    padding: 0.1rem 0.3rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.btn-compact i {
    margin: 0px !important;
}

/* Ajustar o botão "Marcar Lidas" no cabeçalho */
.table-compact th form .btn {
    padding: 0.1rem 0.3rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-select {
        font-size: 0.9rem;
        max-width: 250px !important;
    }
    
    .col-6 {
        padding-right: 5px;
        padding-left: 5px;
    }
    
    /* Responsividade para caixa-topo */
    .caixa-topo {
        padding: 12px 15px !important;
        border-radius: var(--border-radius-xl);
    }
}
/* Otimização para tabela de marcações em mobile */
@media (max-width: 768px) {
    .table-compact td:nth-child(1) {
        min-width: 120px;
    }
    
    .table-compact td:nth-child(2) {
        font-size: 0.8rem;
    }
    
    .table-compact .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* ===== NOTIFICAÇÕES ===== Transitados da da notifications.php*/
/* Coluna "Ações" com largura fixa */
.table-compact th.action-column,
.table-compact td.action-column {
    width: 120px;
    text-align: center;
}

/* Estilo para cabeçalhos clicáveis */
.sortable {
    cursor: pointer;
}

.sortable:hover {
    background-color: #f1f1f1;
}

/* Estilo para o cabeçalho personalizado */
.btn-header-custom {
    cursor: default;
    font-weight: 500;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Ajuste para o container do cabeçalho */
.view-header {
    padding: 0.5rem;
    text-align: center;
    width: 100px;
}

/* Paginação específica para notificações */
.pagination .page-item.active .page-link {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

/* Responsividade para notificações */
@media (max-width: 768px) {
    .table-compact th.action-column,
    .table-compact td.action-column {
        width: 80px;
    }
    
    .view-header {
        width: 70px;
    }
    
    .btn-header-custom {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem !important;
    }
}

/* ===== WELCOME SECTIONS MODERNAS transitados da home_slideshow.php===== */
.welcome-section {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 12px 15px; /* Reduzido */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(255, 255, 255, 0.2) inset;
    z-index: 100;
    max-width: 500px;
    width: 90%;
    max-height: 25vh; /* Reduzido */
    overflow-y: auto;
    animation: slideInDown 0.6s ease-out;
}

.welcome-title {
    font-size: 1.2rem; /* Reduzido */
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-900));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px; /* Reduzido */
    text-align: center;
}

/* Sessions List Ultra Condensada */
.session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px; /* MUITO reduzido */
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-sx);
    margin-bottom: 4px; /* Reduzido */
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    gap: 6px;
    min-height: 32px; /* Altura mínima compacta */
}

.session-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

/* Detalhes da sessão em linha única compacta */
.session-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.session-date {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 0.8rem; /* Reduzido */
    white-space: nowrap;
}

.session-time {
    color: var(--primary-500);
    font-weight: 600;
    font-size: 0.75rem; /* Reduzido */
    white-space: nowrap;
}

.session-info {
    color: var(--gray-600);
    font-size: 0.95rem; /* Reduzido */
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-status {
    font-style: italic;
    color: var(--gray-500);
    font-size: 0.7rem; /* Reduzido */
    white-space: nowrap;
}

/* Botão Ver ultra compacto */
.action-column {
    flex-shrink: 0;
}

.action-column .btn {
    padding: 3px 6px !important; /* SUPER compacto */
    border-radius: var(--border-radius-sx);
    font-size: 0.7rem !important; /* Reduzido */
    white-space: nowrap;
    min-width: 45px; /* Compacto */
    height: 24px; /* Altura fixa */
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-column .btn i {
    font-size: 0.7rem; /* Ícone menor */
    margin-right: 2px;
}

.no-sessions {
    font-size: 0.85rem; /* Reduzido */
    color: var(--gray-500);
    text-align: center;
    padding: 12px; /* Reduzido */
    font-style: italic;
}

/* Payment Alert Section mais compacta */
.payment-alert-section {
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.95), rgba(255, 238, 186, 0.9)) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 12px 15px; /* Reduzido */
    box-shadow: 
        0 8px 32px rgba(255, 193, 7, 0.15),
        0 2px 8px rgba(255, 255, 255, 0.3) inset;
    z-index: 100;
    max-width: 500px;
    width: 90%;
    max-height: 30vh; /* Reduzido */
    overflow-y: auto;
    animation: gentlePulse 3s ease-in-out infinite;
}

.payment-alert-section .welcome-title {
    font-size: 1.2rem; /* Reduzido */
    background: linear-gradient(135deg, var(--warning-600), var(--danger-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px; /* Reduzido */
}

/* Tabela de Pagamentos mais compacta */
.payment-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 6px 0; /* Reduzido */
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sx);
    overflow: hidden;
    backdrop-filter: blur(10px);
    font-size: 0.75rem; /* Reduzido */
}

.payment-table th {
    background: linear-gradient(135deg, var(--warning-600), var(--danger-600));
    color: white;
    padding: 4px 6px !important; /* MUITO compacto */
    font-weight: 600;
    text-align: center;
    font-size: 0.7rem; /* Reduzido */
}

.payment-table td {
    padding: 4px 6px !important; /* MUITO compacto */
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    text-align: center;
    font-size: 0.7rem; /* Reduzido */
}

.payment-table tr:last-child td {
    border-bottom: none;
}

.total-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; /* Reduzido */
    height: 20px; /* Reduzido */
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warning-600), var(--danger-600));
    color: white;
    font-weight: 700;
    font-size: 0.65rem; /* Reduzido */
    box-shadow: 0 2px 6px rgba(253, 126, 20, 0.3);
}

/* Textos da payment section mais compactos */
.payment-alert-section p {
    margin: 6px 0 0; /* Reduzido */
    font-size: 0.75rem; /* Reduzido */
    line-height: 1.3;
}

/* Responsividade para Mobile Compacto */
@media (max-width: 768px) {
    .welcome-section,
    .payment-alert-section {
        width: 95%;
        padding: 10px 12px;
        max-height: 22vh;
    }
    
    .welcome-title {
        font-size: 1.1rem;
    }
    
    .session-item {
        padding: 5px 6px;
        gap: 4px;
        min-height: 28px;
    }
    
    .session-details {
        gap: 4px;
    }
    
    .session-date,
    .session-time,
    .session-info,
    .session-status {
        font-size: 0.7rem;
    }
    
    .session-info {
        max-width: 120px; /* ESPAÇO SUFICIENTE */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .action-column .btn {
        padding: 2px 4px !important;
        font-size: 0.65rem !important;
        min-width: 40px;
        height: 22px;
    }
    
    .payment-table {
        font-size: 0.7rem;
    }
    
    .payment-table th,
    .payment-table td {
        padding: 3px 4px !important;
    }
}

@media (max-width: 576px) {
    .session-details {
        gap: 3px;
    }
    
    .session-date {
        font-size: 0.65rem;
    }
    
    .session-time {
        font-size: 0.65rem;
    }
    
    .session-info {
        font-size: 0.75rem;
        max-width: 100px; /* ESPAÇO SUFICIENTE */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Para ecrãs MUITO pequenos (menos de 400px) */
@media (max-width: 400px) {
    .session-date {
        display: none; /* Esconde data para dar mais espaço ao nome */
    }
    
    .session-info {
        max-width: 120px !important; /* MÁXIMO ESPAÇO */
        font-size: 0.7rem !important;
    }
    
    .action-column .btn span {
        display: none; /* Só ícone */
    }
    
    .action-column .btn i {
        margin-right: 0;
        font-size: 0.8rem !important;
    }
}

/* ===== SUMMARY BADGES transitados da my_shedules.php ===== */
.summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 8px;
    border-radius: var(--border-radius-md);
    border: 2px solid;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.summary-badge i {
    font-size: 1.1em;
}

/* Cores para Clientes Individuais */
.summary-badge.individual {
    color: var(--info-500);
    border-color: var(--info-500);
    background-color: rgba(15, 62, 163, 0.18);
}

/* Cores para Clientes Individuais */
.summary-badge.amarelinho {
    color: var(--black);
    border-color: #cccc00;
    background-color: rgba(255, 255, 0, 0.18);
}

.summary-badge.laranjinha {
    color: var(--black);
    border-color: #9b59b6;
    border-width: 2px;
    background-color: rgba(255, 140, 0, 0.18);
}

.summary-badge.cinzentinho {
    color: var(--gray-700);
    border-color: var(--gray-500);
    background-color: rgba(108, 117, 125, 0.18);
}

/* Cores para Grupos */
.summary-badge.group {
    color: #1cc8e3;
    border-color: #1cc8e3;
    background-color: rgba(28, 200, 227, 0.18);
}

/* Cores para Horas Disponíveis */
.summary-badge.available {
    color: var(--black);
    border-color: var(--success-700);
    background-color: rgba(51, 204, 51, 0.18);
}

/* Cores para Horas Indisponíveis */
.summary-badge.unavailable {
    color: #520df2;
    border-color: #520df2;
    background-color: rgba(82, 13, 242, 0.18);
}

/* PT Select Styles */
.pt-select-wrapper {
    max-width: 300px;
    margin: 0 auto;
}

.pt-select {
    background-color: #e7f1ff;
    border: 2px solid var(--primary-500);
    border-radius: var(--border-radius-md);
    padding: var(--space-2);
    font-family: "Poppins", sans-serif;
    transition: all var(--transition-fast);
}

.pt-select:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background-color: var(--white);
}

.pt-select option {
    background-color: var(--white);
    color: var(--dark-color);
}

.pt-select option:checked {
    background-color: var(--primary-500);
    color: var(--white);
}

.pt-select option[value="all"] {
    font-weight: bold;
    background-color: var(--gray-200er);
}

/* Calendar Day Content Styles */
.calendar .day p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    min-height: 60px;
}

.calendar .day p small {
    font-size: 0.75rem;
}

.calendar .day p i {
    margin-right: 4px;
    font-size: 0.9rem;
    cursor: help;
    display: inline-block;
}

.calendar .day p br {
    margin-bottom: 2px;
}

.calendar .day p strong {
    font-weight: 600;
}

/* Text Colors para Status */
.text-vacation {
    color: rgb(240, 36, 172);
}

.text-absence {
    color: rgb(151, 5, 19);
}

.text-unavailable {
    color: var(--gray-500);
}

/* Hover effects para Summary Badges */
.summary-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.summary-badge.individual:hover {
    background-color: rgba(15, 62, 163, 0.12);
}

.summary-badge.group:hover {
    background-color: rgba(28, 200, 227, 0.12);
}

.summary-badge.available:hover {
    background-color: rgba(51, 204, 51, 0.12);
}

.summary-badge.unavailable:hover {
    background-color: rgba(82, 13, 242, 0.12);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .summary-badge {
        padding: 6px 10px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .summary-badge i {
        font-size: 1em;
    }
    
    .pt-select-wrapper {
        max-width: 100%;
    }
    
    .calendar .day p {
        font-size: 0.75rem;
        min-height: 50px;
    }
}

/* ===== DAY_VIEW COMPONENTS transitados da day_view.php ===== */

/* Group Icon */
.group-icon i {
    font-size: 1em;
    margin-left: 5px;
    color: var(--info-500);
}

.group-icon:hover {
    cursor: help;
}

/* Status Badges */
.status-badge,
.status-text {
    display: inline-block;
    min-width: 100px;
    text-align: left;
}

/* Table Cell Specifics */
.table-compact .status-cell,
.table-compact .option-cell {
    width: auto; 
    white-space: nowrap;
}

.table-compact .option-cell {
    text-align: center;
}

/* Option Container */
.option-container {
    display: inline-block;
}

/* Actions Container */
.actions-container {
    margin-top: 4px;
}

/* Client Name */
.client-name {
    margin-bottom: 1px;
}

/* Group Rows */
.group-row {
    border-left: 3px solid var(--primary-500);
}

.group-row:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Dropdown Options */
option.group-option {
    color: var(--primary-500);
    background-color: #e7f1ff;
}

option.individual-option {
    color: var(--dark-color);
    background-color: var(--white);
}

.client-unavailable {
    opacity: 0.6;
    color: var(--gray-500) !important;
}

.client-unavailable-option {
    color: var(--danger-500) !important;
    background-color: var(--danger-50) !important;
}

.client-available-option {
    color: var(--success-500) !important;
    background-color: #d1e7dd !important;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-500);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Transfer Button States */
.transfer-btn.disabled,
.change-time-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal Button States */
#confirmTransfer:disabled,
#confirmChangeTime:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#confirmTransfer.checking::after,
#confirmChangeTime.checking::after {
    content: " (Verificando...)";
    font-style: italic;
}

/* ===== RESPONSIVE DAY_VIEW ===== */
/* ===== RESPONSIVE DAY_VIEW ===== */
@media (max-width: 768px) {
    /* HEADERS VISÍVEIS EM MOBILE - MANTÉM LAYOUT ORGANIZADO */
    .day-view-table thead {
        display: table-header-group;
        position: static;
        width: auto;
        height: auto;
        padding: normal;
        margin: normal;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: normal;
    }
    
    /* Headers alinhados À ESQUERDA em mobile */
    .day-view-table thead th {
        padding: 8px 4px;
        font-size: 0.8rem;
        text-align: left !important; /* ✅ ESQUERDA */
    }
    
    /* Botão Marcar alinhado À ESQUERDA */
    .day-view-mobile-layout .book-modal-btn {
        width: auto;
        min-width: 70px;
        align-self: flex-start !important; /* ✅ ESQUERDA */
        margin: 0 !important; /* ✅ REMOVER CENTRAGEM */
    }
 
    /* Client actions cell in mobile - alinhado à esquerda */
    .client-actions-cell {
        /* display: flex;
        flex-direction: column; */
        gap: 8px;
        padding: 6px 0;
        align-items: flex-start !important; /* ✅ ESQUERDA */
    }
    
    .client-actions-cell .client-name {
        color: var(--info-600);
        font-weight: bolder;
        padding: 1px 0 1px;
        text-align: left !important; /* ✅ ESQUERDA */
    }
    
    .client-actions-cell .actions-container {
        display: flex;
        justify-content: flex-start !important; /* ✅ ESQUERDA */
        gap: 8px;
        flex-wrap: wrap;
    }
    
    /* Garantir que todo o conteúdo da tabela fica à esquerda */
    .day-view-table td {
        text-align: left !important; /* ✅ ESQUERDA */
    }
    
    .time-cell {
        text-align: left !important; /* ✅ ESQUERDA */
    }
    
    .option-cell {
        text-align: left !important; /* ✅ ESQUERDA */
    }
    
    /* Restore zebra striping for mobile */
    .day-view-table.table-striped tbody tr {
        background-color: transparent !important;
    }
    
    .day-view-table .schedule-row:nth-of-type(odd) {
        background-color: rgba(0, 0, 0, 0.05) !important;
    }
    
    .day-view-table .schedule-row:nth-of-type(even) {
        background-color: var(--white) !important;
    }
}

@media (max-width: 576px) {
    .day-view-table.table-compact {
        font-size: 0.8rem;
    }
    
    .day-view-table .summary-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

/* ===== ACTION BUTTONS SPECIFIC STYLES mais transitados da day_view.php ===== */

/* Botões de ação na coluna de ações */
.actions-container .badge {
    margin: 1px;
    padding: 4px 8px;
    font-size: 0.75rem;
    border: 1px solid;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
}

/* Estados dos botões de ação */
.actions-container .badge:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.actions-container .badge:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Cores específicas para botões de ação */
.actions-container .summary-badge.individual {
    color: var(--info-500);
    border-color: var(--info-500);
    background-color: rgba(15, 62, 163, 0.18);
}

.actions-container .summary-badge.group {
    color: #1cc8e3;
    border-color: #1cc8e3;
    background-color: rgba(28, 200, 227, 0.18);
}

.actions-container .summary-badge.available {
    color: var(--success-500);
    border-color: var(--success-500);
    background-color: rgba(51, 204, 51, 0.18);
}

.actions-container .summary-badge.unavailable {
    color: #520df2;
    border-color: #520df2;
    background-color: rgba(82, 13, 242, 0.18);
}

.actions-container .summary-badge.redezinho {
    color: var(--danger-500);
    border-color: var(--danger-500);
    background-color: rgba(235, 20, 20, 0.18);
}

.actions-container .summary-badge.amarelinho {
    color: var(--black);
    border-color: #cccc00;
    background-color: rgba(255, 255, 0, 0.18);
}

.actions-container .summary-badge.laranjinha {
    color: var(--black);
    border-color: #ff8000;
    background-color: rgba(255, 128, 0, 0.18);
}

.actions-container .summary-badge.cinzentinho {
    color: var(--gray-700);
    border-color: var(--gray-500);
    background-color: rgba(108, 117, 125, 0.18);
}

/* Hover states para botões de ação */
.actions-container .summary-badge.individual:hover:not(:disabled) {
    background-color: rgba(15, 62, 163, 0.25);
}

.actions-container .summary-badge.group:hover:not(:disabled) {
    background-color: rgba(28, 200, 227, 0.25);
}

.actions-container .summary-badge.available:hover:not(:disabled) {
    background-color: rgba(51, 204, 51, 0.25);
}

.actions-container .summary-badge.unavailable:hover:not(:disabled) {
    background-color: rgba(82, 13, 242, 0.25);
}

.actions-container .summary-badge.redezinho:hover:not(:disabled) {
    background-color: rgba(235, 20, 20, 0.25);
}

.actions-container .summary-badge.amarelinho:hover:not(:disabled) {
    background-color: rgba(255, 255, 0, 0.25);
}

.actions-container .summary-badge.laranjinha:hover:not(:disabled) {
    background-color: rgba(255, 128, 0, 0.25);
}

.actions-container .summary-badge.cinzentinho:hover:not(:disabled) {
    background-color: rgba(108, 117, 125, 0.25);
}

/* Botões específicos de ação */
.action-btn,
.transfer-btn,
.change-time-btn,
.change-group-time-btn,
.cancel-group-btn,
.book-modal-btn,
.toggle-availability {
    /* border: none; */
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Estados de desabilitado para botões específicos */
.action-btn:disabled,
.transfer-btn:disabled,
.change-time-btn:disabled,
.change-group-time-btn:disabled,
.cancel-group-btn:disabled,
.book-modal-btn:disabled,
.toggle-availability:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Toggle All Day button específico */
.toggle-all-day {
    padding: 6px 12px;
    font-size: 0.8rem;
    border: 2px solid;
    border-radius: var(--border-radius-sx);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: visible !important; /* Garantir que o badge seja visível */
    position: relative;
}

.toggle-all-day:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Botões dentro de formulários na coluna ações */
.actions-container form {
    display: inline;
    margin: 0 2px;
}

.actions-container form .badge {
    margin: 0;
}

/* Responsividade para botões de ação */
@media (max-width: 768px) {
    .actions-container .badge {
        padding: 3px 6px;
        font-size: 0.7rem;
        gap: 3px;
    }
    
    .action-btn,
    .transfer-btn,
    .change-time-btn,
    .change-group-time-btn,
    .cancel-group-btn,
    .book-modal-btn,
    .toggle-availability {
        padding: 3px 6px;
        font-size: 0.7rem;
        gap: 3px;
    }
    
    .toggle-all-day {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .actions-container {
        gap: 4px;
    }
}

@media (max-width: 576px) {
    .actions-container .badge {
        padding: 2px 4px;
        font-size: 0.65rem;
    }
    
    .action-btn,
    .transfer-btn,
    .change-time-btn,
    .change-group-time-btn,
    .cancel-group-btn,
    .book-modal-btn,
    .toggle-availability {
        padding: 2px 4px;
        font-size: 0.65rem;
    }
    
    .actions-container {
        gap: 3px;
        justify-content: center;
    }
}

/* ===== TOGGLE AVAILABILITY BUTTONS FIX ===== */

/* Botões toggle-availability específicos */
.toggle-availability {
    border: 2px solid;
    border-radius: var(--border-radius-md);
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
}

/* Garantir que os summary-badge colors funcionem nos toggle buttons */
.toggle-availability.summary-badge.individual {
    color: var(--info-500);
    border-color: var(--info-500);
    background-color: rgba(15, 62, 163, 0.18);
}

.toggle-availability.summary-badge.group {
    color: #1cc8e3;
    border-color: #1cc8e3;
    background-color: rgba(28, 200, 227, 0.18);
}

.toggle-availability.summary-badge.available {
    color: var(--success-500);
    border-color: var(--success-500);
    background-color: rgba(51, 204, 51, 0.18);
}

.toggle-availability.summary-badge.unavailable {
    color: #520df2;
    border-color: #520df2;
    background-color: rgba(82, 13, 242, 0.18);
}

.toggle-availability.summary-badge.redezinho {
    color: var(--danger-500);
    border-color: var(--danger-500);
    background-color: rgba(235, 20, 20, 0.18);
}

.toggle-availability.summary-badge.amarelinho {
    color: var(--black);
    border-color: #cccc00;
    background-color: rgba(255, 255, 0, 0.18);
}

.toggle-availability.summary-badge.laranjinha {
    color: var(--black);
    border-color: #ff8000;
    background-color: rgba(255, 128, 0, 0.18);
}

.toggle-availability.summary-badge.cinzentinho {
    color: var(--gray-700);
    border-color: var(--gray-500);
    background-color: rgba(108, 117, 125, 0.18);
}

/* Hover states para toggle-availability */
.toggle-availability.summary-badge.individual:hover:not(:disabled) {
    background-color: rgba(15, 62, 163, 0.25);
    transform: translateY(-1px);
}

.toggle-availability.summary-badge.group:hover:not(:disabled) {
    background-color: rgba(28, 200, 227, 0.25);
    transform: translateY(-1px);
}

.toggle-availability.summary-badge.available:hover:not(:disabled) {
    background-color: rgba(51, 204, 51, 0.25);
    transform: translateY(-1px);
}

.toggle-availability.summary-badge.unavailable:hover:not(:disabled) {
    background-color: rgba(82, 13, 242, 0.25);
    transform: translateY(-1px);
}

.toggle-availability.summary-badge.redezinho:hover:not(:disabled) {
    background-color: rgba(235, 20, 20, 0.25);
    transform: translateY(-1px);
}

.toggle-availability.summary-badge.amarelinho:hover:not(:disabled) {
    background-color: rgba(255, 255, 0, 0.25);
    transform: translateY(-1px);
}

.toggle-availability.summary-badge.laranjinha:hover:not(:disabled) {
    background-color: rgba(255, 128, 0, 0.25);
    transform: translateY(-1px);
}

.toggle-availability.summary-badge.cinzentinho:hover:not(:disabled) {
    background-color: rgba(108, 117, 125, 0.25);
    transform: translateY(-1px);
}

/* Estados disabled para toggle buttons */
.toggle-availability:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Badges estáticos (como "Agendado", "Passado") */
.option-cell .summary-badge.cinzentinho {
    color: var(--gray-700);
    border-color: var(--gray-500);
    background-color: rgba(108, 117, 125, 0.18);
    padding: 4px 8px;
    border-radius: var(--border-radius-md);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 2px solid;
}

/* Badges estáticos (como "Agendado", "Passado") */
.client-actions-cell .summary-badge.cinzentinho {
    color: var(--gray-700);
    border-color: var(--gray-500);
    background-color: rgba(108, 117, 125, 0.18);
    padding: 4px 8px;
    border-radius: var(--border-radius-md);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 2px solid;
}

/* Garantir que o botão do topo também funcione */
.toggle-all-day.summary-badge.amarelinho {
    color: var(--black);
    border-color: #cccc00;
    background-color: rgba(255, 255, 0, 0.18);
    border: 2px solid;
    border-radius: var(--border-radius-md);
}

.toggle-all-day.summary-badge.amarelinho:hover:not(:disabled) {
    background-color: rgba(255, 255, 0, 0.25);
    transform: translateY(-1px);
}

/* Responsividade para toggle buttons */
@media (max-width: 768px) {
    .toggle-availability {
        padding: 3px 6px;
        font-size: 0.7rem;
        gap: 3px;
    }
    
    .option-cell .summary-badge.cinzentinho {
        padding: 3px 6px;
        font-size: 0.7rem;
        gap: 3px;
    }
}

@media (max-width: 576px) {
    .toggle-availability {
        padding: 2px 4px;
        font-size: 0.65rem;
    }
    
    .option-cell .summary-badge.cinzentinho {
        padding: 2px 4px;
        font-size: 0.65rem;
    }
}
/* Badge estático "Pendente" com mesma cor do botão Confirmar */
.option-cell .summary-badge.available {
    color: var(--success-500);
    border-color: var(--success-500);
    background-color: rgba(51, 204, 51, 0.18);
    padding: 4px 8px;
    border-radius: var(--border-radius-md);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 2px solid;
    cursor: default; /* Não é clicável */
}

/* Garantir que o badge "Pendente" não tenha hover effects */
.option-cell .summary-badge.available:hover {
    transform: none;
    box-shadow: none;
    background-color: rgba(51, 204, 51, 0.18); /* Mantém a mesma cor */
}

/* Responsividade para o badge Pendente */
@media (max-width: 768px) {
    .option-cell .summary-badge.available {
        padding: 3px 6px;
        font-size: 0.7rem;
        gap: 3px;
    }
}

@media (max-width: 576px) {
    .option-cell .summary-badge.available {
        padding: 2px 4px;
        font-size: 0.65rem;
    }
}

/* ===== DAY_VIEW SPECIFIC STYLES ===== */

/* Tabela day_view compacta */
.table-compact.day-view-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

/* Larguras específicas para day_view */
.table-compact.day-view-table th:nth-child(1),
.table-compact.day-view-table td:nth-child(1) {
    width: 60px;
    min-width: 60px;
    padding: 5px 5px;
}

.table-compact.day-view-table th:nth-child(2),
.table-compact.day-view-table td:nth-child(2) {
    width: 105px;
    min-width: 105px;
    padding: 5px 5px;
}

.table-compact.day-view-table th:nth-child(3),
.table-compact.day-view-table td:nth-child(3) {
    width: 85px;
    min-width: 85px;
    padding: 5px 5px;
    text-align: center;
}

.table-compact.day-view-table th:nth-child(4),
.table-compact.day-view-table td:nth-child(4) {
    width: auto;
    min-width: 120px;
    padding: 5px 5px;
    justify-content: center !important;
    align-content: center !important;
}

/* Time cell responsivo */
.time-cell {
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    vertical-align: middle !important;
    
}

.time-cell .time-start::after {
    content: " - ";
    margin: 0 2px;
}

/* Mobile: time cell vertical */
@media (max-width: 768px) {
    .time-cell {
        white-space: normal;
    }
    
    .time-cell .time-start::after {
        content: "";
    }
    
    .time-cell .time-start,
    .time-cell .time-end {
        display: block;
        line-height: 1.2;
    }
    
    .time-cell .time-start {
        font-weight: 600;
    }
    
    .time-cell .time-end {
        font-size: 0.8em;
        color: var(--gray-500);
    }
}

/* Status cell */
.status-cell {
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.3;
    vertical-align: middle !important;
}

/* Option cell */
.option-cell {
    text-align: center;
    vertical-align: middle !important;
}

/* Container de ações day_view */
.day-view-actions {
    margin-top: 3px;
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    align-items: center;
    vertical-align: middle !important;
    justify-content: center;
}

/* Mobile específico para day_view */
@media (max-width: 768px) {
    .table-compact.day-view-table {
        table-layout: auto;
    }
    
    .day-view-mobile-layout .client-actions-cell {
        display: flex;
        flex-direction: column;
        gap: 3px;
        justify-content: center !important;
    }
    
    .day-view-mobile-layout .day-view-actions {
        justify-content: flex-start;
        gap: 3px;
    }
}

/* ===== DAY_VIEW DESKTOP OPTIMIZATION - VERSÃO CORRIGIDA ===== */
@media (min-width: 769px) {
    .day-view-table {
        table-layout: fixed;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    /* DISTRIBUIÇÃO CORRIGIDA - mais equilibrada */
    .day-view-table th:nth-child(1),
    .day-view-table td:nth-child(1) {
        width: 12% !important; /* Horário */
        min-width: 100px;
        max-width: 120px;
        text-align: center;
        padding: 12px 8px !important;
    }
    
    .day-view-table th:nth-child(2),
    .day-view-table td:nth-child(2) {
        width: 25% !important; /* Estado */
        min-width: 150px;
        max-width: 250px;
        text-align: left;
        padding: 12px 10px !important;
    }
    
    .day-view-table th:nth-child(3),
    .day-view-table td:nth-child(3) {
        width: 13% !important; /* Opção */
        min-width: 100px;
        max-width: 120px;
        text-align: center;
        padding: 12px 8px !important;
    }
    
    .day-view-table th:nth-child(4),
    .day-view-table td:nth-child(4) {
        width: 50% !important; /* Cliente & Ações */
        min-width: 250px;
        text-align: left;
        padding: 12px 15px !important;
        justify-content: center !important;
        align-content: center !important;
    }
    
    /* Garantir que as células não quebram */
    .day-view-table td {
        vertical-align: top;
        word-wrap: break-word;
        overflow-wrap: break-word;
        border-bottom: 1px solid var(--gray-200er);
        align-content: center !important;
    }
    
    /* TIME-CELL - Versão compacta para desktop */
    .time-cell {
        font-weight: 600;
        font-size: 0.85rem;
        line-height: 1.3;
        vertical-align: middle !important;
        justify-content: center !important;
    }
    
    .time-cell .time-start::after {
        content: "às";
        display: block;
        font-size: 0.7rem;
        font-weight: normal;
        color: var(--gray-500);
        margin: 2px 0;
    }
    
    .time-cell .time-start,
    .time-cell .time-end {
        display: block;
        text-align: center;
    }
    
    .time-cell .time-start {
        color: var(--primary-500);
        font-weight: 700;
    }
    
    .time-cell .time-end {
        color: var(--gray-600);
        font-size: 0.8rem;
    }
    
    /* STATUS-CELL - Conteúdo organizado */
    .status-cell {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .status-cell .status-badge {
        display: block;
        margin-bottom: 4px;
    }
    
    .status-cell .status-text {
        display: block;
        font-weight: 500;
        color: var(--dark-color);
        padding: 4px 0;
    }
    
    /* OPTION-CELL - Centralizado e compacto */
    .option-cell {
        text-align: center;
        vertical-align: middle !important;
    }
    
    .option-cell .option-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .option-cell .badge {
        margin: 0 auto;
        min-width: 80px;
        justify-content: center;
    }
    
    /* CLIENT-ACTIONS-CELL - Conteúdo organizado */
    .client-actions-cell {
        padding: 1px 1px !important;
    }
    
    .client-actions-cell .client-name {
        font-weight: 600;
        margin-bottom: 2px;
        font-size: 0.9rem;
        color: var(--info-600);
        line-height: 1.0;
        justify-content: center !important;
    }
    
    .client-actions-cell .group-icon {
        margin-left: 8px;
        justify-content: center !important;
    }
    
    /* ACTIONS CONTAINER - Organizado em linha */
    .day-view-actions {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .day-view-actions .badge {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* HEADERS MELHORADOS */
    .day-view-table th {
        padding: 16px 10px !important;
        text-align: center;
        background: linear-gradient(135deg, var(--primary-500), var(--primary-900));
        color: var(--white);
        font-weight: 600;
        border: none;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .day-view-table th:nth-child(4) {
        text-align: left;
    }
    
    /* CONTAINER PRINCIPAL */
    .table-responsive .day-view-table {
        margin: 0 auto;
        max-width: 1100px;
        box-shadow: var(--shadow-md);
        border-radius: var(--border-radius-lg);
        overflow: hidden;
    }
    
    /* CAIXA TOPO OTIMIZADA */
    .caixa-topo {
        max-width: 1100px;
        margin: 0 auto 25px auto;
        padding: 20px 30px !important;
    }
}

/* ===== LARGE DESKTOP ENHANCEMENTS ===== */
@media (min-width: 992px) {
    .day-view-table th:nth-child(1),
    .day-view-table td:nth-child(1) {
        width: 10% !important;
    }
    
    .day-view-table th:nth-child(2),
    .day-view-table td:nth-child(2) {
        width: 20% !important;
    }
    
    .day-view-table th:nth-child(3),
    .day-view-table td:nth-child(3) {
        width: 10% !important;
    }
    
    .day-view-table th:nth-child(4),
    .day-view-table td:nth-child(4) {
        width: 60% !important;
        justify-content: center !important;
    }
    
    .table-responsive .day-view-table {
        max-width: 1200px;
    }
    
    .day-view-actions {
        gap: 8px;
    }
    
    .day-view-actions .badge {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* ===== EXTRA LARGE SCREENS ===== */
@media (min-width: 1200px) {
    .meu-container {
        max-width: 1400px;
        margin-top: 85px;
        padding: 0 var(--space-8);
    }
    
    .table-responsive .day-view-table {
        max-width: 1300px;
    }
    
    .day-view-table td {
        padding: 14px 12px !important;
    }
    
    .time-cell {
        font-size: 0.9rem;
    }
    
    .client-actions-cell .client-name {
        font-size: 0.95rem;
    }
}

/* ===== SUPER LARGE SCREENS ===== */
@media (min-width: 1400px) {
    .table-responsive .day-view-table {
        max-width: 1400px;
    }
    
    .day-view-table th:nth-child(1),
    .day-view-table td:nth-child(1) {
        width: 8% !important;
    }
    
    .day-view-table th:nth-child(2),
    .day-view-table td:nth-child(2) {
        width: 18% !important;
    }
    
    .day-view-table th:nth-child(3),
    .day-view-table td:nth-child(3) {
        width: 8% !important;
    }
    
    .day-view-table th:nth-child(4),
    .day-view-table td:nth-child(4) {
        width: 66% !important;
        justify-content: center !important;
        align-content: center !important;
    }
}

/* ===== MANTER COMPATIBILIDADE MOBILE ===== */
@media (max-width: 768px) {
    .day-view-mobile-layout .client-actions-cell {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start !important;
    }
    
    .day-view-mobile-layout .day-view-actions {
        justify-content: flex-start;
        gap: 4px;
    }
    
    .day-view-mobile-layout .book-modal-btn {
        align-self: flex-start;
        margin: 0 !important;
    }
    
    /* Reset para mobile */
    .day-view-table {
        table-layout: auto !important;
    }
    
    .day-view-table th,
    .day-view-table td {
        width: auto !important;
        max-width: none !important;
    }
}

/* Garantir que todos os ícones tenham a mesma altura de linha */
.day-view-actions .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
}

.day-view-actions .badge i {
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Verde mais bonito para disponível */
.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}
.border-success {
    border-color: #198754 !important;
}
.list-group-item:hover {
    background-color: rgba(25, 135, 84, 0.15) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ============================================================================
   CONSOLIDACAO DE ARQUIVOS (utilities + styles + app + modal)
   Data: 15/Dez/2025
   ============================================================================ */

/* ═══════════════════════════════════════════════════════════
   🛠️ UTILITIES.CSS - Classes Utilitárias Reutilizáveis
   Sistema de design padronizado para GYM SET App
   Versão: 1.0 | Data: 18/Nov/2025
   ═══════════════════════════════════════════════════════════ */

/* === GRADIENTES PADRONIZADOS === */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-900) 100%);
}

.gradient-light {
    background: linear-gradient(135deg, var(--gray-100) 0%, #e9ecef 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, var(--gray-800) 0%, #1a202c 100%);
}

.gradient-success {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, var(--danger-500) 0%, var(--danger-600) 100%);
}

/* === SOMBRAS PADRONIZADAS === */
.shadow-xs {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.shadow-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === BORDER-RADIUS PADRONIZADO === */
.rounded-xs {
    border-radius: 4px;
}

.rounded-sm {
    border-radius: 6px;
}

.rounded-md {
    border-radius: 8px;
}

.rounded-card {
    border-radius: 12px;
}

.rounded-lg {
    border-radius: 16px;
}

.rounded-xl {
    border-radius: 20px;
}

.rounded-top {
    border-radius: 12px 12px 0 0;
}

.rounded-bottom {
    border-radius: 0 0 12px 12px;
}

/* === HOVER EFFECTS === */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes bell-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.animate-bell {
    animation: bell-shake 1.2s ease-in-out infinite;
}

/* === BADGES PADRONIZADOS === */
.badge-modern {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-status-available {
    background-color: var(--success-500);
    color: white;
}

.badge-status-pending {
    background-color: var(--warning-500);
    color: #212529;
}

.badge-status-confirmed {
    background-color: #007bff;
    color: white;
}

.badge-status-canceled {
    background-color: var(--danger-500);
    color: white;
}

.badge-status-transfer {
    background-color: var(--warning-600);
    color: white;
}

/* === BOTÕES MODERNOS === */
.btn-modern {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-width: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-compact {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
}

.btn-icon-only {
    padding: 0.5rem;
    aspect-ratio: 1;
}

/* === CARDS PADRONIZADOS === */
.card-modern {
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: white;
    overflow: hidden;
}

.card-modern:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-highlight-left {
    border-left: 4px solid var(--primary-500);
}

.card-highlight-top {
    border-top: 4px solid var(--primary-500);
}

/* === TABELAS MODERNAS === */
.table-modern thead th {
    background: linear-gradient(135deg, var(--gray-100) 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 0.85rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background-color: var(--gray-100);
    transform: translateX(2px);
}

.table-modern tbody td {
    padding: 0.85rem;
    vertical-align: middle;
}

/* === INPUTS MODERNOS === */
.input-modern {
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.input-modern:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* === TABS ELEGANTES === */
.nav-tabs-elegant .nav-link {
    color: var(--gray-500);
    background: linear-gradient(135deg, var(--gray-100) 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs-elegant .nav-link:hover:not(.active) {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
}

.nav-tabs-elegant .nav-link.active {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-900) 100%);
    color: white;
    border-color: var(--primary-500);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* === Vejamos se conseguimos implementar estes === */

        .nav-tabs .nav-link.active { 
            border: none;
            border-bottom: 3px solid transparent;
            border-color: var(--bs-primary) !important; 
            border-radius: 10px;
            font-weight: bold; 
            background-color: var(--info-100) !important;
            color: #495057;
        }
        .nav-tabs .nav-link {
            color: #6c757d;
            margin-right: 2px;
            transition: background-color 0.3s ease;
            border-bottom: 5px solid transparent;
            border-radius: 15px;
            border-bottom-color: var(--info-100) !important; 
        }
        .nav-tabs .nav-link:hover {
            background-color: #f8f9fa;
        }



/* === ALERTAS ELEGANTES === */
.alert-modern {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
}

.alert-modern i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

/* === SPACING UTILITIES === */
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* === TEXT UTILITIES === */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-900) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === LOADING STATES === */
.loading-spinner {
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === TOOLTIPS MODERNOS === */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .btn-modern {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
    
    .show-desktop {
        display: block !important;
    }
}

/* === STATUS INDICATORS === */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-dot-success {
    background-color: var(--success-500);
}

.status-dot-warning {
    background-color: var(--warning-500);
}

.status-dot-danger {
    background-color: var(--danger-500);
}

.status-dot-info {
    background-color: var(--info-600);
}


/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
}

/* body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 900px at 20% 10%, rgba(124,58,237,.35), transparent 55%),
              radial-gradient(1000px 700px at 80% 20%, rgba(6,182,212,.28), transparent 50%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  color:var(--text);
} */
/* Garantir largura total para elementos principais */


/* Padding interno consistente para conteúdo visível */


/* Estilo personalizado para a navbar */


/* Ajustar a cor dos links e elementos para combinar com a nova cor de fundo */


/* Ajustar o botão toggler para combinar com a nova cor */


/* Ajustar o botão fullscreen para combinar com a nova navbar */


/* No mobile, garantir que a navbar colapsada use largura total */

/* Ajuste para alinhar o cabeçalho e o calendário em book.php */
.schedule-header, .calendar-container {
    max-width: 100%; /* Garantir que não excedam o container pai */
    width: 100%; /* Ocupar a largura disponível */
    margin: 0 auto; /* Centralizar */
    box-sizing: border-box;
}

/* Estilos do book.php */
.available { color: green; }
.pending { color: orange; font-style: italic; }
.confirmed { color: blue; font-weight: bold; }

/* Ajustes gerais do Bootstrap */
/* .container { margin-top: 5rem; } */

/* Personalizações adicionais */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.modal-body h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.modal-body form {
    margin-bottom: 0.5rem;
}

.modal-body input[type="radio"], .modal-body input[type="checkbox"] {
    margin-right: 5px;
}

.modal-body table {
    font-size: 0.9rem;
}

.max-hours-input {
    width: 90px;
}

/* Garantir visibilidade do botão fullscreen */

/* Garantir que o botão seja visível mesmo no collapse */

/* Garantir que a navbar não corte o botão */

/* ... Outros estilos mantidos ... */

/* Estilos para checkboxes personalizadas (com fallback ultra-robusto) */
    .badge.bg-warning.text-dark {
        font-size: 0.75em;
        padding: 0.25em 0.4em;
    }
    .form-select-sm, .form-select {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }
    .table-compact td {
        vertical-align: middle;
    }
    tr:hover {
        background-color: rgba(0, 123, 255, 0.05);
    }
    .group-icon i { font-size: 1em; margin-left: 5px; color: var(--success-500); }
    .group-icon:hover { cursor: help; }
    .summary { padding: 5px; }
    .badge { display: inline-flex; align-items: center; gap: 5px; }
    .summary-item { margin-right: 15px; }
    .summary-item i { margin-right: 5px; color: var(--success-500); }
    .summary-item:nth-child(2) i { color: var(--info-600); }
    .table-compact th,
    .table-compact td {
        padding: 0.3rem 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }
    .btn-compact {
        padding: 0.1rem 0.3rem;
        font-size: 0.875rem;
        line-height: 1.5;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .btn-compact i {
        margin-right: 5px;
    }
    .table-compact th form .btn {
        padding: 0.1rem 0.3rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }


/* Névoa animada com mais vida (mas ainda elegante) */
.caixa-topo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 200, 100, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(200, 100, 255, 0.12) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: brilho-lanterna 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}

@keyframes brilho-lanterna {
    0%, 100% { background-position: 0% 0%, 100% 100%; opacity: 0.8; }
    50% { background-position: 100% 100%, 0% 0%; opacity: 1; }
}
    .day.highlight {
        box-shadow: 0 0 0 2px #0d6efd;
        animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
        100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
    }
    .highlight-day {
        animation: pulse-highlight 2s ease-in-out;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.5);
        border-radius: 4px;
    }
    @keyframes pulse-highlight {
        0% { transform: scale(1); }
        50% { transform: scale(1.02); }
        100% { transform: scale(1); }
    }
    #responseModal {
        z-index: 1060;
        outline: none;
    }
    /* ✅ DEPRECATED: Modal styles movidos para components.css (Sistema Padronizado V2.0) */
    .pt-unavailable {
        color: var(--gray-500);
        font-style: italic;
    }
    .pt-reference {
        font-weight: bold;
        color: var(--success-500);
    }
    .custom-checkbox-wrapper {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
    }
    .custom-checkbox-icon {
        font-size: 1.25rem;
        transition: all 0.2s ease;
        pointer-events: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.25rem;
        height: 1.25rem;
        position: relative;
        text-align: center;
    }

    .custom-checkbox-icon.icon-unchecked::before {
        content: '⃣';
        color: var(--primary-500);
        border: 1px normal var(--primary-500);
        background: transparent;
        border-radius: 50%;
        padding: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
    }
    .custom-checkbox-icon.icon-unchecked.no-font-awesome::before {
        content: '⃣';
        font-size: 1rem;
        line-height: 1;
    }

    .custom-checkbox-icon.icon-checked::before {
        content: '📅';
        color: var(--success-500);
        border: 1px normal var(--success-500);
        background: rgba(72, 187, 120, 0.03);
        border-radius: 50%;
        padding: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
    }
    .custom-checkbox-icon.icon-checked.no-font-awesome::before {
        content: '✔';
        font-size: 1rem;
        line-height: 1;
    }
    .custom-checkbox-wrapper:hover .custom-checkbox-icon.icon-unchecked::before {
        background: rgba(102, 126, 234, 0.05);
    }
    .custom-checkbox-wrapper:hover .custom-checkbox-icon.icon-checked::before {
        background: rgba(72, 187, 120, 0.06);
    }
    tr.checkbox-selected {
        background-color: rgba(0, 123, 255, 0.15);
        border-left: 3px solid #007bff;
        transition: all 0.2s ease;
    }

    .text-muted .fas.fa-ban {
        color: var(--danger-500);
        margin-right: 5px;
    }

/* Calendário */
.calendar {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 colunas para segunda a sábado */
    gap: 5px; /* Espaço entre os dias */
    width: 100% !important; /* Ajustar à largura do container pai */
    max-width: 100%; /* Limitar a largura máxima */
    margin: 0 auto !important; /* Centralizar */
    padding: 10px !important; /* Adicionar padding interno */
    box-sizing: border-box;
    background: linear-gradient(135deg,  #a8a49d 0%, #e0ddd2);
     border-radius: 10px !important; /* Cantos arredondados */
}

.day {
    border: 1px solid #ccc; /* Borda mais suave */
    padding: 10px;
    min-height: 80px;
    text-align: center;
    cursor: pointer;
    background-color: var(--white);
    min-width: 0 !important; /* Evitar que as células forcem largura mínima */
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* Permitir que o texto quebre em várias linhas */
    border-radius: 10px !important; /* Cantos arredondados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra sutil para profundidade */
    transition: transform 0.2s, box-shadow 0.2s; /* Animação suave */
}

.day:hover {
    transform: scale(1.02); /* Efeito de hover leve */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Sombra mais pronunciada */
}

.day p {
    margin: 0;
    font-size: 0.85rem; /* Reduzir o tamanho do texto para evitar overflow */
    line-height: 1.2; /* Ajustar o espaçamento entre linhas */
}

.day-header {

    
    font-weight: bold;
    background: var(--navbar-bg);
    color: white;
    text-align: center;
    min-height: 40px;
    padding: 5px;
    min-width: 0 !important; /* Evitar largura mínima */
    border-radius: 8px; /* Cantos arredondados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Ajustes para mobile no calendário */
@media (max-width: 576px) {
    .calendar {
        gap: 2px; /* Reduzir o espaço entre os dias */
    }
    .day {
        padding: 5px; /* Reduzir padding */
        min-height: 60px; /* Reduzir altura mínima */
        font-size: 0.8rem; /* Reduzir tamanho da fonte */
        border-radius: 6px; /* Cantos ligeiramente menores em mobile */
    }
    .day p {
        font-size: 0.7rem; /* Reduzir ainda mais o texto no mobile */
    }
    .day-header {
        padding: 3px;
        font-size: 0.9rem;
        border-radius: 6px; /* Cantos menores em mobile */
    }
}

/* Cores para status (admin e PT) */
.calendar .day.disponivel { background: -webkit-linear-gradient(90deg, #fbf8cc,#98f5e1);
background: linear-gradient(90deg, #fbf8cc,#98f5e1); }
.calendar .day.ferias { background: -webkit-linear-gradient(90deg, #d3b791,#ffffff);
background: linear-gradient(90deg, #d3b791,#ffffff); }
.calendar .day.ausencia { background: -webkit-linear-gradient(90deg, #8ca3cc,#a893bc,#8ca3cc);
background: linear-gradient(90deg, #8ca3cc,#a893bc,#8ca3cc); }
.calendar .day.indisponivel {background: -webkit-linear-gradient(90deg, #a2a49f,#e0d0c4,#f1dac4);
background: linear-gradient(90deg, #a2a49f,#e0d0c4,#f1dac4);}
.calendar .day.empty { background-color: #e9e8e3 !important; cursor: default; border: none; }

/* Cor para disponível em book.php (cliente) */
.calendar .day.available-day { background-color: #e6ffe6 !important; }

/* Cores para a legenda */
.legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border: 1px solid var(--black);
    border-radius: 4px; /* Arredondar a legenda para consistência */
}
.legend-color.disponivel { background: -webkit-linear-gradient(90deg, #fbf8cc,#98f5e1);
background: linear-gradient(90deg, #fbf8cc,#98f5e1); }
.legend-color.ferias { background: -webkit-linear-gradient(90deg, #d3b791,#ffffff);
background: linear-gradient(90deg, #d3b791,#ffffff); }
.legend-color.ausencia { background: -webkit-linear-gradient(90deg, #8ca3cc,#a893bc,#8ca3cc);
background: linear-gradient(90deg, #8ca3cc,#a893bc,#8ca3cc); }
.legend-color.indisponivel { background: -webkit-linear-gradient(90deg, #a2a49f,#e0d0c4,#f1dac4);
background: linear-gradient(90deg, #a2a49f,#e0d0c4,#f1dac4); }
.legend-color.nao-aplicavel { background-color: #e9e8e3; }

/* dist/css/modal.css */
.modal-dialog {
    min-width: 300px; /* Largura mínima para evitar que fique muito pequena */
    max-width: 90vw; /* Limite máximo baseado na viewport para responsividade */
    width: auto; /* Permite ajustar ao conteúdo */
    margin: 1.75rem auto; /* Centraliza a modal */
}

.modal-content {
    background: rgba(233, 219, 208, 0.9); /* Fundo castanho transparente */
    border: 2px solid #1e90ff; /* Borda azul (Dodger Blue) */
    border-radius: 10px; /* Cantos arredondados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra suave */
    min-height: 200px; /* Altura mínima para mensagens curtas */
    max-height: 80vh; /* Limite de altura para evitar ultrapassar a viewport */
    overflow-y: auto; /* Barra de rolagem vertical se o conteúdo for longo */
    overflow-x: hidden; /* Evita rolagem horizontal desnecessária */
}

.modal-header {
    border-bottom: 1px solid #1e90ff; /* Linha azul na borda inferior do header */
}

.modal-footer {
    border-top: 1px solid #1e90ff; /* Linha azul na borda superior do footer */
}

.modal-title {
    color: #1e90ff; /* Título da modal em azul para combinar */
}

.btn-primary {
    background-color: #1e90ff; /* Botão "Confirmar" em azul */
    border-color: #1e90ff;
}

.btn-primary:hover {
    background-color: #187bcd; /* Tom mais escuro ao passar o rato */
    border-color: #187bcd;
}
/*
.btn-secondary {
    background-color: var(--gray-500); 
    border-color: var(--gray-500);
}
Botão "Fechar" em cinza (padrão do Bootstrap) */

#responseModal {
    z-index: 1060;
}

/* ═══════════════════════════════════════════════════════════
   🎴 SISTEMA DE CARDS MODERNOS - Material Design Style
   Inspirado em: SAPO, WhatsApp, Material Design
   ═══════════════════════════════════════════════════════════ */

.card-modern {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-modern:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-modern-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.card-modern-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.card-modern-body {
    padding: 1.5rem;
}

.card-modern-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* Card com borda colorida */
.card-modern-primary {
    border-left: 4px solid var(--primary-500);
}

.card-modern-success {
    border-left: 4px solid var(--success-500);
}

.card-modern-danger {
    border-left: 4px solid var(--danger-500);
}

.card-modern-warning {
    border-left: 4px solid var(--warning-500);
}

/* ═══════════════════════════════════════════════════════════
   📝 SISTEMA DE FORMS MODERNOS - Material Design Style
   ═══════════════════════════════════════════════════════════ */

.form-control-modern {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--gray-900);
}

.form-control-modern:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.form-control-modern:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-label-modern {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group-modern {
    margin-bottom: 1.25rem;
}

/* Select moderno */
.form-select-modern {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-select-modern:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

/* Checkbox e Radio modernos */
.form-check-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-check-input-modern {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input-modern:checked {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

.form-check-input-modern[type="radio"] {
    border-radius: 50%;
}

.form-check-label-modern {
    font-size: 0.95rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   🔔 SISTEMA DE ALERTS MODERNOS
   ═══════════════════════════════════════════════════════════ */

.alert-modern {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-modern i,
.alert-modern .bi {
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.alert-modern-success {
    background: linear-gradient(135deg, var(--success-50), var(--success-100));
    color: var(--success-700);
    border-left: 4px solid var(--success-500);
}

.alert-modern-danger {
    background: linear-gradient(135deg, var(--danger-50), var(--danger-100));
    color: var(--danger-700);
    border-left: 4px solid var(--danger-500);
}

.alert-modern-warning {
    background: linear-gradient(135deg, var(--warning-50), var(--warning-100));
    color: var(--warning-700);
    border-left: 4px solid var(--warning-500);
}

.alert-modern-info {
    background: linear-gradient(135deg, var(--info-50), var(--info-100));
    color: var(--info-700);
    border-left: 4px solid var(--info-500);
}

.alert-modern-primary {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary-700);
    border-left: 4px solid var(--primary-500);
}

/* ═══════════════════════════════════════════════════════════
   🏷️ SISTEMA DE BADGES MODERNOS
   ═══════════════════════════════════════════════════════════ */

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

.badge-modern-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-modern-success {
    background: var(--success-100);
    color: var(--success-700);
}

.badge-modern-danger {
    background: var(--danger-100);
    color: var(--danger-700);
}

.badge-modern-warning {
    background: var(--warning-100);
    color: var(--warning-800);
}

.badge-modern-info {
    background: var(--info-100);
    color: var(--info-700);
}

.badge-modern-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Badge com borda */
.badge-modern-outline-primary {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-500);
}

.badge-modern-outline-success {
    background: transparent;
    color: var(--success-600);
    border: 2px solid var(--success-500);
}

.badge-modern-outline-danger {
    background: transparent;
    color: var(--danger-600);
    border: 2px solid var(--danger-500);
}

/* ═══════════════════════════════════════════════════════════
   📱 SISTEMA DE MODALS MODERNOS
   ═══════════════════════════════════════════════════════════ */

.modal-modern .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-modern .modal-header {
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.modal-modern .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.modal-modern .modal-body {
    padding: 1.5rem;
}

.modal-modern .modal-footer {
    border-radius: 0 0 16px 16px;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* Modal com borda colorida */
.modal-modern-primary .modal-content {
    border-top: 4px solid var(--primary-500);
}

.modal-modern-success .modal-content {
    border-top: 4px solid var(--success-500);
}

.modal-modern-danger .modal-content {
    border-top: 4px solid var(--danger-500);
}

/* ═══════════════════════════════════════════════════════════
   🎨 UTILITIES - Classes Utilitárias Reutilizáveis
   ═══════════════════════════════════════════════════════════ */

/* Elevações (Shadows) */
.elevation-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.elevation-md {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.elevation-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.elevation-xl {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Bordas Arredondadas */
.rounded-sm {
    border-radius: 8px;
}

.rounded-md {
    border-radius: 12px;
}

.rounded-lg {
    border-radius: 16px;
}

.rounded-xl {
    border-radius: 20px;
}

.rounded-full {
    border-radius: 9999px;
}

/* Transições */
.transition-fast {
    transition: all 0.15s ease;
}

.transition-normal {
    transition: all 0.3s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

/* Hover com Elevação */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Dividers */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 1.5rem 0;
}

.divider-thick {
    height: 2px;
    background: var(--gray-300);
    margin: 2rem 0;
}

/* Containers com padding consistente */
.container-modern {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Text utilities */
.text-primary-modern {
    color: var(--primary-600);
}

.text-success-modern {
    color: var(--success-600);
}

.text-danger-modern {
    color: var(--danger-600);
}

.text-warning-modern {
    color: var(--warning-700);
}

.text-muted-modern {
    color: var(--gray-500);
}

/* Background utilities */
.bg-primary-light {
    background: var(--primary-50);
}

.bg-success-light {
    background: var(--success-50);
}

.bg-danger-light {
    background: var(--danger-50);
}

.bg-warning-light {
    background: var(--warning-50);
}

.bg-gray-light {
    background: var(--gray-50);
}

/* ═══════════════════════════════════════════════════════════
   📊 FIM DO SISTEMA DE COMPONENTES MODERNOS
   Todos os componentes são baseados em CSS variables (config_branding.php)
   Muda branding → muda tudo automaticamente! 🎨
   ═══════════════════════════════════════════════════════════ */





/* =========================================================================
    CLASSES UTILIT�RIAS ESPEC�FICAS DO NEWGYM
   Adicionado: 10/Jan/2026 - Para eliminar estilos inline
   ========================================================================= */

/* === BOT�ES === */
.btn-standard-width {
    min-width: 100px;
    max-width: 200px;
}

/* === ALERTAS FLUTUANTES (TOASTS) === */
.alert-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .alert-toast {
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* === CARDS COM ACCENT COLOR DIN�MICO === */
.card-dynamic-accent {
    border-left: 4px solid var(--card-accent-color, var(--primary-500));
    transition: all 0.3s ease;
}

.card-dynamic-accent:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* === PROGRESS BARS === */
.progress-compact {
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-compact .progress-bar {
    border-radius: 6px;
}

/* === BADGES === */
.badge-compact {
    font-size: 0.55rem;
    padding: 0.15rem 0.15rem;
    border-radius: 4px;
}

.badge-xs {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
}

/* === ESTADOS VAZIOS === */
.empty-state-icon {
    font-size: 4rem;
    opacity: 0.3;
    color: var(--gray-400);
}

.empty-state-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 1rem;
}

/* === SESSION BADGES COM COR DIN�MICA === */
.session-badge-dynamic {
    background: rgba(var(--session-color-rgb, 102, 126, 234), 0.1);
    color: var(--session-color, var(--primary-600));
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* === �CONES EM C�RCULO === */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.icon-circle-sm {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.icon-circle-lg {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
}

/* === AVATARES === */
.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.participant-avatar-sm {
    width: 32px;
    height: 32px;
}

.participant-avatar-lg {
    width: 60px;
    height: 60px;
}

/* === DRAG HANDLE === */
.drag-handle {
    cursor: move;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: var(--gray-600);
}

/* === DIVIDERS === */
.divider-thick {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gray-200) 20%, 
        var(--gray-200) 80%, 
        transparent
    );
    margin: 2rem 0;
}

.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, 
        var(--primary-200), 
        var(--primary-500), 
        var(--primary-200)
    );
    margin: 1.5rem 0;
}

/* === TEXT UTILITIES === */
.text-strikethrough {
    text-decoration: line-through;
    color: var(--gray-500);
}

.text-muted-light {
    color: var(--gray-400);
}

/* === SPACING UTILITIES === */
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* === FLEXBOX UTILITIES === */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* === OPACITY UTILITIES === */
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* === ANIMATION UTILITIES === */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Logo navbar (altura padrão para navbar) */
.navbar-logo {
    height: 50px;
    margin-right: 10px;
}

/* Text muted small (0.8rem) */
.text-muted-sm {
    font-size: 0.8rem;
}

/* Icon small (0.8em) */
.icon-sm {
    font-size: 0.8em;
}

/* Icon small rem (0.9rem) */
.icon-sm-rem {
    font-size: 0.9rem;
}

/* Form control compact */
.form-control-compact {
    font-size: 0.85rem;
    padding: 0.25rem;
}

/* Button compact (min-width: 100px sem max) */
.btn-compact-min {
    min-width: 100px;
}

/* Button standard width aumentado (min 120px) */
.btn-standard-width-lg {
    min-width: 120px;
    max-width: 200px;
}

/* Image thumbnail small (30px height) */
.img-thumb-sm {
    height: 40px;
    margin-right: 8px;
    border-radius: 4px;
}

/* Type description (cards) */
.type-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    min-height: 60px;
}

/* Small label uppercase (0.75rem) */
.small-label-uppercase {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress bar height 12px */
.progress-h-12 {
    height: 12px;
}

/* Icon sort arrow (text-muted com 0.8em) */
.icon-sort-arrow {
    font-size: 0.8em;
    color: #6c757d;
}

/* Button filter apply (65px fixo) */
.btn-filter-apply {
    min-width: 65px;
    width: 65px;
}

/* Alert info text (0.9rem) */
.alert-text-sm {
    font-size: 0.9rem;
}

/* Logo reset password (90px height) */
.logo-reset {
    height: 90px;
    margin-bottom: 0;
    border-radius: 50%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* === FIM CLASSES UTILITÁRIAS NEWGYM === */
