/* 
 * FIX ESPECÍFICO PARA MANTER BORDER-RADIUS NO TEMA ESCURO
 * Este arquivo garante que TODOS os elementos mantenham cantos arredondados
 */

/* ==================== REGRA UNIVERSAL ==================== */
body.dark-theme * {
    /* Prevenir que elementos percam border-radius */
    box-sizing: border-box;
}

/* ==================== CONTAINERS E WRAPPERS ==================== */
body.dark-theme .container,
body.dark-theme .wrapper,
body.dark-theme .content,
body.dark-theme .main,
body.dark-theme .section,
body.dark-theme .panel,
body.dark-theme .box {
    border-radius: 20px !important;
}

/* ==================== CARDS ==================== */
body.dark-theme .card,
body.dark-theme .item-card,
body.dark-theme .info-card,
body.dark-theme .feature-card,
body.dark-theme .service-card,
body.dark-theme .target-card,
body.dark-theme .differential-card,
body.dark-theme .testimonial-card,
body.dark-theme .methodology-step,
body.dark-theme .stat,
body.dark-theme .stat-card,
body.dark-theme .anamnese-card {
    border-radius: 20px !important;
}

/* ==================== FORMULÁRIOS ==================== */
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="password"],
body.dark-theme input[type="tel"],
body.dark-theme input[type="number"],
body.dark-theme input[type="date"],
body.dark-theme input[type="time"],
body.dark-theme input[type="url"],
body.dark-theme input[type="search"],
body.dark-theme textarea,
body.dark-theme select {
    border-radius: 10px !important;
}

body.dark-theme .form-group,
body.dark-theme .form-control,
body.dark-theme .input-group {
    border-radius: 10px !important;
}

body.dark-theme .contact-form,
body.dark-theme form {
    border-radius: 20px !important;
}

/* ==================== BOTÕES ==================== */
body.dark-theme button,
body.dark-theme .btn,
body.dark-theme .button,
body.dark-theme input[type="submit"],
body.dark-theme input[type="button"],
body.dark-theme a.btn,
body.dark-theme a.button {
    border-radius: 50px !important;
}

body.dark-theme .btn-primary,
body.dark-theme .btn-secondary,
body.dark-theme .btn-success,
body.dark-theme .btn-danger,
body.dark-theme .btn-warning,
body.dark-theme .btn-info {
    border-radius: 50px !important;
}

/* ==================== IMAGENS E MÍDIA ==================== */
body.dark-theme img {
    border-radius: 10px !important;
}

body.dark-theme .avatar,
body.dark-theme .profile-pic,
body.dark-theme .user-avatar,
body.dark-theme .testimonial-avatar {
    border-radius: 50% !important;
}

body.dark-theme .about-image-container,
body.dark-theme .about-image-container img,
body.dark-theme .image-wrapper {
    border-radius: 20px !important;
}

/* ==================== MODAL E POPUPS ==================== */
body.dark-theme .modal,
body.dark-theme .modal-content,
body.dark-theme .modal-dialog,
body.dark-theme .popup,
body.dark-theme .dialog {
    border-radius: 20px !important;
}

body.dark-theme .modal-header,
body.dark-theme .modal-body,
body.dark-theme .modal-footer {
    border-radius: inherit !important;
}

/* ==================== NOTIFICAÇÕES E ALERTS ==================== */
body.dark-theme .notification,
body.dark-theme .alert,
body.dark-theme .toast,
body.dark-theme .message,
body.dark-theme .system-notification {
    border-radius: 10px !important;
}

/* ==================== FAQ E ACCORDION ==================== */
body.dark-theme .faq-item,
body.dark-theme .faq-question,
body.dark-theme .faq-answer,
body.dark-theme .accordion-item {
    border-radius: 15px !important;
}

/* ==================== BADGES E TAGS ==================== */
body.dark-theme .badge,
body.dark-theme .tag,
body.dark-theme .label,
body.dark-theme .chip,
body.dark-theme .status-badge {
    border-radius: 20px !important;
}

/* ==================== ÍCONES E NÚMEROS ==================== */
body.dark-theme .icon,
body.dark-theme .service-icon,
body.dark-theme .target-icon,
body.dark-theme .step-number {
    border-radius: 50% !important;
}

/* ==================== BOTÕES FLUTUANTES ==================== */
body.dark-theme .whatsapp-float,
body.dark-theme .theme-toggle,
body.dark-theme .floating-btn,
body.dark-theme .fab {
    border-radius: 50% !important;
}

/* ==================== TABELAS ==================== */
body.dark-theme table,
body.dark-theme .table-wrapper {
    border-radius: 15px !important;
    overflow: hidden;
}

body.dark-theme th:first-child {
    border-top-left-radius: 15px !important;
}

body.dark-theme th:last-child {
    border-top-right-radius: 15px !important;
}

/* ==================== ANAMNESE - PÁGINAS ESPECÍFICAS ==================== */
body.dark-theme .login-container,
body.dark-theme .admin-container,
body.dark-theme .anamnese-container {
    border-radius: 20px !important;
}

body.dark-theme .header {
    border-radius: 20px 20px 0 0 !important;
}

body.dark-theme .section-divider {
    border-radius: 10px !important;
}

body.dark-theme .anamnese-section {
    border-radius: 15px !important;
}

body.dark-theme .success-message,
body.dark-theme .error-message {
    border-radius: 10px !important;
}

/* ==================== LOADING E SPINNERS ==================== */
body.dark-theme .loading-spinner,
body.dark-theme .spinner {
    border-radius: 50% !important;
}

body.dark-theme .loading-content {
    border-radius: 15px !important;
}

/* ==================== PROGRESSBAR ==================== */
body.dark-theme .progress,
body.dark-theme .progress-bar,
body.dark-theme .progress-indicator {
    border-radius: 10px !important;
}

/* ==================== EXCEÇÕES - Elementos que devem ser retos ==================== */
body.dark-theme header,
body.dark-theme footer,
body.dark-theme nav,
body.dark-theme .navbar {
    border-radius: 0 !important;
}

/* ==================== SCROLLBAR ==================== */
body.dark-theme ::-webkit-scrollbar {
    border-radius: 10px !important;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    border-radius: 10px !important;
}

/* ==================== TOOLTIPS ==================== */
body.dark-theme .tooltip,
body.dark-theme .popover,
body.dark-theme .hint {
    border-radius: 8px !important;
}

/* ==================== DROPDOWN ==================== */
body.dark-theme .dropdown,
body.dark-theme .dropdown-menu,
body.dark-theme .dropdown-content {
    border-radius: 10px !important;
}

/* ==================== LINKS E NAVEGAÇÃO ==================== */
body.dark-theme .nav-link,
body.dark-theme .menu-item {
    border-radius: 8px !important;
}

/* ==================== HERO SECTION - CORREÇÕES ==================== */
body.dark-theme .hero-badge {
    border-radius: 50px !important;
}

body.dark-theme .shape,
body.dark-theme .shape-1,
body.dark-theme .shape-2,
body.dark-theme .shape-3 {
    border-radius: 50% !important;
}

/* ==================== NAVBAR - CORREÇÕES ==================== */
body.dark-theme .nav-logo img {
    border-radius: 10px !important;
    box-sizing: content-box !important;
}

body.dark-theme .nav-link.nav-cta {
    border-radius: 50px !important;
}

/* ==================== FOOTER - CORREÇÕES ==================== */
body.dark-theme .footer-brand img {
    filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 0.75rem !important;
    border-radius: 12px !important;
    box-sizing: content-box !important;
}

/* ==================== CARDS DE SERVIÇOS - LEGIBILIDADE ==================== */
body.dark-theme .servico-card {
    background: transparent !important;
    border: none !important;
    border-radius: 24px !important;
}

body.dark-theme .servico-card h3 {
    color: #f0f0f0 !important;
}

body.dark-theme .servico-card > p {
    color: #b0b0b0 !important;
}

body.dark-theme .servico-card .servico-features li {
    color: #c0c0c0 !important;
}

body.dark-theme .servico-card .servico-icon {
    background: rgba(124, 179, 66, 0.2) !important;
    border-radius: 50% !important;
}

body.dark-theme .servico-card .servico-icon svg {
    stroke: #B8A1D9 !important;
}

/* Card featured no modo escuro */
body.dark-theme .servico-card.featured {
    background: linear-gradient(135deg, #9B7FC7 0%, #7A5FA8 100%) !important;
    border: 1px solid #B8A1D9 !important;
}

body.dark-theme .servico-card.featured h3,
body.dark-theme .servico-card.featured p,
body.dark-theme .servico-card.featured .servico-features li {
    color: #ffffff !important;
}

body.dark-theme .servico-card.featured .servico-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .servico-card.featured .servico-icon svg {
    stroke: #ffffff !important;
}

body.dark-theme .servico-card.featured .servico-features li::before {
    background: #ffffff !important;
}

/* ==================== GARANTIA EXTRA ==================== */
/* Se algum elemento ainda ficar quadrado, esta regra deve pegar */
body.dark-theme div:not(header):not(footer):not(nav),
body.dark-theme section:not(.hero) {
    border-radius: inherit !important;
    min-border-radius: 10px;
}
