/* ╔════════════════════════════════════════════════════════╗
   ║  🎨  BORTEX THEME STYLES - Dark/Light Mode             ║
   ╚════════════════════════════════════════════════════════╝ */

/* Dark theme styles */
body.dark-theme {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
}

body.dark-theme .sidenav {
  background-color: #2d2d2d !important;
}

body.dark-theme .card {
  background-color: #2d2d2d !important;
  color: #e0e0e0 !important;
  border-color: #404040 !important;
}

body.dark-theme .card-header {
  background-color: #252525 !important;
  border-bottom-color: #404040 !important;
}

body.dark-theme .card-header h5,
body.dark-theme .card-header h6 {
  color: #e0e0e0 !important;
}

body.dark-theme .settings-item {
  border-bottom-color: #404040 !important;
}

body.dark-theme .settings-item:hover {
  background-color: #353535 !important;
}

body.dark-theme .text-dark,
body.dark-theme .text-sm,
body.dark-theme .font-weight-bold {
  color: #e0e0e0 !important;
}

body.dark-theme .text-muted,
body.dark-theme .text-secondary {
  color: #999 !important;
}

body.dark-theme .navbar {
  background-color: #2d2d2d !important;
}

body.dark-theme .navbar .text-dark {
  color: #e0e0e0 !important;
}

body.dark-theme .form-control,
body.dark-theme .form-select {
  background-color: #353535 !important;
  color: #e0e0e0 !important;
  border-color: #404040 !important;
}

body.dark-theme .btn-outline-primary {
  color: #6ea8fe !important;
  border-color: #6ea8fe !important;
}

body.dark-theme .btn-outline-primary:hover,
body.dark-theme .btn-outline-primary.active {
  background-color: #0d6efd !important;
  color: #fff !important;
}

body.dark-theme .sidenav .nav-link {
  color: #b0b0b0 !important;
}

body.dark-theme .sidenav .nav-link.active {
  background-color: #404040 !important;
}

body.dark-theme .breadcrumb-item,
body.dark-theme .breadcrumb-item a {
  color: #999 !important;
}

body.dark-theme .fixed-plugin .card {
  background-color: #2d2d2d !important;
}

body.dark-theme table {
  color: #e0e0e0 !important;
}

body.dark-theme table th {
  background-color: #252525 !important;
  color: #e0e0e0 !important;
}

body.dark-theme table td {
  border-color: #404040 !important;
}

body.dark-theme .modal-content {
  background-color: #2d2d2d !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal-header {
  background-color: #252525 !important;
  border-bottom-color: #404040 !important;
}

body.dark-theme .modal-footer {
  border-top-color: #404040 !important;
}

body.dark-theme .dropdown-menu {
  background-color: #2d2d2d !important;
  border-color: #404040 !important;
}

body.dark-theme .dropdown-item {
  color: #e0e0e0 !important;
}

body.dark-theme .dropdown-item:hover {
  background-color: #353535 !important;
}

/* Tutti i tipi di testo */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme p,
body.dark-theme span,
body.dark-theme label,
body.dark-theme a,
body.dark-theme div {
  color: #e0e0e0 !important;
}

/* Classi specifiche per testi */
body.dark-theme .text-xs,
body.dark-theme .text-sm,
body.dark-theme .text-md,
body.dark-theme .text-lg,
body.dark-theme .text-xl {
  color: #e0e0e0 !important;
}

/* Font weights */
body.dark-theme .font-weight-light,
body.dark-theme .font-weight-normal,
body.dark-theme .font-weight-bold,
body.dark-theme .font-weight-bolder {
  color: #e0e0e0 !important;
}

/* Titoli nelle card */
body.dark-theme .card-title,
body.dark-theme .card-text,
body.dark-theme .card-body p,
body.dark-theme .card-body span,
body.dark-theme .card-body label {
  color: #e0e0e0 !important;
}

/* Liste */
body.dark-theme ul,
body.dark-theme ol,
body.dark-theme li {
  color: #e0e0e0 !important;
}

/* Link */
body.dark-theme a:not(.btn) {
  color: #6ea8fe !important;
}

body.dark-theme a:not(.btn):hover {
  color: #8bb9fe !important;
}

/* Input e textarea placeholder */
body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: #999 !important;
}

/* Badge e chip */
body.dark-theme .badge {
  color: #fff !important;
}

/* Alert */
body.dark-theme .alert {
  background-color: #353535 !important;
  border-color: #404040 !important;
  color: #e0e0e0 !important;
}

/* Pulsanti */
body.dark-theme .btn-light {
  background-color: #353535 !important;
  border-color: #404040 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .btn-outline-secondary {
  color: #999 !important;
  border-color: #999 !important;
}

body.dark-theme .btn-outline-secondary:hover {
  background-color: #353535 !important;
  color: #e0e0e0 !important;
}

/* Footer */
body.dark-theme .footer {
  background-color: #2d2d2d !important;
  color: #999 !important;
}

body.dark-theme .footer a {
  color: #999 !important;
}

body.dark-theme .footer a:hover {
  color: #e0e0e0 !important;
}

/* Copyright text */
body.dark-theme .copyright {
  color: #999 !important;
}

/* Nav links footer */
body.dark-theme .nav-footer .nav-link {
  color: #999 !important;
}

/* Fixed plugin */
body.dark-theme .fixed-plugin p,
body.dark-theme .fixed-plugin h5,
body.dark-theme .fixed-plugin h6 {
  color: #e0e0e0 !important;
}

/* List group - Sezione benefici e funzionalità */
body.dark-theme .list-group {
  background-color: transparent !important;
}

body.dark-theme .list-group-item {
  background-color: transparent !important;
  color: #e0e0e0 !important;
  border-color: #404040 !important;
}

body.dark-theme .list-group-item div,
body.dark-theme .list-group-item span:not(.badge) {
  color: #e0e0e0 !important;
}

body.dark-theme .list-group-item .fw-bold,
body.dark-theme .list-group-item .font-weight-bold {
  color: #e0e0e0 !important;
}

/* Icone nelle list-group */
body.dark-theme .list-group-item i {
  color: inherit !important;
}

/* Badge colors per sidebar configurator */
.badge-colors .badge {
  display: inline-block;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  line-height: 20px !important;
}

.badge.bg-primary {
  background: linear-gradient(195deg, #EC407A 0%, #D81B60 100%) !important;
}

.badge.bg-gradient-dark {
  background: linear-gradient(195deg, #42424a 0%, #191919 100%) !important;
}

.badge.bg-gradient-info {
  background: linear-gradient(195deg, #49a3f1 0%, #1A73E8 100%) !important;
}

.badge.bg-gradient-success {
  background: linear-gradient(195deg, #66BB6A 0%, #43A047 100%) !important;
}

.badge.bg-gradient-warning {
  background: linear-gradient(195deg, #FFA726 0%, #FB8C00 100%) !important;
}

.badge.bg-gradient-danger {
  background: linear-gradient(195deg, #EF5350 0%, #E53935 100%) !important;
}

.badge.active {
  border: 2px solid #fff !important;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}
