/* === RESET E VARIÁVEIS === */
:root {
    --primary-bg      : #0f0f0f;
    --secondary-bg    : #1a1a1a;
    --glass-bg        : rgba(255, 255, 255, 0.1);
    --glass-border    : rgba(255, 255, 255, 0.2);
    --glass-shadow    : 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary    : #ffffff;
    --text-secondary  : rgba(255, 255, 255, 0.7);
    --accent-green    : #00d4aa;
    --accent-blue     : #0c69b0;
    --accent-purple   : #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #00d4aa 0%, #0c69b0 100%);
    --gradient-accent : linear-gradient(135deg, #8b5cf6 0%, #00d4aa 100%);
}

.light-theme {
    --primary-bg    : #f8fafc;
    --secondary-bg  : #ffffff;
    --glass-bg      : rgba(255, 255, 255, 0.8);
    --glass-border  : rgba(255, 255, 255, 0.3);
    --glass-shadow  : 0 8px 32px rgba(0, 0, 0, 0.1);
    --text-primary  : #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.7);
}

* {
    margin    : 0;
    padding   : 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background : var(--primary-bg);
    color      : var(--text-primary);
    min-height : 100vh;
    transition : all 0.3s ease;
    position   : relative;
}

/* Prevenir scroll quando menu mobile está aberto */
body.menu-open {
    overflow: hidden;
    height  : 100vh;
}

/* === FORM CONTROLS (DARK THEME NATIVE SELECT POPUP) === */
body.dark-theme {
    /* Hint browsers to render native controls with dark surfaces */
    color-scheme: dark;
}

body.dark-theme select,
body.dark-theme select option,
body.dark-theme select optgroup {
    background-color: var(--primary-bg) !important;
    color: var(--text-primary) !important;
}

body.dark-theme select option:checked,
body.dark-theme select option:hover,
body.dark-theme select option:focus {
    background-color: rgba(0, 212, 170, 0.15) !important; /* accent-green wash */
    color: var(--text-primary) !important;
}

/* === BACKGROUND ANIMADO === */
.bg-animation {
    position: fixed;
    top     : 0;
    left    : 0;
    width   : 100%;
    height  : 100%;
    z-index : -1;
    overflow: hidden;
}

.bg-shape {
    position     : absolute;
    border-radius: 50%;
    background   : var(--gradient-primary);
    opacity      : 0.1;
    animation    : float 20s infinite linear;
}

.shape-1 {
    width          : 300px;
    height         : 300px;
    top            : -150px;
    left           : -150px;
    animation-delay: 0s;
}

.shape-2 {
    width          : 200px;
    height         : 200px;
    bottom         : -100px;
    right          : 20%;
    animation-delay: -5s;
}

.shape-3 {
    width          : 150px;
    height         : 150px;
    top            : 30%;
    right          : -75px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* === LAYOUT PRINCIPAL === */
.main-container {
    max-width: 1400px;
    margin   : 0 auto;
    padding  : 2rem;
}

.dashboard-header {
    display        : flex;
    justify-content: space-between;
    align-items    : flex-start;
    margin-bottom  : 2rem;
}

.welcome-title {
    font-size    : 2.5rem;
    font-weight  : 700;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background             : var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip        : text;
}

.welcome-subtitle {
    color    : var(--text-secondary);
    font-size: 1.1rem;
}

.header-actions {
    display    : flex;
    align-items: center;
    gap        : 1rem;
}

.date-display {
    background     : var(--glass-bg);
    backdrop-filter: blur(20px);
    border         : 1px solid var(--glass-border);
    padding        : 0.75rem 1.5rem;
    border-radius  : 50px;
    display        : flex;
    align-items    : center;
    gap            : 0.5rem;
    font-weight    : 500;
}

.theme-toggle {
    background     : var(--glass-bg);
    backdrop-filter: blur(20px);
    border         : 1px solid var(--glass-border);
    width          : 50px;
    height         : 50px;
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    cursor         : pointer;
    transition     : all 0.3s ease;
    font-size      : 1.2rem;
}

.theme-toggle:hover {
    transform   : scale(1.1);
    border-color: var(--accent-green);
}

/* === STATS CARDS === */
.stats-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap                  : 1.5rem;
    margin-bottom        : 2rem;
}

.stat-card {
    background     : var(--glass-bg);
    backdrop-filter: blur(20px);
    border         : 1px solid var(--glass-border);
    border-radius  : 20px;
    padding        : 1.5rem;
    display        : flex;
    align-items    : center;
    gap            : 1rem;
    transition     : all 0.3s ease;
    box-shadow     : var(--glass-shadow);
}

.stat-card:hover {
    transform   : translateY(-5px);
    border-color: var(--accent-green);
}

.stat-icon {
    width          : 60px;
    height         : 60px;
    background     : var(--gradient-primary);
    border-radius  : 15px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display      : block;
    font-size    : 2rem;
    font-weight  : 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color      : var(--text-secondary);
    font-size  : 0.9rem;
    font-weight: 500;
}

.stat-trend {
    padding      : 0.5rem 1rem;
    border-radius: 20px;
    font-size    : 0.8rem;
    font-weight  : 600;
    display      : flex;
    align-items  : center;
    gap          : 0.25rem;
}

.stat-trend.up {
    background: rgba(0, 212, 170, 0.2);
    color     : var(--accent-green);
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.2);
    color     : #ef4444;
}

/* === LAYOUT GRID === */
.main-grid {
    display              : grid;
    grid-template-columns: 1fr 400px;
    gap                  : 2rem;
}

/* === GLASS CARDS === */
.glass-card {
    background     : var(--glass-bg);
    backdrop-filter: blur(20px);
    border         : 1px solid var(--glass-border);
    border-radius  : 20px;
    padding        : 1.5rem;
    margin-bottom  : 2rem;
    box-shadow     : var(--glass-shadow);
}

.card-header {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    margin-bottom  : 1.5rem;
}

.card-title {
    font-size  : 1.25rem;
    font-weight: 600;
    display    : flex;
    align-items: center;
    gap        : 0.5rem;
}

/* === CONSULTAS === */
.appointments-list {
    display       : flex;
    flex-direction: column;
    gap           : 1rem;
}

.appointment-item {
    display      : flex;
    align-items  : center;
    gap          : 1rem;
    padding      : 1rem;
    background   : rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition   : all 0.3s ease;
}

.appointment-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform : translateX(5px);
}

.appointment-time {
    text-align: center;
    min-width : 60px;
}

.time {
    display    : block;
    font-size  : 1.1rem;
    font-weight: 600;
    color      : var(--accent-green);
}

.date {
    display  : block;
    font-size: 0.8rem;
    color    : var(--text-secondary);
}

.appointment-info {
    display    : flex;
    align-items: center;
    gap        : 1rem;
    flex       : 1;
}

.patient-avatar {
    width          : 40px;
    height         : 40px;
    background     : var(--gradient-primary);
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-weight    : 600;
    font-size      : 0.9rem;
}

.patient-name {
    font-weight  : 600;
    margin-bottom: 0.25rem;
}

.appointment-meta {
    font-size: 0.8rem;
    color    : var(--text-secondary);
}

.doctor {
    font-weight: 500;
}

.appointment-actions {
    display: flex;
    gap    : 0.5rem;
}

.btn-icon {
    background     : rgba(255, 255, 255, 0.1);
    border         : 1px solid var(--glass-border);
    width          : 35px;
    height         : 35px;
    border-radius  : 10px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    cursor         : pointer;
    transition     : all 0.3s ease;
    color          : var(--text-secondary);
}

.btn-icon:hover {
    background: var(--accent-green);
    color     : white;
    transform : scale(1.1);
}

.btn-icon.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.btn-icon.btn-whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.btn-icon.btn-whatsapp:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-close {
    background     : rgba(255, 255, 255, 0.2);
    color          : white;
    border         : none;
    padding        : 10px 20px;
    border-radius  : 8px;
    cursor         : pointer;
    float          : right;
    margin-top     : 20px;
    transition     : all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform : translateY(-2px);
}

.no-events {
    text-align: center;
    color     : var(--text-secondary);
    font-style: italic;
    padding   : 20px;
}

/* === TAREFAS === */
.tasks-list {
    display       : flex;
    flex-direction: column;
    gap           : 1rem;
}

.task-item {
    display      : flex;
    align-items  : center;
    gap          : 1rem;
    padding      : 1rem;
    background   : rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition   : all 0.3s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.task-item.completed .task-text {
    text-decoration: line-through;
    opacity        : 0.6;
}

.checkbox-container {
    display : block;
    position: relative;
    cursor  : pointer;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width          : 20px;
    height         : 20px;
    border         : 2px solid var(--glass-border);
    border-radius  : 6px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    transition     : all 0.3s ease;
}

.checkbox-container input:checked+.checkmark {
    background  : var(--accent-green);
    border-color: var(--accent-green);
}

.checkbox-container input:checked+.checkmark::after {
    content    : '✓';
    color      : white;
    font-size  : 12px;
    font-weight: bold;
}

.task-content {
    flex           : 1;
    display        : flex;
    justify-content: space-between;
    align-items    : center;
}

.task-text {
    font-weight: 500;
}

.task-priority,
.task-status {
    font-size    : 0.7rem;
    padding      : 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight  : 600;
}

.task-priority.high {
    background: rgba(239, 68, 68, 0.2);
    color     : #ef4444;
}

.task-priority.medium {
    background: rgba(245, 158, 11, 0.2);
    color     : #f59e0b;
}

.task-status {
    background: rgba(0, 212, 170, 0.2);
    color     : var(--accent-green);
}

.task-actions i {
    cursor       : pointer;
    padding      : 0.5rem;
    border-radius: 8px;
    transition   : all 0.3s ease;
    opacity      : 0;
}

.task-item:hover .task-actions i {
    opacity: 1;
}

.task-actions i:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === BOTÕES === */
.btn-primary,
.btn-secondary {
    padding      : 0.75rem 1.5rem;
    border       : none;
    border-radius: 12px;
    font-weight  : 600;
    cursor       : pointer;
    transition   : all 0.3s ease;
    display      : inline-flex;
    align-items  : center;
    gap          : 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color     : white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color     : var(--text-primary);
    border    : 1px solid var(--glass-border);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

/* === FILTROS === */
.filter-select {
    background   : rgba(255, 255, 255, 0.1);
    border       : 1px solid var(--glass-border);
    border-radius: 10px;
    padding      : 0.5rem 1rem;
    color        : var(--text-primary);
    font-family  : 'Inter', sans-serif;
}

.filter-select:focus {
    outline     : none;
    border-color: rgba(255, 255, 255, 0.5);
    background  : rgba(255, 255, 255, 0.15);
}


/* === MÉTRICAS === */
.metrics-grid {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 1rem;
}

.metric-item {
    text-align   : center;
    padding      : 1.5rem;
    background   : rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.metric-value {
    display      : block;
    font-size    : 1.5rem;
    font-weight  : 700;
    margin-bottom: 0.5rem;
    color        : var(--accent-green);
}

.metric-label {
    font-size: 0.8rem;
    color    : var(--text-secondary);
}

/* === AÇÕES RÁPIDAS === */
.quick-actions-grid {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 1rem;
}

.quick-action {
    background    : rgba(255, 255, 255, 0.05);
    border        : 1px solid var(--glass-border);
    border-radius : 15px;
    padding       : 1.5rem 1rem;
    display       : flex;
    flex-direction: column;
    align-items   : center;
    gap           : 0.5rem;
    cursor        : pointer;
    transition    : all 0.3s ease;
    color         : var(--text-primary);
    font-family   : 'Inter', sans-serif;
}

.quick-action:hover {
    background  : rgba(255, 255, 255, 0.1);
    border-color: var(--accent-green);
    transform   : translateY(-2px);
}

.quick-action i {
    font-size: 1.5rem;
    color    : var(--accent-green);
}

/* === ESTADO VAZIO === */
.empty-state {
    text-align: center;
    padding   : 3rem;
    color     : var(--text-secondary);
}

.empty-state i {
    font-size    : 3rem;
    margin-bottom: 1rem;
    opacity      : 0.5;
}

/* === CHART === */
.chart-container {
    height    : 200px;
    margin-top: 1rem;
}

/* === RESPONSIVO === */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .right-column {
        display              : grid;
        grid-template-columns: 1fr 1fr;
        gap                  : 2rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap           : 1rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .right-column {
        grid-template-columns: 1fr;
    }

    .metrics-grid,
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === HEADER MODERNO === */
.modern-header {
    background     : var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom  : 1px solid var(--glass-border);
    position       : sticky;
    top            : 0;
    z-index        : 1000;
    transition     : all 0.3s ease;
    width          : 100%;
}

/* Smooth scroll no html */
html {
    scroll-behavior: smooth;
}

/* Prevenir overflow horizontal */
body {
    overflow-x: hidden;
}

.header-content {
    max-width      : 1400px;
    margin         : 0 auto;
    padding        : 0.75rem 1.5rem;
    display        : flex;
    flex-wrap      : nowrap;
    justify-content: space-between;
    align-items    : center;
    gap            : 0.75rem;
}

.logo-section {
    display    : flex;
    align-items: center;
    flex-shrink: 1;
    min-width  : 0;
    overflow   : hidden;
}

.logo-link {
    display        : flex;
    align-items    : center;
    gap            : 0.4rem;
    font-size      : 1.5rem;
    font-weight    : 700;
    color          : var(--text-primary);
    text-decoration: none;
    transition     : all 0.3s ease;
}

.logo-link i {
    color    : var(--accent-green);
    font-size: 1.7rem;
}

.logo-link:hover {
    transform: scale(1.05);
}

.user-welcome {
    margin-left   : 0.75rem;
    display       : flex;
    flex-direction: column;
    gap           : 0.1rem;
}

.company-code {
    font-size    : 0.65rem;
    background   : var(--gradient-primary);
    padding      : 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight  : 600;
    color        : white;
}

.welcome-text {
    font-size  : 0.75rem;
    color      : var(--text-secondary);
    white-space: nowrap;
}

/* === NAVEGAÇÃO MODERNA === */
.modern-nav {
    display    : flex;
    align-items: center;
    flex-shrink: 1;
    flex-grow  : 0;
    min-width  : 0;
    gap        : 0.75rem;
    justify-content: space-between;
}

.nav-menu {
    display   : flex;
    gap       : 0.25rem;
    list-style: none;
    margin    : 0;
    padding   : 0;
    flex-shrink: 1;
    flex-wrap : nowrap;
    min-width  : 0;
    overflow  : visible;
}

.nav-link {
    display        : flex;
    align-items    : center;
    gap            : 0.35rem;
    padding        : 0.55rem 0.75rem;
    color          : var(--text-secondary);
    text-decoration: none;
    border-radius  : 10px;
    transition     : all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight    : 500;
    font-size      : 0.85rem;
    position       : relative;
    white-space    : nowrap;
    cursor         : pointer;
    user-select    : none;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color     : var(--text-primary);
    transform : translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-link.active {
    background: var(--gradient-primary);
    color     : white;
    box-shadow: 0 4px 15px rgba(12, 105, 176, 0.3);
}

.nav-link i {
    font-size : 0.95rem;
    width     : 16px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-icon {
    font-size : 0.8rem;
    transition: transform 0.3s ease;
}

/* === SUBMENU MODERNO === */
.has-submenu {
    position: relative;
}

.has-submenu:hover .dropdown-icon {
    transform: rotate(180deg);
}

.submenu {
    position       : absolute;
    top            : 100%;
    left           : 0;
    background     : rgba(55, 65, 81, 0.95);
    /* Cinza escuro em vez de azul */
    backdrop-filter: blur(30px);
    border         : 1px solid rgba(75, 85, 99, 0.5);
    /* Borda cinza */
    border-radius  : 15px;
    min-width      : 220px;
    padding        : 0.5rem;
    box-shadow     : var(--glass-shadow);
    opacity        : 0;
    visibility     : hidden;
    transform      : translateY(10px);
    transition     : all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index        : 1000;
    list-style     : none;
}

.has-submenu:hover .submenu {
    opacity   : 1;
    visibility: visible;
    transform : translateY(0);
}

/* Labels funcionam como botões clicáveis */
.has-submenu label.nav-link {
    cursor: pointer;
    user-select: none;
}

.submenu-link {
    display        : block;
    padding        : 0.75rem 1rem;
    color          : var(--text-primary);
    text-decoration: none;
    border-radius  : 8px;
    transition     : all 0.3s ease;
    font-size      : 0.9rem;
    font-weight    : 500;
}

.submenu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color     : var(--text-primary);
    transform : translateX(5px);
}

.menu-separator {
    height    : 1px;
    background: rgba(75, 85, 99, 0.5);
    /* Separador cinza */
    margin    : 0.4rem 0;
    list-style: none;
}

/* === CONTROLES DO HEADER === */
.header-controls {
    display    : flex;
    align-items: center;
    gap        : 0.5rem;
    flex-shrink: 0;
    flex-wrap  : nowrap;
    min-width  : fit-content;
}

.theme-toggle,
.logout-btn {
    width          : 40px;
    height         : 40px;
    min-width      : 40px;
    border-radius  : 10px;
    background     : rgba(255, 255, 255, 0.1);
    border         : 1px solid var(--glass-border);
    color          : var(--text-primary);
    cursor         : pointer;
    transition     : all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display        : flex;
    align-items    : center;
    justify-content: center;
    flex-shrink    : 0;
}

.theme-toggle i,
.logout-btn i {
    font-size: 1rem;
}

.theme-toggle:hover,
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform : translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-toggle:active,
.logout-btn:active {
    transform: translateY(0);
}

.logout-btn {
    color: #ef4444;
}

.logout-btn:hover {
    background  : rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* === BOTÃO AGENDAR CONSULTA === */
.btn-schedule-appointment {
    background   : var(--gradient-accent);
    color        : white;
    border       : none;
    padding      : 0.6rem 1rem;
    border-radius: 10px;
    font-weight  : 600;
    font-size    : 0.9rem;
    cursor       : pointer;
    transition   : all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display      : flex;
    align-items  : center;
    justify-content: center;
    gap          : 0.4rem;
    white-space  : nowrap;
    box-shadow   : 0 4px 15px rgba(0, 212, 170, 0.3);
    flex-shrink  : 0;
}

.btn-schedule-appointment i {
    font-size: 1rem;
}

.btn-schedule-appointment:hover {
    transform : translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

.btn-schedule-appointment:active {
    transform : translateY(0);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

/* === BARRA DA EMPRESA === */
.company-bar {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    padding   : 0.5rem 0;
    overflow  : hidden;
}

.company-info {
    max-width : 1400px;
    margin    : 0 auto;
    padding   : 0 2rem;
    text-align: center;
}

.company-badge {
    background   : rgba(255, 255, 255, 0.1);
    padding      : 0.4rem 1rem;
    border-radius: 20px;
    font-size    : 0.8rem;
    color        : var(--text-secondary);
    font-weight  : 500;
    display      : inline-block;
    transition   : all 0.3s ease;
}

.company-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform : translateY(-1px);
}

/* === LINK DE LOGOUT === */
.logout-link {
    color: #ef4444 !important;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color     : #ef4444 !important;
}

/* === MENU TOGGLE (MOBILE) === */
.menu-toggle {
    display   : none; /* Será exibido apenas no mobile via media query */
    background: none;
    border    : none;
    color     : var(--text-primary);
    font-size : 1.2rem;
    cursor    : pointer;
    padding   : 0;
}

/* Hide checkboxes visualmente mas mantê-los funcionais */
.menu-toggle-checkbox,
.submenu-toggle {
    position      : absolute;
    opacity       : 0;
    width         : 1px;
    height        : 1px;
    pointer-events: auto; /* Permitir cliques no label */
    clip          : rect(0,0,0,0);
    overflow      : hidden;
}

/* === FOOTER MODERNO - CORRIGIDO === */
.modern-footer {
    background     : var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top     : 1px solid var(--glass-border);
    margin-top     : 3rem;
    position       : relative;
    z-index        : 100;
}

.footer-content {
    max-width      : 1400px;
    margin         : 0 auto;
    padding        : 1.5rem 2rem;
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    gap            : 2rem;
}

.footer-info {
    display    : flex;
    align-items: center;
    gap        : 1.5rem;
}

.copyright {
    color    : var(--text-secondary);
    margin   : 0;
    font-size: 0.9rem;
}

.brand {
    color      : var(--accent-green);
    font-weight: 600;
}

.version-badge {
    background   : rgba(255, 255, 255, 0.1);
    padding      : 0.4rem 0.8rem;
    border-radius: 20px;
    font-size    : 0.8rem;
    color        : var(--text-secondary);
    display      : flex;
    align-items  : center;
    gap          : 0.5rem;
    font-weight  : 500;
}

.footer-links {
    display: flex;
    gap    : 1.5rem;
}

.footer-link {
    color          : var(--text-secondary);
    text-decoration: none;
    font-size      : 0.9rem;
    transition     : all 0.3s ease;
    padding        : 0.5rem 0;
    position       : relative;
}

.footer-link:hover {
    color    : var(--accent-green);
    transform: translateY(-1px);
}

.footer-link::after {
    content   : '';
    position  : absolute;
    bottom    : 0;
    left      : 0;
    width     : 0;
    height    : 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* === RESPONSIVIDADE DO FOOTER === */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align    : center;
        gap           : 1rem;
        padding       : 1.5rem 1rem;
    }

    .footer-info {
        flex-direction: column;
        gap           : 1rem;
    }

    .footer-links {
        justify-content: center;
        flex-wrap      : wrap;
        gap            : 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap           : 0.5rem;
    }

    .version-badge {
        font-size: 0.75rem;
        padding  : 0.3rem 0.6rem;
    }
}

/* === PÁGINA DE MÉDICOS === */
.page-header {
    display        : flex;
    justify-content: space-between;
    align-items    : flex-start;
    margin-bottom  : 2rem;
    gap            : 2rem;
}

.header-content {
    flex: 1;
}

.page-title {
    font-size    : 2.2rem;
    font-weight  : 700;
    margin-bottom: 0.5rem;
    display      : flex;
    align-items  : center;
    gap          : 1rem;
}

.page-title i {
    color    : var(--accent-green);
    font-size: 2.5rem;
}

.page-description {
    color    : var(--text-secondary);
    font-size: 1.1rem;
    margin   : 0;
}

.header-actions {
    display  : flex;
    gap      : 1rem;
    flex-wrap: wrap;
}

/* === TABELA MODERNA === */
.modern-table {
    background     : var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius  : 20px;
    overflow       : hidden;
    border         : 1px solid var(--glass-border);
}

.search-box {
    position : relative;
    min-width: 300px;
}

.search-box i {
    position : absolute;
    left     : 1rem;
    top      : 50%;
    transform: translateY(-50%);
    color    : var(--text-secondary);
}

.search-box input {
    width        : 100%;
    padding      : 0.75rem 1rem 0.75rem 3rem;
    background   : rgba(255, 255, 255, 0.1);
    border       : 1px solid var(--glass-border);
    border-radius: 12px;
    color        : #333333;
    font-family  : 'Inter', sans-serif;
    transition   : all 0.3s ease;
}

.search-box input:focus {
    outline     : none;
    border-color: var(--accent-green);
    box-shadow  : 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.search-box input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* Tema dark - garantir contraste no input de pesquisa */
body.dark-theme .search-box input,
.dark-theme .search-box input {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .search-box input::placeholder,
.dark-theme .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-theme .search-box input:focus,
.dark-theme .search-box input:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: var(--accent-green) !important;
}

/* === ESTILOS DA TABELA === */
.modern-datatable {
    width          : 100%;
    border-collapse: collapse;
}

/* === CORREÇÃO DO CABEÇALHO === */
.modern-datatable thead th {
    background   : rgba(0, 0, 0, 0.3) !important;
    /* Fundo mais escuro para cabeçalho */
    color        : #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modern-datatable tbody td {
    color        : #e0e0e0 !important;
    /* Cinza mais escuro para melhor legibilidade */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modern-datatable tbody tr {
    background: rgba(0, 0, 0, 0.2) !important;
    /* Fundo mais escuro para linhas */
}

.modern-datatable tbody tr:hover {
    background: rgba(0, 0, 0, 0.3) !important;
    /* Fundo mais escuro no hover */
}

.modern-datatable tbody tr:hover td {
    color      : #ffffff;
    /* Branco puro no hover */
    font-weight: 500;
    background : rgba(255, 255, 255, 0.05) !important;
}

/* Ajustar a cor de textos secundários */
.contact-item,
.badge-info,
.user-details .text-muted {
    color: var(--text-secondary) !important;
}


/* === COMPONENTES DA TABELA === */
.user-info {
    display    : flex;
    align-items: center;
    gap        : 0.75rem;
}

.user-avatar {
    width          : 40px;
    height         : 40px;
    background     : var(--gradient-primary);
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-weight    : 700;
    color          : white;
    font-size      : 0.9rem;
}

.user-details strong {
    color      : #ffffff !important;
    font-weight: 600;
}

.badge-id,
.badge-info,
.badge-crm {
    padding      : 0.3rem 0.6rem;
    border-radius: 8px;
    font-size    : 0.8rem;
    font-weight  : 600;
}

.badge-id {
    background: rgba(139, 92, 246, 0.2);
    color     : var(--accent-purple);
}

/* === CORREÇÃO DOS BADGES === */
.badge-info {
    background: rgba(255, 255, 255, 0.15) !important;
    color     : #d0d0d0 !important;
    /* Texto mais claro nos badges */
    border    : 1px solid rgba(255, 255, 255, 0.1) !important;
}

.badge-crm {
    background: rgba(0, 212, 170, 0.25) !important;
    /* Verde mais forte */
    color     : #ffffff !important;
}

.specialty-badge {
    background: rgba(12, 105, 176, 0.4) !important;
    /* Azul mais forte */
    color     : #ffffff !important;
}

.contact-info {
    display       : flex;
    flex-direction: column;
    gap           : 0.3rem;
}

/* === CORREÇÃO DAS INFORMAÇÕES DE CONTATO === */
/* Melhor contraste para informações de contato */
.contact-item {
    color: #b0b0b0 !important;
    /* Cinza mais escuro */
}

.contact-item i {
    color: var(--accent-green) !important;
}

.text-primary {
    color      : #ffffff !important;
    /* Branco para texto importante */
    font-weight: 500;
}

/* === BOTÕES DE AÇÃO MODERNOS === */
.action-buttons-modern {
    display        : flex;
    gap            : 0.5rem;
    justify-content: center;
}

.btn-action {
    width          : 35px;
    height         : 35px;
    border         : none;
    border-radius  : 10px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    cursor         : pointer;
    transition     : all 0.3s ease;
    font-size      : 0.9rem;
}

.edit-btn {
    background: rgba(245, 158, 11, 0.2);
    color     : #f59e0b;
}

.edit-btn:hover {
    background: #f59e0b;
    color     : white;
    transform : scale(1.1);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.2);
    color     : #ef4444;
}

.delete-btn:hover {
    background: #ef4444;
    color     : white;
    transform : scale(1.1);
}

.view-btn {
    padding    : 10px 20px;
    border     : none;
    background : transparent;
    color      : var(--text-primary);
    cursor     : pointer;
    transition : all 0.3s ease;
    font-weight: 500;
}

.view-btn:hover {
    background: var(--primary-blue);
    color     : white;
    transform : scale(1.1);
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

.delete-form {
    display: inline;
    margin : 0;
}

/* === RODAPÉ DA TABELA === */
.table-footer {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    padding        : 1.5rem;
    border-top     : 1px solid var(--glass-border);
    background     : rgba(255, 255, 255, 0.05);
}

.table-info {
    color    : var(--text-secondary);
    font-size: 0.9rem;
}

.btn-export {
    background   : rgba(255, 255, 255, 0.1);
    border       : 1px solid var(--glass-border);
    color        : var(--text-primary);
    padding      : 0.6rem 1.2rem;
    border-radius: 10px;
    cursor       : pointer;
    transition   : all 0.3s ease;
    display      : flex;
    align-items  : center;
    gap          : 0.5rem;
    font-size    : 0.9rem;
    font-weight  : 500;
}

.btn-export:hover {
    background: var(--accent-green);
    color     : white;
    transform : translateY(-1px);
}

.btn-edit {
    background: rgba(52, 152, 219, 0.2);
    color     : #3498db;
}

.btn-edit:hover {
    background: rgba(52, 152, 219, 0.3);
    transform : translateY(-2px);
}

.btn-delete {
    background: rgba(231, 76, 60, 0.2);
    color     : #e74c3c;
}

.btn-delete:hover {
    background: rgba(231, 76, 60, 0.3);
    transform : translateY(-2px);
}


/* === ESTADO VAZIO DA TABELA === */
.empty-state-table {
    text-align: center;
    padding   : 3rem;
    color     : var(--text-secondary);
}

.empty-state-table i {
    font-size    : 4rem;
    margin-bottom: 1rem;
    opacity      : 0.5;
}

.empty-state-table h3 {
    color        : var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-table p {
    margin-bottom: 1.5rem;
}

/* === RESPONSIVIDADE === */
@media (max-width: 1024px) {
    .page-header {
        flex-direction: column;
        align-items   : stretch;
    }

    .header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }

    .search-box {
        min-width : 100%;
        margin-top: 1rem;
    }

    .table-footer {
        flex-direction: column;
        gap           : 1rem;
        text-align    : center;
    }

    .action-buttons-modern {
        flex-wrap      : wrap;
        justify-content: center;
    }

    .modern-datatable thead th:nth-child(4),
    .modern-datatable thead th:nth-child(5),
    .modern-datatable tbody td:nth-child(4),
    .modern-datatable tbody td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-actions {
        flex-direction: column;
    }

    .header-actions .btn-modern {
        width          : 100%;
        justify-content: center;
    }

    .user-info {
        flex-direction: column;
        text-align    : center;
        gap           : 0.5rem;
    }

    .contact-item {
        font-size: 0.8rem;
    }
}

/* === CORREÇÃO PARA TEMA CLARO === */
.light-theme .modern-datatable tbody td {
    color: #4a5568;
    /* Cinza escuro no tema claro */
}

.light-theme .modern-datatable tbody tr:hover td {
    color: #2d3748;
    /* Quase preto no hover */
}

.light-theme .user-details strong {
    color: #2d3748 !important;
    /* Texto escuro no tema claro */
}

/* Ajuste para o tema claro (manter consistência) */
.light-theme .modern-datatable thead th {
    background: #f8f9fa !important;
    color     : #2d3748 !important;
}

.light-theme .modern-datatable tbody tr {
    background: rgba(255, 255, 255, 0.5);
}

.light-theme .modern-datatable tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.light-theme .contact-item {
    color: #718096 !important;
}

.light-theme .badge-info {
    background: #f7fafc;
    color     : #4a5568 !important;
    border    : 1px solid #e2e8f0;
}

/* SOLUÇÃO RÁPIDA - Adicione isto */
.doctor-name-fix {
    color      : #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.light-theme .doctor-name-fix {
    color: #2d3748 !important;
}

/* === PAGINAÇÃO DATATABLES - TEMA ESCURO === */
/* === ESTILOS ESPECÍFICOS PARA DATATABLES PAGINATION === */
/* === CORREÇÕES ESPECÍFICAS PARA PAGINAÇÃO DO DATATABLES === */
.dataTables_wrapper {
    color     : var(--text-primary);
    margin-top: 1rem;
}

.dataTables_info {
    color    : var(--text-secondary) !important;
    font-size: 0.9rem;
    padding  : 0.5rem 0 !important;
}

.dataTables_paginate {
    margin-top: 1rem !important;
}

.dataTables_paginate .paginate_button {
    background   : rgba(255, 255, 255, 0.1) !important;
    border       : 1px solid var(--glass-border) !important;
    color        : var(--text-primary) !important;
    border-radius: 8px !important;
    margin       : 0 3px !important;
    padding      : 0.5rem 1rem !important;
    transition   : all 0.3s ease !important;
    cursor       : pointer !important;
}

.dataTables_paginate .paginate_button:hover {
    background     : var(--accent-green) !important;
    color          : white !important;
    border-color   : var(--accent-green) !important;
    transform      : translateY(-2px);
    text-decoration: none !important;
}

.dataTables_paginate .paginate_button.current {
    background  : var(--gradient-primary) !important;
    color       : white !important;
    border-color: var(--accent-green) !important;
}

.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color     : var(--text-secondary) !important;
    cursor    : not-allowed !important;
    transform : none !important;
    opacity   : 0.5 !important;
}

/* Bootstrap-style pagination markup (ul > li > a) used by DT_bootstrap */
.dark-theme .dataTables_paginate.pagination,
.dark-theme .dataTables_paginate.paging_bootstrap.pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 8px;
    gap: 6px;
    backdrop-filter: blur(6px);
}

.dark-theme .dataTables_paginate.pagination ul,
.dark-theme .dataTables_paginate.paging_bootstrap.pagination ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dark-theme .dataTables_paginate.pagination ul li,
.dark-theme .dataTables_paginate.paging_bootstrap.pagination ul li {
    margin: 0;
}

.dark-theme .dataTables_paginate.pagination ul li a,
.dark-theme .dataTables_paginate.paging_bootstrap.pagination ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--text-secondary) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
}

.dark-theme .dataTables_paginate.pagination ul li a:hover,
.dark-theme .dataTables_paginate.paging_bootstrap.pagination ul li a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary) !important;
}

.dark-theme .dataTables_paginate.pagination ul li.active a,
.dark-theme .dataTables_paginate.paging_bootstrap.pagination ul li.active a {
    background: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.06) inset;
}

.dark-theme .dataTables_paginate.pagination ul li.disabled a,
.dark-theme .dataTables_paginate.paging_bootstrap.pagination ul li.disabled a {
    opacity: 0.45 !important;
    pointer-events: none !important;
    cursor: default !important;
}

@media (max-width: 576px) {
  .dark-theme .dataTables_paginate.pagination,
  .dark-theme .dataTables_paginate.paging_bootstrap.pagination {
    padding: 6px;
    gap: 4px;
  }

  .dark-theme .dataTables_paginate.pagination ul li a,
  .dark-theme .dataTables_paginate.paging_bootstrap.pagination ul li a {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
  }
}

/* Estilo para os botões anterior/próximo */
.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
    font-weight: 600 !important;
}

/* Responsive details (DataTables Responsive child rows) */
.dark-theme table.dt-responsive-details {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.dark-theme table.dt-responsive-details td {
    padding: 8px 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dark-theme table.dt-responsive-details tr:last-child td {
    border-bottom: none;
}

.dark-theme table.dt-responsive-details .dt-custom-details td,
.dark-theme table.dt-responsive-details .dt-custom-details {
    background: rgba(255, 255, 255, 0.03);
}

.light-theme table.dt-responsive-details {
    width: 100%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.light-theme table.dt-responsive-details td {
    padding: 8px 12px;
    color: #4a5568;
    border-bottom: 1px solid #edf2f7;
}

.light-theme table.dt-responsive-details tr:last-child td {
    border-bottom: none;
}

.light-theme table.dt-responsive-details .dt-custom-details td,
.light-theme table.dt-responsive-details .dt-custom-details {
    background: #f8fafc;
}

/* Container da paginação */
.dataTables_paginate.paging_simple_numbers {
    padding: 0.5rem 0 !important;
}

/* Input de busca e select */
.dataTables_filter input,
.dataTables_length select {
    background   : rgba(255, 255, 255, 0.1) !important;
    border       : 1px solid var(--glass-border) !important;
    color        : var(--text-primary) !important;
    border-radius: 8px !important;
    padding      : 0.5rem !important;
    margin-left  : 0.5rem !important;
}

.dataTables_filter input:focus,
.dataTables_length select:focus {
    outline     : none !important;
    border-color: var(--accent-green) !important;
    box-shadow  : 0 0 0 2px rgba(0, 212, 170, 0.1) !important;
}

.dataTables_filter label,
.dataTables_length label {
    color      : var(--text-primary) !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.dataTables_filter label::before {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--text-secondary);
}

/* Tema dark - DataTables */
.dark-theme .dataTables_filter input,
.dark-theme .dataTables_length select {
    background   : rgba(0, 0, 0, 0.4) !important;
    border       : 1px solid rgba(255, 255, 255, 0.2) !important;
    color        : #ffffff !important;
}

.dark-theme .dataTables_length select option {
    background: #2c2c2c !important;
    color: #ffffff !important;
}

.dark-theme .dataTables_filter label,
.dark-theme .dataTables_length label {
    color: #6c757d !important;
}

.dark-theme .dataTables_filter label::before {
    color: #6c757d !important;
}

.dark-theme .dataTables_filter input::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* === CORREÇÃO DE LAYOUT GERAL === */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 0.5rem 0 !important;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center !important;
        float     : none !important;
        width     : 100% !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align   : center !important;
        margin-bottom: 1rem !important;
    }

    .dataTables_paginate .paginate_button {
        padding  : 0.4rem 0.8rem !important;
        margin   : 0 2px !important;
        font-size: 0.85rem !important;
    }
}

/* === BOTÕES DE AÇÃO DESTACADOS === */
.header-actions .btn-modern {
    background     : rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border         : 1px solid rgba(255, 255, 255, 0.25);
    color          : var(--text-primary);
    padding        : 0.85rem 1.75rem;
    border-radius  : 14px;
    font-weight    : 600;
    cursor         : pointer;
    transition     : all 0.3s ease;
    display        : inline-flex;
    align-items    : center;
    gap            : 0.75rem;
    font-family    : 'Inter', sans-serif;
    font-size      : 0.95rem;
    position       : relative;
    overflow       : hidden;
}

.header-actions .btn-modern::before {
    content   : '';
    position  : absolute;
    top       : 0;
    left      : -100%;
    width     : 100%;
    height    : 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.header-actions .btn-modern:hover::before {
    left: 100%;
}

.header-actions .btn-modern:hover {
    transform   : translateY(-3px);
    border-color: var(--accent-green);
    box-shadow  : 0 10px 30px rgba(0, 212, 170, 0.25);
}

.header-actions .btn-modern.btn-accent {
    background: var(--gradient-primary);
    color     : white;
    border    : 1px solid rgba(0, 212, 170, 0.4);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.3);
}

.header-actions .btn-modern.btn-accent:hover {
    background: var(--gradient-accent);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transform : translateY(-3px) scale(1.02);
}

.header-actions .btn-modern i {
    font-size : 1.1rem;
    transition: all 0.3s ease;
}

.header-actions .btn-modern:hover i {
    transform: scale(1.2);
}

.header-actions .btn-modern.btn-accent i {
    color      : rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* calendar ** agenda completa **/
.calendar-header {
    background     : linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color          : var(--text-primary);
    padding        : 25px;
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    flex-wrap      : wrap;
    gap            : 20px;
}

.calendar-title {
    font-size  : 1.8em;
    font-weight: 600;
    margin     : 0;
    display    : flex;
    align-items: center;
    gap        : 12px;
}

.calendar-title i {
    font-size: 1.4em;
}

.calendar-controls {
    display    : flex;
    gap        : 15px;
    align-items: center;
    flex-wrap  : wrap;
}

.calendar-nav {
    display    : flex;
    gap        : 8px;
    align-items: center;
}

.calendar-nav-btn {
    background     : rgba(255, 255, 255, 0.2);
    border         : none;
    color          : white;
    padding        : 10px 14px;
    border-radius  : 8px;
    cursor         : pointer;
    transition     : all 0.3s ease;
    backdrop-filter: blur(10px);
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform : translateY(-2px);
}

.current-month {
    font-size      : 1.3em;
    font-weight    : 500;
    min-width      : 220px;
    text-align     : center;
    padding        : 8px 16px;
    background     : rgba(255, 255, 255, 0.1);
    border-radius  : 8px;
    backdrop-filter: blur(10px);
}

.calendar-filters {
    display    : flex;
    gap        : 15px;
    align-items: center;
    flex-wrap  : wrap;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.calendar-grid {
    padding: 25px;
}

/* Visualização Mês */
.month-view {
    display: none;
}

.month-view.active {
    display: block;
}

.weekdays-header {
    display              : grid;
    grid-template-columns: repeat(7, 1fr);
    gap                  : 1px;
    background           : rgba(255, 255, 255, 0.05);
    border-radius        : 12px 12px 0 0;
    overflow             : hidden;
    margin-bottom        : 1px;
}

.weekday {
    padding        : 18px 12px;
    text-align     : center;
    font-weight    : 600;
    color          : var(--text-primary);
    background     : rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-bottom  : 1px solid rgba(255, 255, 255, 0.1);
}

.days-grid {
    display              : grid;
    grid-template-columns: repeat(7, 1fr);
    gap                  : 1px;
    background           : rgba(255, 255, 255, 0.05);
    border-radius        : 0 0 12px 12px;
    overflow             : hidden;
}

.calendar-day {
    min-height     : 140px;
    background     : rgba(255, 255, 255, 0.05);
    padding        : 12px;
    border         : 1px solid rgba(255, 255, 255, 0.1);
    position       : relative;
    transition     : all 0.3s ease;
    backdrop-filter: blur(10px);
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.08);
    transform : translateY(-2px);
}

.calendar-day.other-month {
    background: rgba(255, 255, 255, 0.02);
    color     : rgba(255, 255, 255, 0.4);
}

.calendar-day.today {
    background: rgba(12, 105, 176, 0.2);
    border    : 2px solid var(--primary-color);
}

.day-number {
    font-weight  : 600;
    margin-bottom: 8px;
    color        : var(--text-primary);
    font-size    : 1.1em;
}

.day-events {
    max-height: 100px;
    overflow-y: auto;
}

.event-item {
    background     : var(--primary-color);
    color          : white;
    padding        : 6px 10px;
    margin         : 3px 0;
    border-radius  : 6px;
    font-size      : 0.8em;
    cursor         : pointer;
    transition     : all 0.3s ease;
    backdrop-filter: blur(10px);
    border         : 1px solid rgba(255, 255, 255, 0.2);
}

.event-item:hover {
    transform : translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-item.emergencia {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.event-item.consulta {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.event-item.retorno {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.event-item.exame {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.event-item.cirurgia {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

/* Visualização Semana */
.week-view {
    display: none;
}

.week-view.active {
    display: block;
}

.week-grid {
    display              : grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap                  : 1px;
    background           : rgba(255, 255, 255, 0.05);
    border-radius        : 12px;
    overflow             : hidden;
}

.time-slot {
    background     : rgba(255, 255, 255, 0.08);
    padding        : 15px;
    text-align     : center;
    font-weight    : 600;
    color          : var(--text-primary);
    border-bottom  : 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.week-day {
    background     : rgba(255, 255, 255, 0.08);
    padding        : 15px;
    text-align     : center;
    font-weight    : 600;
    color          : var(--text-primary);
    border-bottom  : 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.week-hour {
    background     : rgba(255, 255, 255, 0.05);
    padding        : 8px;
    text-align     : center;
    font-size      : 0.85em;
    color          : var(--text-secondary);
    border-bottom  : 1px solid rgba(255, 255, 255, 0.05);
    min-height     : 60px;
    display        : flex;
    flex-direction : column;
    justify-content: flex-start;
    align-items    : center;
}

.week-event {
    background     : var(--primary-color);
    color          : white;
    padding        : 6px 10px;
    margin         : 2px;
    border-radius  : 6px;
    font-size      : 0.75em;
    cursor         : pointer;
    transition     : all 0.3s ease;
    width          : 95%;
    backdrop-filter: blur(10px);
    border         : 1px solid rgba(255, 255, 255, 0.2);
}

.week-event:hover {
    transform : translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-modal {
    display        : none;
    position       : fixed;
    top            : 0;
    left           : 0;
    width          : 100%;
    height         : 100%;
    background     : rgba(0, 0, 0, 0.7);
    z-index        : 1000;
    justify-content: center;
    align-items    : center;
    backdrop-filter: blur(5px);
}

.event-modal-content {
    background     : var(--glass-bg);
    backdrop-filter: blur(20px);
    border         : 1px solid var(--glass-border);
    padding        : 30px;
    border-radius  : 16px;
    max-width      : 500px;
    width          : 90%;
    max-height     : 80vh;
    overflow-y     : auto;
    box-shadow     : var(--glass-shadow);
    color          : var(--text-primary);
}

.event-modal h3 {
    margin-top   : 0;
    color        : var(--text-primary);
    font-size    : 1.5em;
    margin-bottom: 20px;
    display      : flex;
    align-items  : center;
    gap          : 10px;
}

.event-detail {
    margin       : 15px 0;
    padding      : 15px;
    background   : rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border       : 1px solid rgba(255, 255, 255, 0.1);
}

.event-detail strong {
    color        : var(--text-primary);
    display      : inline-block;
    margin-bottom: 5px;
}



.view-toggle {
    display        : flex;
    background     : rgba(255, 255, 255, 0.1);
    border-radius  : 8px;
    overflow       : hidden;
    backdrop-filter: blur(10px);
}



/* Scrollbar personalizado */
.day-events::-webkit-scrollbar {
    width: 4px;
}

.day-events::-webkit-scrollbar-track {
    background   : rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.day-events::-webkit-scrollbar-thumb {
    background   : rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.day-events::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        align-items   : stretch;
        padding       : 20px;
    }

    .calendar-controls {
        justify-content: center;
    }

    .calendar-filters {
        justify-content: center;
    }

    .week-grid {
        grid-template-columns: 80px repeat(7, 1fr);
        font-size            : 0.8em;
    }

    .calendar-day {
        min-height: 120px;
        padding   : 8px;
    }

    .current-month {
        min-width: auto;
        font-size: 1.1em;
    }
}

.stats-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap                  : 20px;
    margin-bottom        : 25px;
}

.stat-card {
    background     : var(--glass-bg);
    backdrop-filter: blur(10px);
    border         : 1px solid var(--glass-border);
    border-radius  : 12px;
    padding        : 25px;
    display        : flex;
    align-items    : center;
    gap            : 20px;
    transition     : all 0.3s ease;
}

.stat-card:hover {
    transform : translateY(-5px);
    box-shadow: var(--glass-shadow);
}

.stat-icon {
    width          : 60px;
    height         : 60px;
    border-radius  : 12px;
    background     : linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : 1.5em;
    color          : white;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display      : block;
    font-size    : 2em;
    font-weight  : 700;
    color        : var(--text-primary);
    line-height  : 1;
    margin-bottom: 5px;
}

.stat-label {
    color      : var(--text-secondary);
    font-size  : 0.9em;
    font-weight: 500;
}

.form-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap                  : 1.5rem;
}

.form-group {
    display       : flex;
    flex-direction: column;
    gap           : 0.5rem;
}

.form-label {
    font-weight: 500;
    color      : var(--text-primary);
    font-size  : 0.95rem;
}

.form-control {
    padding        : 0.875rem 1rem;
    background     : rgba(255, 255, 255, 0.08);
    border         : 1px solid rgba(255, 255, 255, 0.15);
    border-radius  : 10px;
    color          : var(--text-primary);
    font-size      : 0.95rem;
    transition     : all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Correção para selects - manter o estilo glassmorphism */
.form-control option {
    background: rgba(30, 30, 40, 0.95) !important;
    color     : var(--text-primary) !important;
    padding   : 10px;
}

/* Para navegadores Webkit (Chrome, Safari) */
.form-control::-webkit-scrollbar {
    width: 8px;
}

.form-control::-webkit-scrollbar-track {
    background   : rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.form-control::-webkit-scrollbar-thumb {
    background   : rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Para Firefox */
.form-control {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Garantir que os selects tenham o mesmo estilo */
select.form-control {
    appearance         : none;
    -webkit-appearance : none;
    -moz-appearance    : none;
    background-image   : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat  : no-repeat;
    background-position: right 1rem center;
    background-size    : 12px;
    padding-right      : 2.5rem;
}

.form-control:focus {
    outline     : none;
    border-color: var(--primary-color);
    background  : rgba(255, 255, 255, 0.12);
    box-shadow  : 0 0 0 3px rgba(74, 144, 226, 0.1);
}


.invalido {
    border          : 2px solid #e74c3c !important;
    background-color: var(--bg-color, #ffffff) !important;
    color           : var(--text-color, #333333) !important;
}

.valido {
    border          : 2px solid #27ae60 !important;
    background-color: var(--bg-color, #ffffff) !important;
    color           : var(--text-color, #333333) !important;
}

.feedback-message {
    font-size : 0.875rem;
    margin-top: 0.25rem;
    color     : #333333;
}

.feedback-message:not(:empty) {
    padding      : 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.dark-theme .invalido {
    border          : 2px solid #e74c3c !important;
    background-color: var(--bg-color, #1e1e1e) !important;
    color           : var(--text-color, #ffffff) !important;
}

.dark-theme .valido {
    border          : 2px solid #27ae60 !important;
    background-color: var(--bg-color, #1e1e1e) !important;
    color           : var(--text-color, #ffffff) !important;
}

.dark-theme .feedback-message {
    color: #ffffff;
}

.form-group-inline {
    display    : flex;
    gap        : 10px;
    align-items: flex-end;
}

.form-group-inline .form-control {
    flex: 1;
}

/* Notificações modernas */
.notification {
    position     : fixed;
    top          : 20px;
    right        : 20px;
    padding      : 15px 20px;
    border-radius: 8px;
    color        : white;
    font-weight  : 500;
    z-index      : 10000;
    box-shadow   : 0 4px 12px rgba(0, 0, 0, 0.15);
    transform    : translateX(400px);
    opacity      : 0;
    transition   : all 0.3s ease;
    max-width    : 400px;
    display      : flex;
    align-items  : center;
    gap          : 10px;
}

.notification.show {
    transform: translateX(0);
    opacity  : 1;
}

.notification.success {
    background : linear-gradient(135deg, #27ae60, #2ecc71);
    border-left: 4px solid #219653;
}

.notification.error {
    background : linear-gradient(135deg, #e74c3c, #ff6b6b);
    border-left: 4px solid #c0392b;
}

.notification.warning {
    background : linear-gradient(135deg, #f39c12, #f1c40f);
    border-left: 4px solid #e67e22;
}

.notification.info {
    background : linear-gradient(135deg, #3498db, #2980b9);
    border-left: 4px solid #2980b9;
}

.notification .icon {
    font-size: 1.2em;
}

.notification .close-btn {
    background     : none;
    border         : none;
    color          : white;
    font-size      : 1.2em;
    cursor         : pointer;
    margin-left    : auto;
    padding        : 0;
    width          : 20px;
    height         : 20px;
    display        : flex;
    align-items    : center;
    justify-content: center;
}

/* Loading spinner */
.loading-spinner {
    display         : inline-block;
    width           : 20px;
    height          : 20px;
    border          : 3px solid #ffffff;
    border-radius   : 50%;
    border-top-color: transparent;
    animation       : spin 1s ease-in-out infinite;
    margin-right    : 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Botão com estado de loading */
.btn-loading {
    position: relative;
    color   : transparent !important;
}

.btn-loading::after {
    content         : '';
    position        : absolute;
    width           : 20px;
    height          : 20px;
    top             : 50%;
    left            : 50%;
    margin-left     : -10px;
    margin-top      : -10px;
    border          : 2px solid #ffffff;
    border-radius   : 50%;
    border-top-color: transparent;
    animation       : spin 1s ease-in-out infinite;
}

textarea.form-control {
    resize    : vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.form-actions {
    display        : flex;
    gap            : 1rem;
    justify-content: flex-end;
    margin-top     : 1rem;
    padding-top    : 1.5rem;
    border-top     : 2px solid rgba(255, 255, 255, 0.1);
}

.btn-modern {
    display        : flex;
    align-items    : center;
    gap            : 0.5rem;
    padding        : 0.875rem 1.5rem;
    border         : none;
    border-radius  : 10px;
    font-weight    : 500;
    font-size      : 0.95rem;
    cursor         : pointer;
    transition     : all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color     : white;
}

.btn-primary:hover {
    transform : translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color     : var(--text-primary);
    border    : 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform : translateY(-2px);
}

.btn-add-record {
    background     : linear-gradient(135deg, #27ae60, #229954);
    color          : white;
    padding        : 0.875rem 1.5rem;
    border-radius  : 10px;
    text-decoration: none;
    display        : inline-flex;
    align-items    : center;
    gap            : 0.5rem;
    font-weight    : 500;
    transition     : all 0.3s ease;
}

.btn-add-record:hover {
    transform : translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

@media (max-width: 768px) {
    .patient-info-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap           : 1rem;
        align-items   : flex-start;
    }

    .record-header {
        flex-direction: column;
        gap           : 0.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-modern {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-modern {
        justify-content: center;
    }

    .modern-table {
        font-size: 0.85rem;
    }

    .modern-table th,
    .modern-table td {
        padding: 0.75rem 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
        gap           : 0.25rem;
    }

    .btn-action {
        width : 32px;
        height: 32px;
    }
}

.grade-container {
    display       : flex;
    flex-direction: column;
    gap           : 2rem;
}

.form-section {
    background     : rgba(255, 255, 255, 0.05);
    border         : 1px solid rgba(255, 255, 255, 0.1);
    border-radius  : 16px;
    padding        : 2rem;
    backdrop-filter: blur(10px);
}

.section-header {
    display       : flex;
    align-items   : center;
    gap           : 0.75rem;
    font-size     : 1.25rem;
    font-weight   : 600;
    color         : var(--text-primary);
    margin-bottom : 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom : 2px solid rgba(255, 255, 255, 0.1);
}

.section-header i {
    color    : var(--primary-color);
    font-size: 1.1rem;
}

.table-container {
    background     : rgba(255, 255, 255, 0.05);
    border         : 1px solid rgba(255, 255, 255, 0.1);
    border-radius  : 16px;
    padding        : 2rem;
    backdrop-filter: blur(10px);
    overflow-x     : auto;
}

.modern-table {
    width          : 100%;
    border-collapse: collapse;
    margin-top     : 1rem;
}

.modern-table thead {
    background: rgba(255, 255, 255, 0.08);
}

.modern-table th {
    padding      : 1rem;
    text-align   : left;
    font-weight  : 600;
    color        : var(--text-primary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modern-table td {
    padding      : 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color        : var(--text-secondary);
}

.modern-table tbody tr {
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.status-badge {
    padding      : 0.25rem 0.75rem;
    border-radius: 20px;
    font-size    : 0.8rem;
    font-weight  : 500;
}

.status-active {
    background: rgba(39, 174, 96, 0.2);
    color     : #27ae60;
    border    : 1px solid rgba(39, 174, 96, 0.3);
}

.status-inactive {
    background: rgba(231, 76, 60, 0.2);
    color     : #e74c3c;
    border    : 1px solid rgba(231, 76, 60, 0.3);
}

.action-buttons {
    display: flex;
    gap    : 0.5rem;
}


.empty-state {
    text-align: center;
    padding   : 3rem 2rem;
    color     : var(--text-secondary);
}

A .empty-state i {
    font-size    : 3rem;
    margin-bottom: 1rem;
    opacity      : 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color        : var(--text-primary);
}


.header-controls {
    display    : flex;
    align-items: center;
    gap        : 15px;
    margin-left: auto;
    padding    : 0 10px;
}

.theme-toggle,
.logout-btn {
    width          : 44px;
    height         : 44px;
    border-radius  : 50%;
    border         : 2px solid var(--border-color);
    background     : transparent;
    color          : var(--text-color);
    cursor         : pointer;
    display        : flex;
    align-items    : center;
    justify-content: center;
    transition     : all 0.3s ease;
    text-decoration: none;
}

.theme-toggle:hover,
.logout-btn:hover {
    background  : var(--hover-color);
    border-color: var(--primary-color);
    transform   : translateY(-2px);
}

.logout-btn {
    border-color: var(--error-color);
    color       : var(--error-color);
}

.logout-btn:hover {
    background: var(--error-color);
    color     : white;
}

.btn-schedule-appointment {
    background   : var(--primary-color);
    color        : white;
    border       : none;
    padding      : 10px 20px;
    border-radius: 25px;
    cursor       : pointer;
    display      : flex;
    align-items  : center;
    gap          : 8px;
    transition   : all 0.3s ease;
    font-weight  : 600;
}

.btn-schedule-appointment:hover {
    background: var(--primary-dark);
    transform : translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ... seu CSS atual ... */

/* === VARIÁVEIS CSS AUSENTES - ADICIONE ESTAS === */
:root {
    --primary-color: #2563eb;
    --primary-dark : #1d4ed8;
    --bg-color     : #0f0f0f;
    --bg-secondary : #1a1a1a;
    --text-color   : #ffffff;
    --border-color : rgba(255, 255, 255, 0.2);
    --hover-color  : rgba(255, 255, 255, 0.1);
    --error-color  : #dc2626;
}

.light-theme {
    --primary-color: #3b82f6;
    --primary-dark : #2563eb;
    --bg-color     : #f8fafc;
    --bg-secondary : #ffffff;
    --text-color   : #1e293b;
    --border-color : #e2e8f0;
    --hover-color  : #f1f5f9;
    --error-color  : #ef4444;
}

/* === RESPONSIVIDADE MONITORES GRANDES (>1600px) === */
@media (min-width: 1600px) {
    .header-content {
        max-width: 1600px;
        gap      : 2rem;
    }

    .modern-nav {
        gap: 1.5rem;
    }

    .nav-menu {
        gap: 0.75rem;
    }

    .header-controls {
        gap: 1rem;
    }
}

/* === RESPONSIVIDADE MONITORES MÉDIOS (1200px - 1599px) === */
@media (min-width: 1200px) and (max-width: 1599px) {
    .header-content {
        padding: 0.75rem 1rem;
        gap    : 0.5rem;
    }

    .logo-section {
        max-width: 280px;
    }

    .logo-link {
        font-size: 1.4rem;
    }

    .logo-link i {
        font-size: 1.6rem;
    }

    .user-welcome {
        margin-left: 0.5rem;
    }

    .welcome-text {
        font-size: 0.7rem;
        max-width: 120px;
    }

    .company-code {
        font-size: 0.6rem;
    }

    .nav-menu {
        gap: 0.2rem;
    }

    .nav-link {
        padding  : 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .nav-link i {
        font-size: 0.9rem;
        width: 18px;
    }

    .nav-link span {
        display: inline;
    }

    .header-controls {
        gap: 0.5rem;
    }

    .theme-toggle,
    .logout-btn {
        width: 38px;
        height: 38px;
    }

    .btn-schedule-appointment {
        padding  : 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* === RESPONSIVIDADE MONITORES PEQUENOS (1025px - 1199px) === */
@media (min-width: 1025px) and (max-width: 1199px) {
    .header-content {
        padding: 0.75rem 1rem;
        gap    : 0.5rem;
    }

    .logo-section {
        max-width: 250px;
    }

    .logo-link {
        font-size: 1.3rem;
    }

    .logo-link i {
        font-size: 1.5rem;
    }

    .user-welcome {
        margin-left: 0.4rem;
    }

    .welcome-text {
        font-size: 0.65rem;
        max-width: 100px;
    }

    .company-code {
        font-size: 0.55rem;
        padding  : 0.1rem 0.3rem;
    }

    .nav-menu {
        gap: 0.15rem;
    }

    .nav-link {
        padding  : 0.5rem 0.65rem;
        font-size: 0.75rem;
    }

    .nav-link i {
        font-size: 0.85rem;
        width: 16px;
    }

    .header-controls {
        gap: 0.4rem;
    }

    .theme-toggle,
    .logout-btn {
        width: 36px;
        height: 36px;
    }

    .theme-toggle i,
    .logout-btn i {
        font-size: 0.9rem;
    }

    .btn-schedule-appointment {
        padding  : 0.5rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* === RESPONSIVIDADE TABLETS (769px - 1024px) === */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-content {
        padding: 1rem 1.5rem;
        gap    : 1.5rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-link {
        padding  : 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .btn-schedule-appointment {
        padding  : 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

    .user-welcome {
        margin-left: 0.75rem;
    }

    .welcome-text {
        font-size: 0.75rem;
    }

    .company-code {
        font-size: 0.65rem;
        padding  : 0.15rem 0.5rem;
    }
}

/* === HEADER MOBILE RESPONSIVO (até 768px) === */
@media (max-width: 768px) {
    .modern-header {
        position: relative;
    }

    .header-content {
        flex-wrap      : wrap;
        padding        : 0.5rem 0.5rem;
        gap            : 0.5rem;
        justify-content: flex-start;
        position       : relative;
    }

    /* Logo e boas-vindas ocupam linha completa */
    .logo-section {
        flex           : 1 1 100%;
        width          : 100%;
        max-width      : 100%;
        display        : flex;
        justify-content: space-between;
        align-items    : center;
        margin-bottom  : 0;
        min-width      : 0;
        overflow       : hidden;
    }

    .logo {
        display       : flex;
        flex-direction: row;
        align-items   : center;
        gap           : 0.4rem;
        flex-shrink   : 1;
        min-width     : 0;
        max-width     : 60%;
    }

    .logo-link {
        font-size  : 1.1rem;
        white-space: nowrap;
        overflow   : hidden;
        text-overflow: ellipsis;
    }

    .logo-link i {
        font-size  : 1.3rem;
        flex-shrink: 0;
    }

    /* Boas-vindas ajustado para mobile */
    .user-welcome {
        margin-left   : 0;
        text-align    : right;
        flex-direction: column;
        gap           : 0.15rem;
        align-items   : flex-end;
        flex-shrink   : 1;
        max-width     : 40%;
        overflow      : hidden;
    }

    .welcome-text {
        font-size  : 0.6rem;
        white-space: nowrap;
        overflow   : hidden;
        text-overflow: ellipsis;
        max-width  : 130px;
    }

    .company-code {
        font-size: 0.55rem;
        padding  : 0.1rem 0.3rem;
    }

    /* Navegação mobile - segunda linha */
    .modern-nav {
        flex           : 1 1 100%;
        width          : 100%;
        display        : flex;
        justify-content: space-between;
        align-items    : center;
        position       : relative;
        min-width      : 0;
        overflow       : visible;
    }

    /* Botão hamburger - IMPORTANTE: é um label, não um button */
    .menu-toggle {
        display        : flex !important;
        background     : rgba(255, 255, 255, 0.1);
        border         : 1px solid var(--glass-border);
        border-radius  : 6px;
        width          : 32px;
        height         : 32px;
        min-width      : 32px;
        align-items    : center;
        justify-content: center;
        cursor         : pointer;
        color          : var(--text-primary);
        transition     : all 0.3s ease;
        z-index        : 1002;
        flex-shrink    : 0;
        padding        : 0;
        margin-right   : 0.3rem;
        user-select    : none;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        position       : relative;
    }

    .menu-toggle i {
        font-size: 0.85rem;
        pointer-events: none; /* Permite click passar para o label */
    }

    .menu-toggle:active {
        background: rgba(255, 255, 255, 0.25);
        transform : scale(0.95);
    }

    /* Menu fullscreen mobile */
    .nav-menu {
        display        : none;
        position       : fixed;
        top            : 0;
        left           : 0;
        width          : 100%;
        height         : 100vh;
        background     : var(--bg-color);
        backdrop-filter: blur(20px);
        flex-direction : column;
        padding        : 80px 1.25rem 30px;
        z-index        : 1001;
        overflow-y     : auto;
        box-shadow     : none;
        margin         : 0;
        gap            : 0.5rem;
    }

    .nav-menu li {
        width : 100%;
        margin: 0;
    }

    .nav-link {
        width          : 100%;
        padding        : 1rem 1.25rem;
        border-radius  : 12px;
        display        : flex;
        justify-content: flex-start;
        align-items    : center;
        gap            : 0.75rem;
        font-size      : 1rem;
        border         : 1px solid rgba(255, 255, 255, 0.1);
        cursor         : pointer;
        user-select    : none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Texto do nav-link deve crescer para empurrar a seta para a direita */
    .nav-link span {
        flex-grow: 1;
    }

    .nav-link i:first-child {
        font-size: 1.2rem;
        width    : 24px;
    }

    /* Labels funcionam como botões no mobile */
    .has-submenu label.nav-link {
        cursor         : pointer;
        display        : flex !important;
        justify-content: space-between !important;
        align-items    : center !important;
    }

    /* Garantir que dropdown icon seja SEMPRE visível em labels no mobile */
    .has-submenu label.nav-link .dropdown-icon {
        display   : inline-block !important;
        font-size : 0.9rem !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        transition : transform 0.3s ease !important;
    }

    /* Submenus mobile - HIDDEN por padrão */
    .nav-menu .has-submenu .submenu {
        position     : static !important;
        width        : 100% !important;
        box-shadow   : none !important;
        background   : rgba(255, 255, 255, 0.05) !important;
        margin       : 0.5rem 0 0 0 !important;
        display      : none !important;
        padding      : 0 !important;
        border-radius: 10px !important;
        overflow     : hidden !important;
        max-height   : 0 !important;
        opacity      : 0 !important;
        transition   : all 0.3s ease !important;
        transform    : none !important;
        visibility   : hidden !important;
    }

    /* MOSTRAR submenu quando checkbox está marcado no mobile */
    .nav-menu .has-submenu input.submenu-toggle:checked ~ ul.submenu {
        display    : block !important;
        max-height : 2000px !important;
        opacity    : 1 !important;
        visibility : visible !important;
        padding    : 0.5rem 0 !important;
    }

    /* Rotacionar ícone do dropdown quando submenu aberto no mobile */
    .nav-menu .has-submenu input.submenu-toggle:checked ~ label.nav-link .dropdown-icon {
        transform: rotate(180deg) !important;
    }

    /* Highlight do label quando submenu aberto no mobile */
    .nav-menu .has-submenu input.submenu-toggle:checked ~ label.nav-link {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    /* Garantir que o ícone dropdown seja visível no mobile */
    .nav-menu .has-submenu .dropdown-icon {
        display    : inline-block !important;
        margin-left: auto !important;
        transition : transform 0.3s ease !important;
    }

    .submenu-link {
        padding      : 0.875rem 1.25rem 0.875rem 3rem;
        font-size    : 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display      : flex;
        align-items  : center;
        gap          : 0.5rem;
    }

    .submenu-link:last-child {
        border-bottom: none;
    }

    .menu-separator {
        height    : 1px;
        background: rgba(255, 255, 255, 0.1);
        margin    : 0.5rem 1.25rem;
    }

    /* Controles do header (tema, logout, agendar) */
    .header-controls {
        display         : flex;
        align-items     : flex-end;
        gap             : 0.4rem;
        flex-shrink     : 0;
        flex-wrap       : wrap;
        margin-left     : auto;
        padding-left    : 0.4rem;
        max-width       : 160px;
        justify-content : flex-end;
    }

    .theme-toggle,
    .logout-btn {
        width          : 36px;
        height         : 36px;
        min-width      : 36px;
        border         : 1px solid var(--glass-border);
        background     : rgba(255, 255, 255, 0.1);
        border-radius  : 6px;
        display        : flex;
        align-items    : center;
        justify-content: center;
        flex-shrink    : 0;
        padding        : 0;
        position       : relative;
        z-index        : 10;
    }

    .theme-toggle i,
    .logout-btn i {
        font-size: 0.95rem;
    }

    /* Botão agendar - segunda linha, largura total */
    .btn-schedule-appointment {
        padding        : 0.5rem 0.75rem;
        width          : 100%;
        height         : auto;
        min-height     : 40px;
        min-width      : 100%;
        border-radius  : 6px;
        display        : flex;
        align-items    : center;
        justify-content: center;
        gap            : 0.5rem;
        flex-shrink    : 0;
        position       : relative;
        z-index        : 10;
        flex-basis     : 100%;
        white-space    : nowrap;
    }

    .btn-schedule-appointment span {
        display   : inline-block;
        font-size : 0.85rem;
    }

    .btn-schedule-appointment i {
        margin   : 0;
        font-size: 0.9rem;
    }

    /* Barra de empresa */
    .company-bar {
        padding: 0.5rem 1rem;
    }

    .company-info {
        padding: 0 1rem;
    }

    .company-badge {
        font-size    : 0.7rem;
        padding      : 0.3rem 0.75rem;
        display      : block;
        overflow     : hidden;
        text-overflow: ellipsis;
        white-space  : nowrap;
    }
}

/* === TELAS MUITO PEQUENAS (até 480px) === */
@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 0.5rem;
        gap    : 0.4rem;
    }

    .logo-link {
        font-size: 1.1rem;
        gap      : 0.3rem;
    }

    .logo-link i {
        font-size: 1.3rem;
    }

    /* Simplifica boas-vindas */
    .user-welcome {
        max-width: 120px;
    }

    .welcome-text {
        font-size    : 0.6rem;
        max-width    : 120px;
        overflow     : hidden;
        text-overflow: ellipsis;
    }

    .company-code {
        font-size: 0.55rem;
        padding  : 0.1rem 0.3rem;
    }

    /* Controles menores */
    .header-controls {
        gap: 0.3rem;
    }

    .menu-toggle,
    .theme-toggle,
    .logout-btn,
    .btn-schedule-appointment {
        width    : 32px;
        height   : 32px;
        min-width: 32px;
    }

    .menu-toggle i,
    .theme-toggle i,
    .logout-btn i,
    .btn-schedule-appointment i {
        font-size: 0.85rem;
    }

    .nav-menu {
        padding: 70px 1rem 20px;
    }

    .nav-link {
        padding: 0.875rem 1rem;
    }

    .submenu-link {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }

    .company-badge {
        font-size: 0.65rem;
        padding  : 0.25rem 0.6rem;
    }
}

/* === TELAS EXTRA PEQUENAS (até 360px) === */
@media (max-width: 360px) {
    .logo-link {
        font-size: 1.1rem;
    }

    .logo-link i {
        font-size: 1.35rem;
    }

    .user-welcome {
        display: none;
    }

    .header-controls {
        gap: 0.25rem;
    }

    .menu-toggle,
    .theme-toggle,
    .logout-btn,
    .btn-schedule-appointment {
        width : 36px;
        height: 36px;
    }

    .menu-toggle i,
    .theme-toggle i,
    .logout-btn i,
    .btn-schedule-appointment i {
        font-size: 0.95rem;
    }
}

/* === ANIMAÇÕES PARA O MENU MOBILE === */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity  : 0;
    }

    to {
        transform: translateX(0);
        opacity  : 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity  : 1;
    }

    to {
        transform: translateX(100%);
        opacity  : 0;
    }
}

.nav-menu.active {
    animation: slideInRight 0.3s ease-out;
}

.nav-menu:not(.active) {
    animation: slideOutRight 0.3s ease-out;
}


/* === CORREÇÕES ESPECÍFICAS PARA SAPACIENTE.PHP MOBILE === */
@media (max-width: 768px) {

    /* Header da página */
    .page-header {
        flex-direction: column;
        gap           : 1rem;
    }

    .header-actions {
        justify-content: center;
        flex-wrap      : wrap;
        gap            : 0.75rem;
    }

    .header-actions .btn-modern {
        flex           : 1;
        min-width      : 140px;
        justify-content: center;
    }

    /* Search box */
    .search-box {
        min-width : 100%;
        margin-top: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items   : stretch;
        gap           : 1rem;
    }

    /* Tabela */
    .table-container {
        padding   : 1rem;
        overflow-x: auto;
    }

    .modern-datatable {
        min-width: 800px;
    }

    /* DataTables mobile */
    .dataTables_filter input {
        width      : 100% !important;
        margin-left: 0 !important;
        margin-top : 0.5rem;
    }

    /* Footer da tabela */
    .table-footer {
        flex-direction: column;
        gap           : 1rem;
        text-align    : center;
    }

    /* Ações */
    .action-buttons-modern {
        flex-direction: column;
        gap           : 0.25rem;
    }

    .btn-action {
        width : 32px;
        height: 32px;
    }
}

/* === MENU MOBILE COM CSS PURO (SEM JAVASCRIPT) === */
/* Checkboxes já estão definidos na seção MENU TOGGLE acima */

/* Desktop - manter hover normal */
@media (min-width: 769px) {
    .has-submenu:hover .submenu {
        display   : block;
        opacity   : 1;
        visibility: visible;
        transform : translateY(0);
    }

    .has-submenu:hover .dropdown-icon {
        transform: rotate(180deg);
    }
}

/* Mobile - controle via checkbox */
@media (max-width: 768px) {
    /* Mostrar menu quando checkbox principal está marcado */
    .modern-nav input#menu-toggle.menu-toggle-checkbox:checked ~ ul.nav-menu {
        display  : flex !important;
        animation: slideInFromTop 0.3s ease-out forwards;
    }

    /* Fallback mais genérico */
    input.menu-toggle-checkbox:checked ~ ul.nav-menu {
        display  : flex !important;
    }

    /* Mudar ícone do hamburger para X quando menu aberto */
    .menu-toggle-checkbox:checked ~ label.menu-toggle i::before {
        content: "\f00d" !important;
    }

    /* Rotacionar background do botão quando menu aberto */
    .menu-toggle-checkbox:checked ~ label.menu-toggle {
        background  : rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
    }

    /* Prevenir scroll do body quando menu está aberto */
    body:has(.menu-toggle-checkbox:checked) {
        overflow: hidden;
    }
}

/* === ANIMAÇÕES SUAVES PARA MENU MOBILE === */
@keyframes slideInFromTop {
    from {
        opacity  : 0;
        transform: translateY(-20px);
    }
    to {
        opacity  : 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity       : 0;
        max-height    : 0;
        transform     : translateY(-10px);
    }
    to {
        opacity       : 1;
        max-height    : 1000px;
        transform     : translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === AJUSTES DESKTOP E WIDESCREEN === */

/* === AJUSTES PARA NOTEBOOKS 15" (1024px - 1366px) === */
@media (min-width: 1024px) and (max-width: 1366px) {
    .header-content {
        max-width: 100%;
        padding  : 0.875rem 1.25rem;
        gap      : 1rem;
    }

    .logo-link {
        font-size: 1.5rem;
    }

    .logo-link i {
        font-size: 1.75rem;
    }

    .user-welcome {
        margin-left: 0.5rem;
    }

    .welcome-text {
        font-size: 0.7rem;
    }

    .company-code {
        font-size: 0.65rem;
        padding  : 0.15rem 0.5rem;
    }

    /* Reduzir espaçamento do menu */
    .nav-menu {
        gap: 0.25rem;
    }

    .nav-link {
        padding  : 0.6rem 0.8rem;
        font-size: 0.85rem;
        gap      : 0.4rem;
    }

    .nav-link i {
        font-size: 1rem;
        width    : 18px;
    }

    .nav-link span {
        font-size: 0.85rem;
    }

    /* Compactar controles do header */
    .header-controls {
        gap: 0.5rem;
    }

    .theme-toggle,
    .logout-btn {
        width : 38px;
        height: 38px;
    }

    .btn-schedule-appointment {
        padding  : 0.6rem 1rem;
        font-size: 0.85rem;
        gap      : 0.4rem;
        white-space: nowrap;
    }

    .btn-schedule-appointment i {
        font-size: 0.95rem;
    }
}

/* === AJUSTE CRÍTICO PARA NOTEBOOKS PEQUENOS (1024px - 1280px) === */
@media (min-width: 1024px) and (max-width: 1280px) {
    .header-content {
        padding: 0.75rem 1rem;
        gap    : 0.75rem;
    }

    .logo-link {
        font-size: 1.4rem;
    }

    .logo-link i {
        font-size: 1.6rem;
    }

    .user-welcome {
        margin-left: 0.35rem;
    }

    .welcome-text {
        font-size  : 0.65rem;
        max-width  : 150px;
        overflow   : hidden;
        text-overflow: ellipsis;
    }

    /* Menu ainda mais compacto */
    .nav-menu {
        gap: 0.2rem;
    }

    .nav-link {
        padding: 0.55rem 0.7rem;
    }

    /* Botão agendar em modo compacto */
    .btn-schedule-appointment {
        padding  : 0.55rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* === NOTEBOOKS 15" RESOLUÇÃO CRÍTICA (1150px - 1280px) === */
@media (min-width: 1150px) and (max-width: 1280px) {
    /* Forçar visibilidade dos controles */
    .header-controls {
        display       : flex !important;
        flex-shrink   : 0 !important;
        min-width     : fit-content !important;
        gap           : 0.4rem;
    }

    /* Reduzir ainda mais o nav-menu se necessário */
    .nav-link {
        padding  : 0.5rem 0.65rem;
        font-size: 0.8rem;
    }

    .nav-link span {
        font-size: 0.8rem;
    }

    /* Garantir que botões sejam sempre visíveis */
    .theme-toggle,
    .logout-btn {
        width       : 36px;
        height      : 36px;
        flex-shrink : 0 !important;
    }

    .btn-schedule-appointment {
        padding    : 0.5rem 0.75rem;
        font-size  : 0.75rem;
        flex-shrink: 0 !important;
    }
}

/* === NOTEBOOKS MÉDIOS (1367px - 1440px) === */
@media (min-width: 1367px) and (max-width: 1440px) {
    .header-content {
        max-width: 100%;
        padding  : 1rem 1.5rem;
        gap      : 1.5rem;
    }

    .nav-menu {
        gap: 0.35rem;
    }

    .nav-link {
        padding  : 0.65rem 0.95rem;
        font-size: 0.9rem;
    }

    .header-controls {
        gap: 0.6rem;
    }

    .theme-toggle,
    .logout-btn {
        width : 42px;
        height: 42px;
    }

    .btn-schedule-appointment {
        padding  : 0.65rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* === DESKTOPS GRANDES (1441px - 1920px) === */
@media (min-width: 1441px) and (max-width: 1920px) {
    .header-content {
        max-width: 1400px;
    }
}

/* === TELAS ULTRA WIDE (1921px+) === */
@media (min-width: 1921px) {
    .header-content {
        max-width: 1600px;
    }
}

/* === GARANTIR QUE MENU TOGGLE FIQUE OCULTO NO DESKTOP === */
@media (min-width: 769px) {
    .menu-toggle-checkbox,
    .menu-toggle {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
    }
}

/* === BADGES: Particular / Convênio === */
.badge-mini {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    vertical-align: middle;
}
.badge-particular {
    background: rgba(40, 167, 69, 0.15);
    color: #20c997;
    border: 1px solid rgba(40, 167, 69, 0.3);
}
.badge-convenio {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* Badge Check-in */
.checkin-indicator {
    margin-top: 8px;
}

.badge-checkin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    animation: pulse-checkin 2s ease-in-out infinite;
}

.badge-checkin i {
    font-size: 12px;
}

@keyframes pulse-checkin {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0);
    }
}

/* === RESPONSIVIDADE TELAS GRANDES (>= 1600px) === */
@media (min-width: 1600px) {
    .header-content {
        padding: 1rem 2rem;
        gap    : 1rem;
    }

    .logo-section {
        max-width: 360px;
    }

    .logo-link {
        font-size: 1.7rem;
        letter-spacing: 0.2px;
    }

    .logo-link i {
        font-size: 1.8rem;
    }

    .user-welcome .welcome-text {
        font-size: 0.9rem;
        max-width: 260px;
    }

    .company-code {
        font-size: 0.8rem;
    }

    .modern-nav {
        gap: 1rem;
        justify-content: space-between;
        width: 100%;
    }

    .nav-menu {
        gap: 0.5rem;
        flex-wrap: nowrap; /* Não permite quebra de linha em telas grandes */
        max-width: none;   /* Sem limite artificial de largura */
        justify-content: flex-start; /* Mantém alinhamento consistente */
    }

    .nav-link {
        padding  : 0.65rem 0.95rem;
        font-size: 1.0rem;
        letter-spacing: 0.1px;
    }

    .nav-link i {
        font-size: 1.05rem;
        width    : 20px;
    }

    .submenu {
        font-size: 0.95rem;
    }

    .submenu-link {
        font-size: 0.95rem;
        padding  : 0.8rem 1rem;
    }

    .header-controls {
        gap: 0.75rem;
    }

    .theme-toggle,
    .logout-btn {
        width : 40px;
        height: 40px;
    }

    .btn-schedule-appointment {
        padding  : 0.65rem 1.1rem;
        font-size: 1.0rem;
    }
}

/* === TELAS MUITO GRANDES (>= 1920px) === */
@media (min-width: 1920px) {
    .header-content {
        padding: 1.25rem 2.5rem;
        gap    : 1.25rem;
    }

    .logo-link {
        font-size: 1.8rem;
    }

    .user-welcome .welcome-text {
        font-size: 1rem;
        max-width: 320px;
    }

    .nav-menu {
        gap        : 0.6rem;
        flex-wrap  : nowrap;
        justify-content: flex-start;
    }

    .nav-link {
        font-size: 1.05rem;
        padding  : 0.7rem 1rem;
    }

    .nav-link i {
        font-size: 1.1rem;
        width    : 22px;
    }

    .submenu,
    .submenu-link {
        font-size: 1rem;
    }

    .theme-toggle,
    .logout-btn {
        width : 42px;
        height: 42px;
    }

    .btn-schedule-appointment {
        font-size: 1.05rem;
        padding  : 0.7rem 1.15rem;
    }
}

/* === ULTRA-WIDE (>= 2560px) === */
@media (min-width: 2560px) {
    .header-content {
        padding: 1.5rem 3rem;
        gap    : 1.5rem;
    }

    .logo-link {
        font-size: 2rem;
        letter-spacing: 0.3px;
    }

    .user-welcome .welcome-text {
        font-size: 1.05rem;
        max-width: 380px;
    }

    .nav-menu {
        gap: 0.7rem;
    }

    .nav-link {
        font-size: 1.1rem;
        padding  : 0.75rem 1.1rem;
    }

    .nav-link i {
        font-size: 1.15rem;
        width    : 24px;
    }

    .submenu,
    .submenu-link {
        font-size: 1.05rem;
    }

    .theme-toggle,
    .logout-btn {
        width : 44px;
        height: 44px;
    }

    .btn-schedule-appointment {
        font-size: 1.1rem;
        padding  : 0.75rem 1.2rem;
    }
}