/* ==================== Base Bank Theme ==================== */
:root {
  --main: 210, 80%, 50%; /* Bleu bancaire principal */
  --accent: 250, 80%, 55%; /* Accent violet pour boutons/hover */
  --success: 145, 63%, 49%;
  --error: 0, 78%, 55%;
  --bg-card: 245, 15%, 95%; /* Fond clair pour cartes */
  --text-color: 220, 15%, 20%;
}

/* -------------------- Copy Animation -------------------- */
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  color: hsl(var(--main));
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 0.9em;
  padding: 5px 10px;
  color: #fff;
  background-color: hsl(var(--accent));
  border-radius: 5px;
  opacity: 0;
  animation: showcopied 1.5s ease forwards;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }
  70% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
  }
}

/* -------------------- Cookies Card -------------------- */
.cookies-card {
  width: 520px;
  padding: 25px 30px;
  color: hsl(var(--text-color));
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  background-color: hsl(var(--bg-card));
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: hsl(var(--main));
  color: #fff;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookies-btn {
  color: hsl(var(--text-color));
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  border-radius: 999px;
  background-color: hsl(var(--main));
  color: #fff;
  transition: all 0.3s;
}

.cookies-btn:hover {
  background-color: hsl(var(--accent));
}

/* -------------------- Input Popup -------------------- */
.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 300px;
  background-color: hsl(var(--text-color));
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.input-popup::after {
  position: absolute;
  content: '';
  bottom: -10px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent hsl(var(--text-color)) transparent;
}

.input-popup p {
  padding-left: 20px;
  position: relative;
  font-size: 14px;
}

.input-popup p.error::before {
  content: "\f057";
  color: hsl(var(--error));
  font-family: "Line Awesome Free";
  font-weight: 900;
  position: absolute;
  left: 0;
}

.input-popup p.success::before {
  content: "\f058";
  color: hsl(var(--success));
  font-family: "Line Awesome Free";
  font-weight: 900;
  position: absolute;
  left: 0;
}

/* -------------------- Buttons & Inputs -------------------- */
.btn[type=submit],
.h-45 {
  height: 50px;
  border-radius: 6px;
  background-color: hsl(var(--main));
  color: #fff;
  border: none;
  transition: all 0.3s;
}

.btn[type=submit]:hover {
  background-color: hsl(var(--accent));
}

.input-group-text {
  color: #747474;
  background-color: #fff;
  border-radius: 6px;
  transition: all 0.15s linear;
}

.form--control:focus~.input-group-text {
  border-color: hsl(var(--main));
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* -------------------- Select2 Custom -------------------- */
.select2-container--default .select2-selection--single {
  border-color: #ccd0d1 !important;
  border-radius: 6px !important;
  height: 50px !important;
  padding: 0 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 50px !important;
  color: hsl(var(--text-color));
}

.select2-dropdown {
  border-radius: 6px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* -------------------- Date Picker -------------------- */
.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker .ranges li.active {
  background-color: hsl(var(--main)) !important;
}

/* -------------------- Maintenance Page -------------------- */
.maintenance-page {
  display: grid;
  place-content: center;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, hsl(var(--main)), hsl(var(--accent)));
  color: #fff;
  font-family: 'Poppins', sans-serif;
}