.btn-outline-primary>strong {
    color: #555 !important;
}

.btn-outline-primary>strong:hover {
    color: #fff !important;
}

.text-muted {
    --bs-text-opacity: 1;
    color: var(--bs-primary-color) !important;
}

body>main>div>div>div>form>div:nth-child(4)>div>label:nth-child(1)>strong:hover,
body>main>div>div>div>form>div:nth-child(4)>div>label:nth-child(1)>div.text-muted:hover {
    color: #fff !important;
}

/* =========================================
   Dark Mode Global Styles (Bootstrap 5.3)
   ========================================= */

/* Custom dark mode overrides */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a2e;
    --bs-body-color: #e0e0e0;
    --bs-card-bg: #16213e;
    --bs-border-color: #374151;
}

[data-bs-theme="dark"] .card {
    background-color: #16213e;
    border-color: #374151;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #1f2937 !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: #16213e !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .border {
    border-color: #374151 !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1f2937;
    border-color: #374151;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #1f2937;
    border-color: #10B981;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #9ca3af;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
    --bs-table-color: #e0e0e0;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .table th {
    color: #9ca3af;
    border-color: #374151;
}

[data-bs-theme="dark"] .table td {
    color: #e0e0e0;
    border-color: #374151;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

[data-bs-theme="dark"] .table thead {
    border-color: #374151;
}

[data-bs-theme="dark"] .table tbody {
    border-color: #374151;
}

/* Card body in dark mode */
[data-bs-theme="dark"] .card-body {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #374151;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .card-footer {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: #374151;
}

/* Text utilities in dark mode */
[data-bs-theme="dark"] .fw-medium,
[data-bs-theme="dark"] .fw-bold,
[data-bs-theme="dark"] .fw-semibold {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

/* Button outlines in dark mode */
[data-bs-theme="dark"] .btn-outline-secondary {
    color: #9ca3af;
    border-color: #4b5563;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    color: #fff;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: #10B981;
    border-color: #10B981;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #10B981;
    color: #fff;
}

/* Rounded circle backgrounds in dark mode */
[data-bs-theme="dark"] .bg-primary.bg-opacity-10 {
    background-color: rgba(16, 185, 129, 0.15) !important;
}

[data-bs-theme="dark"] .bg-opacity-10 {
    --bs-bg-opacity: 0.15;
}

/* Section headers */
[data-bs-theme="dark"] h1, 
[data-bs-theme="dark"] h2, 
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4, 
[data-bs-theme="dark"] h5, 
[data-bs-theme="dark"] h6 {
    color: #e0e0e0;
}

/* Dashboard stats cards keep their colors */
[data-bs-theme="dark"] .bg-success,
[data-bs-theme="dark"] .bg-primary,
[data-bs-theme="dark"] .bg-warning,
[data-bs-theme="dark"] .bg-danger,
[data-bs-theme="dark"] .bg-info {
    color: #fff;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #16213e;
    border-color: #374151;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #1f2937;
    color: #10B981;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #16213e;
    border-color: #374151;
}

[data-bs-theme="dark"] .modal-header {
    border-bottom-color: #374151;
}

[data-bs-theme="dark"] .modal-footer {
    border-top-color: #374151;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #16213e;
    border-color: #374151;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #9ca3af;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #16213e;
    border-color: #374151;
    color: #10B981;
}

/* Footer in dark mode */
[data-bs-theme="dark"] footer.bg-dark {
    background-color: #0f0f1a !important;
}

/* =========================================
   PWA/Mobile Cards Styles
   ========================================= */

/* Cards de Pontos para Mobile/PWA */
.ponto-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ponto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ponto-card .card-body {
    padding: 1rem;
}

.ponto-card h6 {
    font-size: 0.95rem;
    line-height: 1.3;
}

.ponto-cards-container {
    padding-bottom: 80px; /* Espaço para navegação mobile */
}

/* Info boxes em modo claro */
.ponto-card .bg-light {
    background-color: #f8f9fa !important;
}

/* Dark Mode específico para cards de pontos */
[data-bs-theme="dark"] .ponto-card {
    background-color: #16213e;
    border-color: #374151;
}

[data-bs-theme="dark"] .ponto-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .ponto-card .bg-light {
    background-color: #1f2937 !important;
}

[data-bs-theme="dark"] .ponto-card .bg-light small {
    color: #9ca3af !important;
}

[data-bs-theme="dark"] .ponto-card .bg-light .fw-bold {
    color: inherit;
}

[data-bs-theme="dark"] .ponto-card h6 {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .ponto-card .text-muted {
    color: #9ca3af !important;
}

/* Botões dentro dos cards em dark mode */
[data-bs-theme="dark"] .ponto-card .btn-outline-primary {
    color: #10B981;
    border-color: #10B981;
}

[data-bs-theme="dark"] .ponto-card .btn-outline-primary:hover {
    background-color: #10B981;
    color: #fff;
}

[data-bs-theme="dark"] .ponto-card .btn-outline-secondary {
    color: #9ca3af;
    border-color: #4b5563;
}

[data-bs-theme="dark"] .ponto-card .btn-outline-secondary:hover {
    background-color: #4b5563;
    color: #fff;
}

[data-bs-theme="dark"] .ponto-card .btn-outline-danger {
    color: #f87171;
    border-color: #f87171;
}

[data-bs-theme="dark"] .ponto-card .btn-outline-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* Badge em dark mode */
[data-bs-theme="dark"] .badge.bg-primary {
    background-color: #10B981 !important;
}

/* =========================================
   Dashboard Dark Mode - Tabela Responsiva
   ========================================= */

/* Table responsive stack para mobile */
[data-bs-theme="dark"] .table-responsive-stack .table {
    background-color: transparent;
}

[data-bs-theme="dark"] .table-responsive-stack .table thead {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .table-responsive-stack .table th {
    color: #9ca3af;
    border-color: #374151;
    background-color: transparent;
}

[data-bs-theme="dark"] .table-responsive-stack .table td {
    color: #e0e0e0;
    border-color: #374151;
    background-color: transparent;
}

[data-bs-theme="dark"] .table-responsive-stack .table tbody tr {
    background-color: transparent;
}

[data-bs-theme="dark"] .table-responsive-stack .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Labels de data-label em modo mobile dark */
[data-bs-theme="dark"] .table-responsive-stack td[data-label]::before {
    color: #9ca3af;
}

/* fw-medium dentro de tabelas */
[data-bs-theme="dark"] .table .fw-medium,
[data-bs-theme="dark"] .table-responsive-stack .fw-medium {
    color: #e0e0e0;
}

/* Rounded circles em dark mode */
[data-bs-theme="dark"] .rounded-circle.bg-primary.bg-opacity-10 {
    background-color: rgba(16, 185, 129, 0.15) !important;
}

[data-bs-theme="dark"] .rounded-circle.bg-success.bg-opacity-10 {
    background-color: rgba(34, 197, 94, 0.15) !important;
}

[data-bs-theme="dark"] .rounded-circle.bg-info.bg-opacity-10 {
    background-color: rgba(59, 130, 246, 0.15) !important;
}

[data-bs-theme="dark"] .rounded-circle.bg-warning.bg-opacity-10 {
    background-color: rgba(234, 179, 8, 0.15) !important;
}

[data-bs-theme="dark"] .rounded-circle.bg-danger.bg-opacity-10 {
    background-color: rgba(239, 68, 68, 0.15) !important;
}

/* =========================================
   Dashboard Dark Mode - Cards Laterais
   ========================================= */

/* Cards de Ações Rápidas e Atividade Recente */
[data-bs-theme="dark"] .card .d-grid .btn-outline-primary,
[data-bs-theme="dark"] .card .d-grid .btn-outline-secondary {
    color: #e0e0e0;
    border-color: #4b5563;
}

[data-bs-theme="dark"] .card .d-grid .btn-outline-primary:hover {
    background-color: #10B981;
    border-color: #10B981;
    color: #fff;
}

[data-bs-theme="dark"] .card .d-grid .btn-outline-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    color: #fff;
}

/* Atividade Recente - textos */
[data-bs-theme="dark"] .card-body .small.fw-medium {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .card-body .small.text-muted {
    color: #9ca3af !important;
}

[data-bs-theme="dark"] .card-body .flex-grow-1 .small {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .card-body .flex-grow-1 .small.text-muted {
    color: #9ca3af !important;
}

/* Card p-0 fix */
[data-bs-theme="dark"] .card-body.p-0 {
    background-color: transparent;
}

/* Gap items dentro de cards */
[data-bs-theme="dark"] .card .d-flex.flex-column.gap-3 > div {
    border-color: #374151;
}

/* =========================================
   Social Login Buttons
   ========================================= */

.btn-google {
    border-color: #db4437;
    color: #db4437;
}
.btn-google:hover {
    background-color: #db4437;
    color: #fff;
}
.btn-instagram {
    border-color: #C13584;
    color: #C13584;
}
.btn-instagram:hover {
    background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af);
    color: #fff;
}

/* =========================================
   Profile Switch Styles
   ========================================= */

.profile-switch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.profile-switch-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.profile-switch-btn i {
    transition: transform 0.3s ease;
}

.profile-switch-btn:hover i {
    transform: rotate(180deg);
}

.navbar .nav-link .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

/* Bottom nav profile switch animation */
.bottom-nav-item i.bi-arrow-left-right {
    transition: transform 0.3s ease;
}

.bottom-nav-item:active i.bi-arrow-left-right {
    transform: rotate(180deg);
}

/* Profile indicator in offcanvas */
.offcanvas .profile-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .dropdown-menu .dropdown-item:hover {
    background-color: rgba(16, 185, 129, 0.1);
}
