/**
 * Wedding Elegance - Dark Mode Theme
 * Mantém a essência dourada/bronze mas adaptada para fundo escuro
 *
 * Paleta Dark Mode:
 * - Background Principal: #1a1a1a
 * - Background Secundário: #242424
 * - Background Cards: #2d2d2d
 * - Background Inputs: #333333
 * - Dourado Principal: #D4AF37
 * - Bronze Secundário: #CD7F32
 * - Texto Principal: #E8E0D5
 * - Texto Secundário: #B3B3B3
 * - Bordas: #3d3d3d
 */

/* ========================================
   BASE - Body & Main Containers
======================================== */
[data-theme-version="dark"] body,
[data-theme-version="dark"] {
    background: #1a1a1a !important;
}

[data-theme-version="dark"] .content-body {
    background: #1a1a1a !important;
}

[data-theme-version="dark"] #preloader {
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%) !important;
}

[data-theme-version="dark"] .loader--text {
    color: #E8E0D5 !important;
}

/* ========================================
   NAV HEADER - Logo area
======================================== */
[data-theme-version="dark"] .nav-header {
    background: linear-gradient(135deg, #242424 0%, #1a1a1a 100%) !important;
    border-bottom: 2px solid #3d3d3d !important;
    border-right: none !important;
}

[data-theme-version="dark"][data-nav-headerbg="color_1"] .nav-header,
[data-theme-version="dark"][data-nav-headerbg] .nav-header {
    background: linear-gradient(135deg, #242424 0%, #1a1a1a 100%) !important;
}

[data-theme-version="dark"] .nav-header .brand-logo {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .nav-header .hamburger .line {
    background: #D4AF37 !important;
}

[data-theme-version="dark"] .nav-header .nav-control {
    background: transparent !important;
}

/* ========================================
   HEADER - Top bar
======================================== */
[data-theme-version="dark"] .header {
    background: linear-gradient(135deg, #242424 0%, #1a1a1a 100%) !important;
    border-bottom: 2px solid #3d3d3d !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme-version="dark"][data-headerbg="color_1"] .header,
[data-theme-version="dark"][data-headerbg] .header {
    background: linear-gradient(135deg, #242424 0%, #1a1a1a 100%) !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .header-border {
    border-color: #3d3d3d !important;
    background: #3d3d3d !important;
}

[data-theme-version="dark"] .header .nav-link i {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .header .nav-link:hover i {
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .header .header-info span {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .header .header-info small {
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .header .header-profile img {
    border: 2px solid #D4AF37 !important;
}

[data-theme-version="dark"] .header .nav-link svg,
[data-theme-version="dark"] .header .notification_dropdown svg {
    stroke: #B3B3B3 !important;
}

[data-theme-version="dark"] .header .nav-link:hover svg,
[data-theme-version="dark"] .header .notification_dropdown:hover svg {
    stroke: #D4AF37 !important;
}

[data-theme-version="dark"] .header [class*="flaticon"] {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .header .nav-link:hover [class*="flaticon"] {
    color: #D4AF37 !important;
}

/* ========================================
   SIDEBAR - Navigation menu
======================================== */
[data-theme-version="dark"] .deznav {
    background: linear-gradient(180deg, #242424 0%, #1a1a1a 100%) !important;
    border-right: 1px solid #3d3d3d !important;
}

[data-theme-version="dark"][data-sidebarbg="color_1"] .deznav,
[data-theme-version="dark"][data-sidebarbg] .deznav {
    background: linear-gradient(180deg, #242424 0%, #1a1a1a 100%) !important;
}

[data-theme-version="dark"] .deznav .metismenu > li > a {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .deznav .metismenu > li > a svg,
[data-theme-version="dark"] .deznav .metismenu > li > a i {
    color: #8B8680 !important;
}

[data-theme-version="dark"] .deznav .metismenu > li:hover > a,
[data-theme-version="dark"] .deznav .metismenu > li:focus > a {
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .deznav .metismenu > li:hover > a svg,
[data-theme-version="dark"] .deznav .metismenu > li:hover > a i {
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .deznav .metismenu > li.mm-active > a {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .deznav .metismenu > li.mm-active > a svg,
[data-theme-version="dark"] .deznav .metismenu > li.mm-active > a i,
[data-theme-version="dark"] .deznav .metismenu > li.mm-active > a span,
[data-theme-version="dark"] .deznav .metismenu > li.mm-active > a .nav-text,
[data-theme-version="dark"] .deznav .metismenu > li.mm-active > a * {
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .deznav .metismenu ul a {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .deznav .metismenu ul a:hover,
[data-theme-version="dark"] .deznav .metismenu ul a:focus,
[data-theme-version="dark"] .deznav .metismenu ul li.mm-active > a {
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .deznav .metismenu a {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .deznav .metismenu .has-arrow::after {
    border-color: #8B8680 !important;
}

/* ========================================
   CARDS
======================================== */
[data-theme-version="dark"] .card {
    background: #2d2d2d !important;
    border: 1px solid #3d3d3d !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2) !important;
}

[data-theme-version="dark"] .card-header {
    background: linear-gradient(135deg, #333333 0%, #2d2d2d 100%) !important;
    border-bottom: 1px solid #3d3d3d !important;
}

[data-theme-version="dark"] .card-title {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .card-body {
    background: #2d2d2d !important;
}

[data-theme-version="dark"] .card-footer {
    background: #2d2d2d !important;
    border-top: 1px solid #3d3d3d !important;
}

/* ========================================
   TYPOGRAPHY
======================================== */
[data-theme-version="dark"] h1,
[data-theme-version="dark"] h2,
[data-theme-version="dark"] h3,
[data-theme-version="dark"] h4,
[data-theme-version="dark"] h5,
[data-theme-version="dark"] h6,
[data-theme-version="dark"] .h1,
[data-theme-version="dark"] .h2,
[data-theme-version="dark"] .h3,
[data-theme-version="dark"] .h4,
[data-theme-version="dark"] .h5,
[data-theme-version="dark"] .h6 {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] p,
[data-theme-version="dark"] span:not(.badge),
[data-theme-version="dark"] label,
[data-theme-version="dark"] .text-dark {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .text-black {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .text-muted {
    color: #8B8680 !important;
}

[data-theme-version="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.badge):not(.wedding-sidebar-item) {
    color: #D4AF37 !important;
}

[data-theme-version="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.badge):not(.wedding-sidebar-item):hover {
    color: #CD7F32 !important;
}

/* ========================================
   FORMS
======================================== */
[data-theme-version="dark"] .form-control {
    background: #333333 !important;
    border: 1px solid #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .form-control:focus {
    background: #3d3d3d !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .form-control::placeholder {
    color: #8B8680 !important;
}

[data-theme-version="dark"] .form-control:disabled,
[data-theme-version="dark"] .form-control[readonly] {
    background: #242424 !important;
    color: #8B8680 !important;
}

[data-theme-version="dark"] .form-select {
    background-color: #333333 !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .form-label {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .input-group-text {
    background: #333333 !important;
    border-color: #3d3d3d !important;
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .form-check-label {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .form-check-input {
    background-color: #333333 !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .form-check-input:checked {
    background-color: #D4AF37 !important;
    border-color: #D4AF37 !important;
}

/* Bootstrap Select */
[data-theme-version="dark"] .bootstrap-select .dropdown-toggle {
    background: #333333 !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .bootstrap-select .dropdown-menu {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .bootstrap-select .dropdown-menu li a {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .bootstrap-select .dropdown-menu li a:hover,
[data-theme-version="dark"] .bootstrap-select .dropdown-menu li.selected a {
    background: #3d3d3d !important;
    color: #D4AF37 !important;
}

/* ========================================
   TABLES
======================================== */
[data-theme-version="dark"] .table {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .table thead th {
    background: linear-gradient(135deg, #333333 0%, #2d2d2d 100%) !important;
    color: #E8E0D5 !important;
    border-bottom: 2px solid #D4AF37 !important;
}

[data-theme-version="dark"] .table tbody tr {
    background: #2d2d2d !important;
}

[data-theme-version="dark"] .table tbody tr:hover {
    background: #333333 !important;
}

[data-theme-version="dark"] .table td,
[data-theme-version="dark"] .table th {
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background: #333333 !important;
}

[data-theme-version="dark"] .table-bordered {
    border-color: #3d3d3d !important;
}

/* DataTables */
[data-theme-version="dark"] .dataTables_wrapper {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .dataTables_wrapper .dataTables_length,
[data-theme-version="dark"] .dataTables_wrapper .dataTables_filter,
[data-theme-version="dark"] .dataTables_wrapper .dataTables_info {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .dataTables_wrapper .dataTables_filter input {
    background: #333333 !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #3d3d3d !important;
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    border-color: #D4AF37 !important;
    color: #FFFFFF !important;
}

/* ========================================
   DROPDOWNS
======================================== */
[data-theme-version="dark"] .dropdown-menu {
    background: #2d2d2d !important;
    border: 1px solid #3d3d3d !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

[data-theme-version="dark"] .dropdown-item {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .dropdown-item:hover,
[data-theme-version="dark"] .dropdown-item:focus {
    background: #3d3d3d !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .dropdown-divider {
    border-color: #3d3d3d !important;
}

/* ========================================
   MODALS
======================================== */
[data-theme-version="dark"] .modal-content {
    background: #2d2d2d !important;
    border: 1px solid #3d3d3d !important;
}

[data-theme-version="dark"] .modal-header {
    background: linear-gradient(135deg, #333333 0%, #2d2d2d 100%) !important;
    border-bottom: 1px solid #3d3d3d !important;
}

[data-theme-version="dark"] .modal-header .modal-title {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme-version="dark"] .modal-body {
    background: #2d2d2d !important;
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .modal-footer {
    background: #2d2d2d !important;
    border-top: 1px solid #3d3d3d !important;
}

/* ========================================
   ALERTS & BADGES
======================================== */
[data-theme-version="dark"] .alert {
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .alert-info {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .alert-warning {
    background: rgba(205, 127, 50, 0.1) !important;
    border-color: #CD7F32 !important;
    color: #CD7F32 !important;
}

[data-theme-version="dark"] .alert-success {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .badge.light.badge-success {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .badge.light.badge-danger {
    background: rgba(139, 134, 128, 0.15) !important;
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .badge.light.badge-warning {
    background: rgba(205, 127, 50, 0.15) !important;
    color: #CD7F32 !important;
}

[data-theme-version="dark"] .badge.light.badge-info {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #D4AF37 !important;
}

/* ========================================
   BUTTONS - Manter cores douradas
======================================== */
[data-theme-version="dark"] .btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #CD7F32 0%, #D4AF37 100%) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
}

[data-theme-version="dark"] .btn-secondary {
    background: #3d3d3d !important;
    border: 1px solid #4d4d4d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .btn-secondary:hover {
    background: #4d4d4d !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .btn-outline-primary {
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .btn-outline-primary:hover {
    background: #D4AF37 !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .btn.light.btn-primary,
[data-theme-version="dark"] .btn-light.btn-primary {
    background: rgba(212, 175, 55, 0.15) !important;
    border: 1px solid #D4AF37 !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .btn.light.btn-primary:hover,
[data-theme-version="dark"] .btn-light.btn-primary:hover {
    background: #D4AF37 !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .btn.light.btn-secondary,
[data-theme-version="dark"] .btn-light.btn-secondary {
    background: #333333 !important;
    border: 1px solid #3d3d3d !important;
    color: #B3B3B3 !important;
}

/* ========================================
   LIST GROUPS
======================================== */
[data-theme-version="dark"] .list-group-item {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .list-group-item:hover {
    background: #333333 !important;
}

[data-theme-version="dark"] .list-group-item.active {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    border-color: #D4AF37 !important;
    color: #FFFFFF !important;
}

/* ========================================
   PAGINATION
======================================== */
[data-theme-version="dark"] .page-link {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .page-link:hover {
    background: #3d3d3d !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .page-item.active .page-link {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    border-color: #D4AF37 !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .page-item.disabled .page-link {
    background: #242424 !important;
    color: #666666 !important;
}

/* ========================================
   TABS & NAV
======================================== */
[data-theme-version="dark"] .nav-tabs {
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .nav-tabs .nav-link {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .nav-tabs .nav-link:hover {
    border-color: #3d3d3d !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .nav-tabs .nav-link.active {
    background: #2d2d2d !important;
    border-color: #3d3d3d #3d3d3d #2d2d2d !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .nav-pills .nav-link {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    color: #FFFFFF !important;
}

/* ========================================
   FOOTER
======================================== */
[data-theme-version="dark"] .footer {
    background: #1a1a1a !important;
    border-top: 1px solid #3d3d3d !important;
}

[data-theme-version="dark"] .footer .copyright {
    background: transparent !important;
    color: #8B8680 !important;
}

[data-theme-version="dark"] .footer .copyright a {
    color: #D4AF37 !important;
}

/* ========================================
   SCROLLBAR
======================================== */
[data-theme-version="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme-version="dark"] ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

[data-theme-version="dark"] ::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}

[data-theme-version="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* ========================================
   MISC COMPONENTS
======================================== */
[data-theme-version="dark"] .border {
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .border-top {
    border-top-color: #3d3d3d !important;
}

[data-theme-version="dark"] .border-bottom {
    border-bottom-color: #3d3d3d !important;
}

[data-theme-version="dark"] .border-left,
[data-theme-version="dark"] .border-start {
    border-left-color: #3d3d3d !important;
}

[data-theme-version="dark"] .border-right,
[data-theme-version="dark"] .border-end {
    border-right-color: #3d3d3d !important;
}

[data-theme-version="dark"] hr {
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .bg-white {
    background: #2d2d2d !important;
}

[data-theme-version="dark"] .bg-light {
    background: #333333 !important;
}

[data-theme-version="dark"] .shadow,
[data-theme-version="dark"] .shadow-sm,
[data-theme-version="dark"] .shadow-lg {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   SWEET ALERT 2
======================================== */
[data-theme-version="dark"] .swal2-popup {
    background: #2d2d2d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .swal2-title {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .swal2-html-container {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .swal2-input {
    background: #333333 !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

/* ========================================
   SPECIFIC INLINE STYLE OVERRIDES
   Para elementos com style inline
======================================== */
[data-theme-version="dark"] [style*="background: linear-gradient(135deg, #FFFFFF"],
[data-theme-version="dark"] [style*="background:linear-gradient(135deg, #FFFFFF"],
[data-theme-version="dark"] [style*="background: #FFFFFF"],
[data-theme-version="dark"] [style*="background:#FFFFFF"],
[data-theme-version="dark"] [style*="background: white"],
[data-theme-version="dark"] [style*="background:white"],
[data-theme-version="dark"] [style*="background-color: #FFFFFF"],
[data-theme-version="dark"] [style*="background-color:#FFFFFF"],
[data-theme-version="dark"] [style*="background-color: white"],
[data-theme-version="dark"] [style*="background-color:white"] {
    background: #2d2d2d !important;
}

[data-theme-version="dark"] [style*="background: #FDF8F3"],
[data-theme-version="dark"] [style*="background:#FDF8F3"],
[data-theme-version="dark"] [style*="background-color: #FDF8F3"],
[data-theme-version="dark"] [style*="background-color:#FDF8F3"] {
    background: #333333 !important;
}

[data-theme-version="dark"] [style*="color: #5D4E37"],
[data-theme-version="dark"] [style*="color:#5D4E37"] {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] [style*="color: #8B8680"],
[data-theme-version="dark"] [style*="color:#8B8680"] {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] [style*="border-color: #E8E0D5"],
[data-theme-version="dark"] [style*="border-color:#E8E0D5"],
[data-theme-version="dark"] [style*="border: 1px solid #E8E0D5"],
[data-theme-version="dark"] [style*="border:1px solid #E8E0D5"] {
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] [style*="border-color: #F5E6C8"],
[data-theme-version="dark"] [style*="border-color:#F5E6C8"] {
    border-color: #3d3d3d !important;
}

/* ========================================
   DASHBOARD SPECIFIC COMPONENTS
======================================== */
[data-theme-version="dark"] .ticket-icon-1 {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(205, 127, 50, 0.15) 100%) !important;
    border: 1px solid #D4AF37 !important;
}

[data-theme-version="dark"] .media.align-items-center svg,
[data-theme-version="dark"] .media.align-items-center .feather {
    color: #D4AF37 !important;
    stroke: #D4AF37 !important;
}

/* Statistics cards */
[data-theme-version="dark"] .stat-card,
[data-theme-version="dark"] [class*="stat-"] {
    background: #2d2d2d !important;
}

/* Progress bars */
[data-theme-version="dark"] .progress {
    background: #333333 !important;
}

[data-theme-version="dark"] .progress-bar {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
}

/* Accordion */
[data-theme-version="dark"] .accordion-item {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .accordion-button {
    background: #333333 !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(205, 127, 50, 0.1) 100%) !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .accordion-body {
    background: #2d2d2d !important;
    color: #B3B3B3 !important;
}

/* Breadcrumb */
[data-theme-version="dark"] .breadcrumb {
    background: transparent !important;
}

[data-theme-version="dark"] .breadcrumb-item {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .breadcrumb-item a {
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .breadcrumb-item.active {
    color: #8B8680 !important;
}

[data-theme-version="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #666666 !important;
}

/* Tooltip */
[data-theme-version="dark"] .tooltip-inner {
    background: #3d3d3d !important;
    color: #E8E0D5 !important;
}

/* Popover */
[data-theme-version="dark"] .popover {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .popover-header {
    background: #333333 !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .popover-body {
    color: #B3B3B3 !important;
}

/* ========================================
   LIGHTBOX
======================================== */
[data-theme-version="dark"] .lb-outerContainer {
    background: #2d2d2d !important;
}

[data-theme-version="dark"] .lb-dataContainer {
    background: #2d2d2d !important;
}

[data-theme-version="dark"] .lb-data .lb-details {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .lb-data .lb-caption {
    color: #B3B3B3 !important;
}

/* ========================================
   CROPPER JS
======================================== */
[data-theme-version="dark"] .cropper-container {
    background: #1a1a1a !important;
}

/* ========================================
   AUTHENTICATION PAGE - Se usar dark mode
======================================== */
[data-theme-version="dark"] .authincation {
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%) !important;
}

[data-theme-version="dark"] .authincation-content {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .auth-form h4 {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .auth-form .form-label {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .auth-form .form-control {
    background: #333333 !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .auth-form .form-control:focus {
    background: #3d3d3d !important;
    border-color: #D4AF37 !important;
}

[data-theme-version="dark"] .auth-form::before {
    background: linear-gradient(90deg, #D4AF37, #CD7F32) !important;
}

/* ========================================
   INLINE STYLE OVERRIDES - EXTENDED
   Cobertura mais completa para estilos inline
======================================== */

/* Cards com gradientes inline */
[data-theme-version="dark"] .card[style*="background: linear-gradient"],
[data-theme-version="dark"] .card-body[style*="background: linear-gradient"],
[data-theme-version="dark"] .card-header[style*="background: linear-gradient"],
[data-theme-version="dark"] div[style*="background: linear-gradient(135deg, #FFFFFF"] {
    background: linear-gradient(135deg, #2d2d2d 0%, #333333 100%) !important;
}

/* Bordas inline */
[data-theme-version="dark"] [style*="border: 1px solid #E8E0D5"],
[data-theme-version="dark"] [style*="border: 2px solid #D4AF37"],
[data-theme-version="dark"] [style*="border: 1px solid #F5E6C8"],
[data-theme-version="dark"] [style*="border-bottom: 1px solid #F5E6C8"],
[data-theme-version="dark"] [style*="border-bottom: 2px solid #F5E6C8"] {
    border-color: #3d3d3d !important;
}

/* Manter bordas douradas em elementos especiais */
[data-theme-version="dark"] .card[style*="border: 2px solid #D4AF37"] {
    border-color: #D4AF37 !important;
}

/* Textos com cores inline */
[data-theme-version="dark"] h2[style*="color: #5D4E37"],
[data-theme-version="dark"] h3[style*="color: #5D4E37"],
[data-theme-version="dark"] h4[style*="color: #5D4E37"],
[data-theme-version="dark"] h5[style*="color: #5D4E37"],
[data-theme-version="dark"] span[style*="color: #5D4E37"],
[data-theme-version="dark"] p[style*="color: #5D4E37"] {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] p[style*="color: #8B8680"],
[data-theme-version="dark"] span[style*="color: #8B8680"] {
    color: #B3B3B3 !important;
}

/* Box shadows inline */
[data-theme-version="dark"] [style*="box-shadow: 0 2px 10px rgba(0,0,0,0.04)"],
[data-theme-version="dark"] [style*="box-shadow: 0 4px 20px rgba(0,0,0,0.06)"],
[data-theme-version="dark"] [style*="box-shadow: 0 8px 25px rgba(212, 175, 55"],
[data-theme-version="dark"] [style*="box-shadow: 0 2px 15px rgba(212, 175, 55"] {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   APEX CHARTS - Dark Mode
======================================== */
[data-theme-version="dark"] .apexcharts-canvas {
    background: transparent !important;
}

[data-theme-version="dark"] .apexcharts-text,
[data-theme-version="dark"] .apexcharts-title-text,
[data-theme-version="dark"] .apexcharts-yaxis-label,
[data-theme-version="dark"] .apexcharts-xaxis-label {
    fill: #B3B3B3 !important;
}

[data-theme-version="dark"] .apexcharts-legend-text {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .apexcharts-gridline {
    stroke: #3d3d3d !important;
}

[data-theme-version="dark"] .apexcharts-tooltip {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .apexcharts-tooltip-title {
    background: #333333 !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .apexcharts-xaxistooltip,
[data-theme-version="dark"] .apexcharts-yaxistooltip {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .apexcharts-menu {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .apexcharts-menu-item:hover {
    background: #3d3d3d !important;
}

/* ========================================
   PEITY CHARTS - Dark Mode
======================================== */
[data-theme-version="dark"] .peity {
    stroke: #3d3d3d !important;
}

/* ========================================
   CONTAINER & CONTENT AREA
======================================== */
[data-theme-version="dark"] .container-fluid {
    background: transparent !important;
}

[data-theme-version="dark"] .row {
    background: transparent !important;
}

/* ========================================
   STATISTICS PAGE SPECIFIC
======================================== */
[data-theme-version="dark"] #grafico_convidados,
[data-theme-version="dark"] #grafico_convidados_presencas,
[data-theme-version="dark"] [id*="grafico"] {
    background: transparent !important;
}

/* Gauge/Meter indicators */
[data-theme-version="dark"] .gauge,
[data-theme-version="dark"] [class*="gauge"] {
    background: #2d2d2d !important;
}

/* ========================================
   ICONS - Manter cores douradas/bronze
======================================== */
[data-theme-version="dark"] .fa-utensils,
[data-theme-version="dark"] .fa-users,
[data-theme-version="dark"] .fa-envelope-open,
[data-theme-version="dark"] .fa-calendar-alt,
[data-theme-version="dark"] .fa-clock,
[data-theme-version="dark"] .fa-arrow-right,
[data-theme-version="dark"] i[style*="color: #D4AF37"],
[data-theme-version="dark"] i[style*="color:#D4AF37"] {
    color: #D4AF37 !important;
}

[data-theme-version="dark"] i[style*="color: #CD7F32"],
[data-theme-version="dark"] i[style*="color:#CD7F32"] {
    color: #CD7F32 !important;
}

/* Ícones brancos em fundos dourados - manter */
[data-theme-version="dark"] [style*="background: linear-gradient(135deg, #D4AF37"] i,
[data-theme-version="dark"] div[style*="background: linear-gradient(135deg, #D4AF37"] i {
    color: #fff !important;
}

/* ========================================
   LEGEND INDICATORS (colored bars)
======================================== */
[data-theme-version="dark"] div[style*="width: 24px; height: 6px; background: #D4AF37"],
[data-theme-version="dark"] div[style*="width: 24px; height: 6px; background: #CD7F32"],
[data-theme-version="dark"] div[style*="width: 24px; height: 6px; background: #8B8680"] {
    /* Manter as cores originais das legendas */
}

/* ========================================
   DASHBOARD BUTTONS COMPONENT
======================================== */
[data-theme-version="dark"] .card[style*="border: 2px solid #D4AF37"] {
    background: linear-gradient(135deg, #2d2d2d 0%, #333333 100%) !important;
    border-color: #D4AF37 !important;
}

[data-theme-version="dark"] .card[style*="border: 2px solid #D4AF37"] .card-body {
    background: transparent !important;
}

/* ========================================
   SELECTION CARDS (Bolos, Estacionário)
======================================== */
[data-theme-version="dark"] .selection-card,
[data-theme-version="dark"] [class*="selection-"] {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .selection-card:hover,
[data-theme-version="dark"] [class*="selection-"]:hover {
    border-color: #D4AF37 !important;
}

[data-theme-version="dark"] .selection-card.selected,
[data-theme-version="dark"] [class*="selection-"].selected {
    border-color: #D4AF37 !important;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(205, 127, 50, 0.1) 100%) !important;
}

/* ========================================
   IMAGES & THUMBNAILS
======================================== */
[data-theme-version="dark"] .img-thumbnail {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] figure {
    background: transparent !important;
}

[data-theme-version="dark"] figcaption {
    color: #B3B3B3 !important;
}

/* ========================================
   EMPTY STATES
======================================== */
[data-theme-version="dark"] .empty-state,
[data-theme-version="dark"] [class*="empty-"] {
    color: #8B8680 !important;
}

/* ========================================
   LOADING STATES
======================================== */
[data-theme-version="dark"] .loading,
[data-theme-version="dark"] .spinner-border {
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .skeleton,
[data-theme-version="dark"] [class*="skeleton"] {
    background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%) !important;
}

/* ========================================
   LIVEWIRE LOADING STATES
======================================== */
[data-theme-version="dark"] [wire\:loading],
[data-theme-version="dark"] [wire\:loading\.delay] {
    color: #D4AF37 !important;
}

/* ========================================
   HOVER EFFECTS ON CARDS
======================================== */
[data-theme-version="dark"] .card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

/* ========================================
   TEXT UTILITIES OVERRIDE
======================================== */
[data-theme-version="dark"] .text-body {
    color: #B3B3B3 !important;
}

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

[data-theme-version="dark"] .text-black-50 {
    color: rgba(232, 224, 213, 0.5) !important;
}

[data-theme-version="dark"] .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ========================================
   BACKGROUND UTILITIES OVERRIDE
======================================== */
[data-theme-version="dark"] .bg-body {
    background: #1a1a1a !important;
}

[data-theme-version="dark"] .bg-transparent {
    background: transparent !important;
}

/* ========================================
   RESPONSIVE DARK MODE ADJUSTMENTS
======================================== */
@media (max-width: 768px) {
    [data-theme-version="dark"] .nav-header {
        background: #1a1a1a !important;
    }

    [data-theme-version="dark"] .header {
        background: #1a1a1a !important;
    }

    [data-theme-version="dark"] .deznav {
        background: #1a1a1a !important;
    }
}

/* ========================================
   TEXT SELECTION - Dark Mode
======================================== */
[data-theme-version="dark"] ::selection {
    background: #D4AF37 !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] ::-moz-selection {
    background: #D4AF37 !important;
    color: #FFFFFF !important;
}

/* ========================================
   ESTACIONARIO & BOLOS - Dark Mode
   Classes específicas do Wedding Theme
======================================== */

/* Wedding Header */
[data-theme-version="dark"] .wedding-header {
    background: transparent !important;
}

[data-theme-version="dark"] .wedding-title {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .wedding-subtitle {
    color: #B3B3B3 !important;
}

/* Wedding Sidebar */
[data-theme-version="dark"] .wedding-sidebar {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .wedding-sidebar h6,
[data-theme-version="dark"] .wedding-sidebar .text-muted {
    color: #8B8680 !important;
}

[data-theme-version="dark"] .wedding-sidebar-item {
    background: #333333 !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .wedding-sidebar-item:hover {
    background: #3d3d3d !important;
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .wedding-sidebar-item.active {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    border-color: #D4AF37 !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .wedding-sidebar-item.active i,
[data-theme-version="dark"] .wedding-sidebar-item.active span,
[data-theme-version="dark"] .wedding-sidebar-item.active * {
    color: #FFFFFF !important;
}

/* Wedding Cards */
[data-theme-version="dark"] .wedding-card {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme-version="dark"] .wedding-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

[data-theme-version="dark"] .wedding-card-img {
    border-bottom-color: #3d3d3d !important;
}

[data-theme-version="dark"] .wedding-card-body {
    background: #2d2d2d !important;
}

[data-theme-version="dark"] .wedding-card-title {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .wedding-card-desc {
    color: #B3B3B3 !important;
}

/* Wedding Selected Card */
[data-theme-version="dark"] .wedding-selected-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #333333 100%) !important;
    border-color: #D4AF37 !important;
}

[data-theme-version="dark"] .wedding-selected-header {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .wedding-selected-body {
    background: transparent !important;
}

[data-theme-version="dark"] .wedding-selected-item {
    background: #333333 !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .wedding-selected-item-info h5 {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .wedding-selected-item-info p,
[data-theme-version="dark"] .wedding-selected-item-info .text-muted {
    color: #B3B3B3 !important;
}

/* Wedding Alerts */
[data-theme-version="dark"] .wedding-alert {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: #D4AF37 !important;
    border-left-color: #D4AF37 !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .wedding-alert-info {
    background: rgba(74, 144, 217, 0.1) !important;
    border-color: #4A90D9 !important;
    border-left-color: #4A90D9 !important;
    color: #B8D4F0 !important;
}

/* Wedding Textarea */
[data-theme-version="dark"] .wedding-textarea {
    background: #333333 !important;
    border-color: #3d3d3d !important;
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .wedding-textarea:focus {
    background: #3d3d3d !important;
    border-color: #D4AF37 !important;
}

[data-theme-version="dark"] .wedding-textarea::placeholder {
    color: #8B8680 !important;
}

/* Wedding Section Title */
[data-theme-version="dark"] .wedding-section-title {
    color: #E8E0D5 !important;
    border-bottom-color: #3d3d3d !important;
}

/* Wedding Modal */
[data-theme-version="dark"] .wedding-modal .modal-content {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

[data-theme-version="dark"] .wedding-modal .modal-header {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
}

[data-theme-version="dark"] .wedding-modal .modal-body {
    background: #2d2d2d !important;
    color: #B3B3B3 !important;
}

/* Wedding Buttons - Manter cores */
[data-theme-version="dark"] .wedding-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .wedding-btn-outline {
    background: transparent !important;
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

[data-theme-version="dark"] .wedding-btn-outline:hover {
    background: #D4AF37 !important;
    color: #FFFFFF !important;
}

[data-theme-version="dark"] .wedding-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: #FFFFFF !important;
}

/* Wedding Badge */
[data-theme-version="dark"] .wedding-selected-badge {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%) !important;
    color: #FFFFFF !important;
}

/* Wedding Divider */
[data-theme-version="dark"] .wedding-divider {
    background: linear-gradient(90deg, transparent, #D4AF37, transparent) !important;
}

/* Wedding Icon */
[data-theme-version="dark"] .wedding-icon {
    color: #D4AF37 !important;
}

/* Price HTML no cards */
[data-theme-version="dark"] .wedding-card-body span,
[data-theme-version="dark"] .wedding-selected-item-info span:not(.wedding-selected-badge) {
    color: #B3B3B3 !important;
}

/* Badge de preço */
[data-theme-version="dark"] .wedding-card-body .badge,
[data-theme-version="dark"] .wedding-selected-item .badge {
    background: #3d3d3d !important;
    color: #E8E0D5 !important;
}

/* HR dentro de wedding components */
[data-theme-version="dark"] .wedding-sidebar hr {
    border-color: #3d3d3d !important;
}

/* ========================================
   BOLOS PAGE - Dark Mode (similar structure)
======================================== */

/* Bolos specific cards if different classes */
[data-theme-version="dark"] .bolo-card,
[data-theme-version="dark"] [class*="bolo-"] {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

/* ========================================
   STATISTICS PAGE - Dark Mode Fixes
======================================== */

[data-theme-version="dark"] .fs-14 {
    color: #B3B3B3 !important;
}

/* Stats text colors */
[data-theme-version="dark"] .col-xl-6 h4,
[data-theme-version="dark"] .col-xxl-7 h4 {
    color: #E8E0D5 !important;
}

[data-theme-version="dark"] .col-xl-6 span,
[data-theme-version="dark"] .col-xxl-7 span {
    color: #B3B3B3 !important;
}

/* ========================================
   GENERAL TEXT FIXES - Dark Mode
======================================== */

/* Small text and muted */
[data-theme-version="dark"] .small,
[data-theme-version="dark"] small {
    color: #8B8680 !important;
}

/* Text in cards */
[data-theme-version="dark"] .card p {
    color: #B3B3B3 !important;
}

/* Uppercase text muted */
[data-theme-version="dark"] .text-uppercase.text-muted {
    color: #8B8680 !important;
}

/* Display headings */
[data-theme-version="dark"] .display-5,
[data-theme-version="dark"] .display-4,
[data-theme-version="dark"] .display-3,
[data-theme-version="dark"] .display-2,
[data-theme-version="dark"] .display-1 {
    color: #E8E0D5 !important;
}

/* Text light - fix brightness in dark mode */
[data-theme-version="dark"] .text-light {
    color: #B3B3B3 !important;
}

[data-theme-version="dark"] .text-secondary {
    color: #8B8680 !important;
}
