/* ==========================================================================
   OPTOGESTOR GLOBAL DESIGN SYSTEM TOKENS & STYLES
   ========================================================================== */

/* Regras críticas offline-first imediatas */
.hidden, [hidden] {
    display: none !important;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Outfit', var(--font-sans);
    
    /* Module Primary Colors */
    --color-clinica: #10b981;
    --color-clinica-dark: #059669;
    --color-externo: #2563eb;
    --color-externo-dark: #1d4ed8;
    --color-terapia: #7c3aed;
    --color-terapia-dark: #6d28d9;
    --color-admin: #f59e0b;
    --color-admin-dark: #d97706;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: var(--font-display);
}

/* Modern Scrollbars */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

/* Premium Card Hover & Elevation */
.card-hover-effect {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
}

/* Micro-Interactions */
.active-tap:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* Pulse Dots */
.status-pulse-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    position: relative;
}
.status-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: inherit;
    opacity: 0.4;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Suporte a Safe Area (Notch da Câmera e Barra de Notificações) */
:root {
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}
