/*
 * Couleurs personnalisées de l'entreprise
 * Bleu Électrique: #1E90FF
 * Orange Vif: #FF6600
 */

/* ========================================
   ARRIÈRE-PLANS BLEUS
   ======================================== */

/* En-têtes et éléments principaux */
.table-pdf thead tr,
.blue-heading,
.blue-header th {
  background-color: #1E90FF !important;
}

/* Boutons et éléments interactifs */
.btn-primary,
.bg-primary {
  background-color: #1E90FF !important;
  border-color: #1E90FF !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #1873CC !important;
  border-color: #1873CC !important;
}

/* Bordures et accents */
.border-primary,
.alert-info {
  border-left: 10px solid #1E90FF !important;
}

.border-dotted-primary {
  border: 2px dotted #1E90FF !important;
}

/* Liens et textes */
.text-primary,
a.text-primary {
  color: #1E90FF !important;
}

/* Gradients */
.gradient-primary,
.bg-gradient-primary {
  background: linear-gradient(to right, #1E90FF, #1873CC) !important;
}

/* ========================================
   ARRIÈRE-PLANS ORANGE (Accent)
   ======================================== */

/* Badges et notifications */
.badge-warning,
.bg-warning {
  background-color: #FF6600 !important;
}

.btn-warning {
  background-color: #FF6600 !important;
  border-color: #FF6600 !important;
  color: #fff !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: #E65C00 !important;
  border-color: #E65C00 !important;
}

/* Texte orange */
.text-warning,
.text-orange {
  color: #FF6600 !important;
}

/* ========================================
   THÈME ADMINLTE - SKIN BLUE
   ======================================== */

/* Header principal */
.skin-blue .main-header .navbar,
.skin-blue-light .main-header .navbar {
  background-color: #1E90FF !important;
}

.skin-blue .main-header .logo,
.skin-blue-light .main-header .logo {
  background-color: #1873CC !important;
}

.skin-blue .main-header .logo:hover,
.skin-blue-light .main-header .logo:hover {
  background-color: #1566B3 !important;
}

/* Sidebar */
.skin-blue .sidebar-menu > li.active > a,
.skin-blue .sidebar-menu > li:hover > a,
.skin-blue-light .sidebar-menu > li.active > a,
.skin-blue-light .sidebar-menu > li:hover > a {
  background-color: #1E90FF !important;
  border-left-color: #FF6600 !important;
}

.skin-blue .sidebar-menu > li > .treeview-menu,
.skin-blue-light .sidebar-menu > li > .treeview-menu {
  background-color: #1873CC !important;
}

/* ========================================
   PAGE DE LOGIN
   ======================================== */

/* Fond de la page de login - Option 4 : Bulles Flottantes avec animation */
.login-page,
.register-page {
  background-color: #1E90FF !important;
  position: relative;
  overflow: hidden;
}

.login-page::before,
.register-page::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.1);
  top: -250px;
  right: -250px;
  animation: float 20s infinite ease-in-out;
}

.login-page::after,
.register-page::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  bottom: -150px;
  left: -150px;
  animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-50px) scale(1.05); }
}

/* Boîte de login */
.login-box,
.register-box {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.login-box-body,
.register-box-body {
  background-color: #ffffff;
  border-radius: 8px;
}

/* Logo sur la page de login */
.login-logo,
.register-logo {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-logo a,
.register-logo a {
  color: #ffffff !important;
}

/* Bouton de connexion */
.login-box-body .btn-primary,
.register-box-body .btn-primary {
  background-color: #FF6600 !important;
  border-color: #FF6600 !important;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
}

.login-box-body .btn-primary:hover,
.register-box-body .btn-primary:hover {
  background-color: #E65C00 !important;
  border-color: #E65C00 !important;
}

/* Liens sur la page de login */
.login-box-body a,
.register-box-body a {
  color: #1E90FF !important;
}

.login-box-body a:hover,
.register-box-body a:hover {
  color: #1566B3 !important;
  text-decoration: underline;
}

/* ========================================
   ÉLÉMENTS DE FORMULAIRE
   ======================================== */

/* Focus sur les champs de formulaire */
.form-control:focus {
  border-color: #1E90FF !important;
  box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.25) !important;
}

/* Checkbox et radio (iCheck) */
.icheckbox_square-blue,
.iradio_square-blue {
  /* Les images iCheck devront être remplacées si nécessaire */
}

/* ========================================
   TABLEAUX ET LISTES
   ======================================== */

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(30, 144, 255, 0.05);
}

.table-hover tbody tr:hover {
  background-color: rgba(30, 144, 255, 0.1);
}

/* ========================================
   BADGES ET LABELS
   ======================================== */

.label-primary,
.badge-primary {
  background-color: #1E90FF !important;
}

.label-warning,
.badge-warning {
  background-color: #FF6600 !important;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination > .active > a,
.pagination > .active > span {
  background-color: #1E90FF !important;
  border-color: #1E90FF !important;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
  background-color: rgba(30, 144, 255, 0.1);
  border-color: #1E90FF;
  color: #1E90FF;
}

/* ========================================
   ALERTES ET NOTIFICATIONS
   ======================================== */

.alert-info {
  background-color: rgba(30, 144, 255, 0.1);
  border-color: #1E90FF;
  color: #1566B3;
}

.alert-warning {
  background-color: rgba(255, 102, 0, 0.1);
  border-color: #FF6600;
  color: #CC5200;
}

/* ========================================
   MODALS
   ======================================== */

.modal-header {
  background-color: #1E90FF;
  color: #ffffff;
}

.modal-header .close {
  color: #ffffff;
  opacity: 0.8;
}

.modal-header .close:hover {
  opacity: 1;
}

/* ========================================
   NAVIGATION TABS
   ======================================== */

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border-top: 3px solid #1E90FF;
}

.nav-tabs > li > a:hover {
  border-top: 3px solid #FF6600;
}

/* ========================================
   PROGRESS BARS
   ======================================== */

.progress-bar {
  background-color: #1E90FF;
}

.progress-bar-warning {
  background-color: #FF6600;
}

/* ========================================
   BOUTONS SUPPLÉMENTAIRES
   ======================================== */

.btn-info {
  background-color: #1E90FF !important;
  border-color: #1E90FF !important;
}

.btn-info:hover,
.btn-info:focus {
  background-color: #1873CC !important;
  border-color: #1873CC !important;
}

/* ========================================
   DASHBOARD BOXES
   ======================================== */

.info-box-icon.bg-primary,
.small-box.bg-primary {
  background-color: #1E90FF !important;
}

.info-box-icon.bg-warning,
.small-box.bg-warning {
  background-color: #FF6600 !important;
}

/* ========================================
   CORRECTIONS SPÉCIFIQUES
   ======================================== */

/* Correction pour les anciens styles */
[style*="#357ca5"],
[style*="#3c8dbc"],
[style*="#3b82f6"] {
  /* Ces styles inline devront être mis à jour manuellement si présents */
}
