.dark-ui {
    --primary: #007bff;
}

body.dark-ui {
    background: linear-gradient(180deg, #1e3c72, #2a5298);
    font-family: 'Poppins', sans-serif;
!important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.dark-ui .logo {
    color: #ffffff !important;
    border-radius: 15px;
    background-color: #1e3c72;
    padding: 16px;
    font-size: clamp(2rem, 5vw, 4rem); /*pour une taille fluide */
    width: 100%;
    white-space: normal; /* ou text-wrap: wrap */
}

.dark-ui .btn-outline-primary {
    background-color: #ff9800;
    color: #fff;
    border-color: #ff9800;
}

.dark-ui .btn-outline-secondary {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
    border-radius: 5px;
}

.dark-ui .btn-outline-primary:hover,
.dark-ui .btn-outline-secondary:hover {
    background-color: #fff;
    color: #000;
}

.dark-ui .btn-outline-danger {
    background-color: #f44336;
    color: #fff;
    border-color: #f44336;
    border-radius: 5px;
}

.dark-ui .card {
    background: #fff;
    color: #000;
    border-radius: 5px;
}

.dark-ui .text-secondary {
    color: rgba(250, 250, 250, 1) !important;
}

.dark-ui .text-warning {
    color: orangered;
}

.dark-ui .btn {
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.dark-ui .btn:active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dark-ui .navbar {
    background-color: #1e3c72 !important; /* même que ton .logo */
    border-bottom: 2px solid #2a5298;
}

.dark-ui .navbar-brand,
.dark-ui .nav-link {
    color: #ffffff !important;
}

.dark-ui .nav-link:hover {
    color: #ff9800 !important; /* orange vif sur fond sombre */
}

.dark-ui .nav.form .nav-link {
    color: #336699 !important;
}

.dark-ui .nav-link.form a {
    color: #336699 !important;
}

.dark-ui .dashboard .col {
    margin: 10px 0;
}

.dark-ui .dashboard h6 {
    color: #547bbd !important;
    font-weight: bold;
}

.dark-ui .dashboard .text-dark {
    color: #888888 !important;
}

.dark-ui .dashboard .trx {
    width: 50px;
!important;
    min-width: 150px;
!important;
    display: inline-block;
    text-align: left;
    border: solid 1px #AAA;
    background: #ffffff;
!important;
    color: #555 !important;
    font-size: 1rem !important;
}


.dark-ui .section-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.dark-ui .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.dark-ui .wallet-stat h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.dark-ui .wallet-stat small {
    color: #555;
}

.dark-ui .wallet-table th {
    background-color: #f0f0f0;
    font-weight: 600;
}

.dark-ui .wallet-table td {
    vertical-align: middle;
}

.dark-ui .wallet-table .text-success {
    font-weight: normal;
}

.dark-ui .wallet-table .text-danger {
    font-weight: normal;
}


.dark-ui .stat-card {
    background-color: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    text-align: center;
}

.dark-ui .stat-card:hover {
    transform: scale(1.02);
}

.dark-ui .stat-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.dark-ui .stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.dark-ui .stat-badge {
    position: absolute;
    top: -8px;
    right: -16px;
    font-size: 0.7rem;
    font-weight: 500;
    background-color: #3498db;
    color: white;
    padding: 0.25em 0.5em;
    border-radius: 5px;
}

.dark-ui .currency {
    text-align: right;
    padding-right: 1rem;
}

.dark-ui .count-badge {
    right: -5px;
    padding: 0 4px;
}

.dark-ui .list-group-item > div + div {
    margin-top: 3px;
    font-size: 1rem;
}

.dark-ui .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    text-align: left;
    margin-top: 1rem;
    letter-spacing: 1px;
    padding: 5px 10px;
!important;
    background-color: #678dd3;
    border-radius: 5px;
    max-width: fit-content;
}

.dark-ui .action-links a {
    font-weight: 500;
    color: #1e3c72;
    background-color: #f1f5fa;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    display: inline-block;
    white-space: nowrap;
    min-width: 250px;
    text-align: center;
}

.dark-ui .action-links .action-btn.text-cash {
    color: #678dd3 !important;
    background-color: #eeeefd;
!important;
    border-color: #678dd3;
!important;
}

.dark-ui .action-links .action-btn.text-terminal {
    color: #c8245b !important;
    background-color: #eeeefd;
!important;
    border-color: #c8245b;
!important;
}

.dark-ui .action-links .action-btn.text-mobile {
    color: #dc6f35;
    background-color: #fdeeee;
    border-color: #dc6f35;
!important;
}


.dark-ui .action-links a:hover {
    background-color: #e0ecff;
    text-decoration: none;
}

.dark-ui .action-links a.text-danger {
    background-color: #fcecec;
    color: #c0392b;
}

.dark-ui .action-links a.text-danger:hover {
    background-color: #f8d7da;
}

.dark-ui .plan-action-btn {
    width: 120px;
}

.dark-ui .plan-card {
    border-radius: 10px;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease;
}

.dark-ui .plan-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-ui .action-links .action-btn {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid transparent;
    background-color: #f5f5f5;
    min-width: 110px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.dark-ui .action-links .action-btn:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

.dark-ui .action-links .text-danger {
    border-color: #eeeeee;
    color: #547bbd;
!important;
    background-color: #fff0f0;
}

.dark-ui .action-links .text-success {
    border-color: #eeeeee;
    color: #000000;
!important;
    background-color: #f0fff4;
}

.chart-container {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 400px;
}

#historyChart {
    width: 100% !important;
    height: auto !important;
}

.wallet-badge {
    font-size: 0.8rem;
    color: #aaaaaa !important;
}

.host-badge {
    font-size: 12px;
    border: solid 1px #eeeeee;
    padding: 3px 7px;
    border-radius: 3px;
    color: #f30909;
    background-color: #dc8c8c;
}

.info-site {
    background-color: #f0f0f0;
}

.info-site li div {
    color: #000000 !important;
    font-size: 1rem !important;
}

.info-site li span {
    margin-left: 10px;
}

#map {
    height: 300px;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.balance-list {
    display: flex;
    gap: 1rem;
}

.balance-list span {
    background-color: #fff3cd;
    border: 1px solid #5785a1;
    padding: 10px;
    border-radius: 10px;
    min-width: 150px;
}

#cashPhoneOptions {

}

#cashPhoneOptions button {
    font-size: 1.5rem;
    border-radius: 10px;
    background: #0a58ca;
    border: none;
}

/* Bouton croix discret en haut à droite */
.icon-close {
    background: transparent;
    border: 0;
    color: #dc3545; /* rouge Bootstrap */
    font-size: 1rem; /* ~18px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    /*border-radius: .375rem; !* 6px *!*/
    /*line-height: 1;*/
    /*width: 1.5rem;*/
    /*height: 1.5rem;*/
}

.icon-close:hover {
    background: transparent;
}

.icon-close:focus-visible {
    outline: 2px solid rgba(220, 53, 69, .35);
    outline-offset: 2px;
}

/* ------- Switch slider stylé ------- */

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

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

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #28a745; /* vert */
}

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

.switch-label {
  font-size: 1rem;
  color: #ccc;
}
