:root {
    /* Marca OptimaDrywall Flow — azul #023F80 (amostra da identidade visual) */
    --primary-color: #023F80;
    --primary-rgb: 2, 63, 128;
    --secondary-color: #012D5C;
    --accent-color: #0258B3;
    --primary-hover: #01254A;
    --primary-subtle: rgba(2, 63, 128, 0.1);
    --primary-subtle-strong: rgba(2, 63, 128, 0.15);
    /* Bootstrap 5.3 — alinhar primary/success à marca */
    --bs-primary: #023F80;
    --bs-primary-rgb: 2, 63, 128;
    --bs-success: #023F80;
    --bs-success-rgb: 2, 63, 128;
    --bs-link-color: #023F80;
    --bs-link-hover-color: #012D5C;
    --bs-focus-ring-color: rgba(2, 63, 128, 0.25);
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background-color: #f9fafb;
    --card-background: #ffffff;
    --border-color: #e5e7eb;
}

/* Formatação de moeda no dashboard - garantir que caiba em uma linha */
.currency-value {
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-value-large {
    font-size: 2rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .currency-value {
        font-size: 1.2rem;
    }
    
    .currency-value-large {
        font-size: 1.5rem;
    }
}

[data-theme="dark"] {
    --primary-color: #0361C6;
    --primary-rgb: 3, 97, 198;
    --secondary-color: #023F80;
    --accent-color: #036EE0;
    --primary-hover: #0258B3;
    --primary-subtle: rgba(3, 97, 198, 0.15);
    --primary-subtle-strong: rgba(3, 97, 198, 0.25);
    --bs-primary: #0361C6;
    --bs-primary-rgb: 3, 97, 198;
    --bs-success: #0361C6;
    --bs-success-rgb: 3, 97, 198;
    --bs-link-color: #4d9ae8;
    --bs-link-hover-color: #036EE0;
    --bs-focus-ring-color: rgba(3, 97, 198, 0.35);
    --text-color: #f9fafb;
    --light-text: #d1d5db;
    --background-color: #111827;
    --card-background: #1f2937;
    --border-color: #374151;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.sidebar {
    min-height: calc(100vh - 56px);
    background-color: var(--card-background);
    border-right: 1px solid var(--border-color);
    box-shadow: 1px 0 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 80px !important;
    flex: 0 0 80px !important;
    max-width: 80px !important;
    min-width: 80px !important;
}

.sidebar.collapsed .nav-link {
    padding: 0.75rem 1rem;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Esconder completamente todo o texto quando collapsed */
.sidebar.collapsed .nav-link {
    font-size: 0 !important;
    line-height: 0 !important;
    white-space: nowrap;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
}

/* Esconder texto direto dentro do nav-link, mas manter cor dos ícones */
.sidebar.collapsed .nav-link {
    color: transparent !important;
}

/* Garantir que ícones normais mantenham cor cinza escuro/preto quando collapsed */
.sidebar.collapsed .nav-link:not(.active) i {
    color: var(--text-color) !important;
}

.sidebar.collapsed .nav-link::before {
    content: '';
    display: none !important;
}

/* Mostrar apenas os ícones quando collapsed */
.sidebar.collapsed .nav-link i {
    font-size: 1.25rem !important;
    line-height: 1.5rem !important;
    margin: 0 !important;
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important;
    flex-shrink: 0;
    text-indent: 0 !important;
    position: relative;
    z-index: 1;
}

/* Esconder todo texto direto e spans - abordagem mais agressiva */
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .nav-link::after,
.sidebar.collapsed .nav-link::before {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Esconder texto direto dentro do nav-link usando pseudo-elementos */
.sidebar.collapsed .nav-link {
    position: relative;
}

.sidebar.collapsed .nav-link::after {
    content: '';
    display: none !important;
}

.sidebar-toggle-item {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-background);
}

.sidebar-toggle-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar-toggle-btn:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.sidebar.collapsed .sidebar-toggle-btn {
    text-align: center;
    padding: 0.75rem 1rem;
    justify-content: center;
    font-size: 0;
}

.sidebar.collapsed .sidebar-toggle-btn i {
    font-size: 1.25rem;
    margin: 0;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.sidebar.collapsed .sidebar-toggle-btn .sidebar-toggle-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.sidebar-toggle-icon {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle-icon {
    transform: rotate(180deg);
}

.sidebar .position-sticky {
    padding-bottom: 60px;
    position: relative;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
}

.sidebar .nav.flex-column {
    flex: 1;
}

.nav-link {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.nav-link:hover i {
    color: inherit;
}

/* Manter cor dos ícones normais mesmo no hover quando collapsed */
.sidebar.collapsed .nav-link:not(.active):hover i {
    color: var(--text-color) !important;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-link.active i {
    color: white;
}

/* Garantir que ícone ativo permaneça branco quando collapsed */
.sidebar.collapsed .nav-link.active i {
    color: white !important;
}

/* Garantir que hover não altere cor do ícone ativo quando collapsed */
.sidebar.collapsed .nav-link.active:hover i {
    color: white !important;
}

.nav-link i {
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Garantir que o texto não apareça quando collapsed */
.sidebar.collapsed .nav-link > *:not(i) {
    display: none !important;
}

/* Ajustar layout do container quando sidebar está collapsed */
.container-fluid .row {
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: nowrap;
}

/* Ajustar colunas do Bootstrap quando sidebar está collapsed */
.sidebar.collapsed {
    flex: 0 0 80px !important;
    max-width: 80px !important;
    min-width: 80px !important;
}

/* Expandir conteúdo principal quando sidebar está collapsed */
.sidebar.collapsed ~ main,
.sidebar.collapsed ~ main.col-md-9,
.sidebar.collapsed ~ main.col-lg-10 {
    flex: 1 1 auto !important;
    max-width: calc(100% - 80px) !important;
    width: calc(100% - 80px) !important;
    margin-left: 0 !important;
}

/* Sobrescrever classes Bootstrap quando sidebar está collapsed */
.row .sidebar.collapsed ~ main.col-md-9 {
    flex: 0 0 calc(100% - 80px) !important;
    max-width: calc(100% - 80px) !important;
    width: calc(100% - 80px) !important;
}

.row .sidebar.collapsed ~ main.col-lg-10 {
    flex: 0 0 calc(100% - 80px) !important;
    max-width: calc(100% - 80px) !important;
    width: calc(100% - 80px) !important;
}

/* Garantir que o conteúdo principal ocupe todo o espaço disponível */
.row:has(.sidebar.collapsed) > main {
    flex: 1 1 auto !important;
    max-width: calc(100% - 80px) !important;
    width: calc(100% - 80px) !important;
}

/* Fallback para navegadores que não suportam :has() */
@supports not selector(:has(*)) {
    .row .sidebar.collapsed ~ main {
        flex: 1 1 auto !important;
        max-width: calc(100% - 80px) !important;
        width: calc(100% - 80px) !important;
    }
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

/* Espaçamento padrão para cabeçalhos de páginas */
.page-header {
    margin-bottom: 2rem;
}

.page-header .btn-primary,
.page-header .btn-secondary {
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 0.65;
}

.alert {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.display-4 {
    font-weight: 700;
    color: var(--primary-color);
}

.list-group-item {
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: var(--background-color);
    transform: translateX(4px);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0;
}

.text-muted {
    color: var(--light-text) !important;
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
}

.auth-card {
    background: var(--card-background);
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(to bottom, var(--primary-subtle), transparent);
}

.auth-header img {
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.auth-header p {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 0;
}

.auth-body {
    padding: 2rem;
}

.form-floating {
    margin-bottom: 1.25rem;
}

.form-floating > .form-control {
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: var(--light-text);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: white;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-social:hover {
    background: var(--background-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-social i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.btn-apple { color: #000000; }
.btn-google { color: #DB4437; }
.btn-facebook { color: #4267B2; }
.btn-microsoft { color: #00A4EF; }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.75rem 0;
    color: var(--light-text);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border: none;
    transition: all 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    color: var(--light-text);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to top, var(--primary-subtle), transparent);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--light-text);
    font-size: 0.95rem;
}

.text-decoration-none {
    color: var(--primary-color) !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.text-decoration-none:hover {
    color: var(--secondary-color) !important;
}

/* Dashboard Styles */
.dashboard-wrapper {
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

.slider .fa-sun {
    color: #f1c40f;
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 14px;
    transition: .4s;
}

.slider .fa-moon {
    color: #f1c40f;
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 14px;
    transition: .4s;
    opacity: 0;
}

input:checked + .slider {
    background-color: #2c3e50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:checked + .slider .fa-sun {
    opacity: 0;
}

input:checked + .slider .fa-moon {
    opacity: 1;
}

/* Stat Cards */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-title {
    color: var(--light-text);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Quick Action Cards */
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-color);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
}

.quick-action-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Table Styles */
.table {
    color: var(--text-color);
}

.table thead th {
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    color: var(--light-text);
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--primary-subtle);
}

/* Calendar Styles */
.fc {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1rem;
}

.fc .fc-toolbar-title {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.fc .fc-button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.fc .fc-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.fc .fc-daygrid-day {
    background: var(--card-background);
}

.fc .fc-daygrid-day-number {
    color: var(--text-color);
}

.fc .fc-day-today {
    background: var(--primary-subtle-strong) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 1rem;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .quick-action-card {
        margin-bottom: 1rem;
    }
}

.social-login-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    align-items: center;
}

.social-login-group .btn-social {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    max-height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: none;
    padding: 0;
}

.social-login-group .btn-social i {
    font-size: 1.3rem;
    margin: 0;
}

.social-login-group .btn-apple { color: #000; border-color: #e5e7eb; }
.social-login-group .btn-google { color: #DB4437; border-color: #e5e7eb; }
.social-login-group .btn-facebook { color: #4267B2; border-color: #e5e7eb; }
.social-login-group .btn-microsoft { color: #00A4EF; border-color: #e5e7eb; }

.social-login-group .btn-social:hover {
    background: var(--background-color);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* =============================================================================
   OptimaDrywall Flow — overrides Bootstrap (substitui verde da identidade antiga)
   ============================================================================= */

/* Botões */
.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.btn-success:disabled {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-outline-success {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-link {
    color: var(--primary-color);
}

.btn-link:hover,
.btn-link:focus {
    color: var(--secondary-color);
}

/* Fundos e texto */
.bg-success,
.stat-icon.bg-success,
.quick-action-icon.bg-success {
    background-color: var(--primary-color) !important;
}

.bg-primary,
.stat-icon.bg-primary,
.quick-action-icon.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-success,
.text-primary,
.font-weight-bold.text-primary,
.m-0.font-weight-bold.text-primary {
    color: var(--primary-color) !important;
}

.border-success,
.border-primary {
    border-color: var(--primary-color) !important;
}

/* Badges */
.badge.bg-success,
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Alertas (mensagens Django success → alert-success) */
.alert-success {
    background-color: var(--primary-subtle-strong);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.alert-success .btn-close {
    filter: none;
}

/* Formulários */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.dropdown-item:active,
.dropdown-item.active {
    background-color: var(--primary-color);
}

/* Paginação */
.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: var(--secondary-color);
    background-color: var(--primary-subtle);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
    color: var(--primary-color);
}

/* Barras de progresso */
.progress-bar {
    background-color: var(--primary-color);
}

.progress-bar.bg-success {
    background-color: var(--primary-color) !important;
}

/* Modais */
.modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

/* List group ativo */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Spinner */
.spinner-border.text-success,
.spinner-border.text-primary,
.spinner-grow.text-success,
.spinner-grow.text-primary {
    color: var(--primary-color) !important;
}

/* Nav tabs/pills */
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.nav-pills .nav-link.active:hover {
    background-color: var(--secondary-color);
}

/* Tabelas — links de ordenação Bootstrap se houver */
.table-primary {
    --bs-table-bg: var(--primary-subtle);
    --bs-table-border-color: var(--primary-color);
}

/* FullCalendar — reforço além das regras .fc existentes */
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.fc-event,
.fc-daygrid-event {
    border-color: var(--primary-color);
}

/* Dashboard — indicadores de variação positiva (antes text-success verde) */
.stat-change.text-success {
    color: var(--primary-color) !important;
} 