/* ========================================
   AUTH PAGES DARK MODE STYLES
   ======================================== */

/* Root/HTML Dark Mode */
html.dark-mode {
  background: #0f0f23 !important;
  background-color: #0f0f23 !important;
  color: #ffffff !important;
  min-height: 100vh !important;
}

/* Body Dark Mode */
body.dark-mode,
html.dark-mode body,
html.dark-mode > body {
  background: #0f0f23 !important;
  background-color: #0f0f23 !important;
  color: #ffffff !important;
  min-height: 100vh !important;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Content Wrapper */
html.dark-mode .content-wrapper {
  background-color: #0f0f23 !important;
}

.content-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

html.dark-mode header.wrapper.bg-soft-primary {
  background-color: #1a1a2e !important;
}

header.wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

html.dark-mode .navbar {
  background-color: #1a1a2e !important;
}

html.dark-mode .navbar-light .navbar-nav .nav-link {
  color: #ffffff !important;
}

html.dark-mode .navbar-light .navbar-nav .nav-link:hover {
  color: #a78bfa !important;
}

html.dark-mode .offcanvas {
  background-color: #1a1a2e !important;
}

html.dark-mode .offcanvas-body,
html.dark-mode .offcanvas-header,
html.dark-mode .offcanvas-footer {
  background-color: #1a1a2e !important;
  color: #ffffff !important;
}

/* ========================================
   SECTIONS
   ======================================== */

html.dark-mode section.wrapper.bg-soft-primary,
html.dark-mode .wrapper.bg-soft-primary {
  background-color: #1a1a2e !important;
}

html.dark-mode section.wrapper.bg-light,
html.dark-mode .wrapper.bg-light {
  background-color: #16213e !important;
}

/* ========================================
   BREADCRUMB
   ======================================== */

html.dark-mode .breadcrumb {
  background-color: transparent !important;
}

html.dark-mode .breadcrumb-item,
html.dark-mode .breadcrumb-item a {
  color: #cbd5e1 !important;
}

html.dark-mode .breadcrumb-item.active {
  color: #ffffff !important;
}

html.dark-mode .breadcrumb-item + .breadcrumb-item::before {
  color: #94a3b8 !important;
}

/* ========================================
   CARD & FORM
   ======================================== */

html.dark-mode .card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html.dark-mode .card:hover {
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3) !important;
}

/* Form Controls */
html.dark-mode .form-control,
html.dark-mode .form-floating > .form-control {
  background-color: #252f3f !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

html.dark-mode .form-control:focus {
  background-color: #2d3748 !important;
  border-color: #a78bfa !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(167, 139, 250, 0.25) !important;
}

html.dark-mode .form-control::placeholder {
  color: #94a3b8 !important;
}

html.dark-mode .form-floating > label {
  color: #94a3b8 !important;
}

html.dark-mode .form-floating > .form-control:focus ~ label,
html.dark-mode .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #a78bfa !important;
}

/* Password Toggle */
html.dark-mode .password-toggle {
  color: #cbd5e1 !important;
}

html.dark-mode .password-toggle:hover {
  color: #a78bfa !important;
}

/* Checkbox Styles */
html.dark-mode .form-check-input {
  background-color: #252f3f !important;
  border-color: #334155 !important;
}

html.dark-mode .form-check-input:checked {
  background-color: #a78bfa !important;
  border-color: #a78bfa !important;
}

html.dark-mode .form-check-input:focus {
  border-color: #a78bfa !important;
  box-shadow: 0 0 0 0.2rem rgba(167, 139, 250, 0.25) !important;
}

html.dark-mode .form-check-label {
  color: #e2e8f0 !important;
}

html.dark-mode .form-check-label a {
  color: #a78bfa !important;
  text-decoration: none;
}

html.dark-mode .form-check-label a:hover {
  color: #c4b5fd !important;
  text-decoration: underline;
}

/* ========================================
   BUTTONS
   ======================================== */

/* Primary Button - Purple Gradient */
html.dark-mode .btn-primary,
html.dark-mode .btn-primary:not(:disabled):not(.disabled),
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: #764ba2 !important;
  color: #ffffff !important;
}

html.dark-mode .btn-primary:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
  border-color: #667eea !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4) !important;
}

html.dark-mode .btn-login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: #764ba2 !important;
}

html.dark-mode .btn-login:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4) !important;
}

/* ========================================
   TEXT & TYPOGRAPHY
   ======================================== */

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
  color: #ffffff !important;
}

html.dark-mode p {
  color: #e2e8f0 !important;
}

html.dark-mode .lead {
  color: #cbd5e1 !important;
}

html.dark-mode a:not(.btn) {
  color: #a78bfa !important;
}

html.dark-mode a:not(.btn):hover {
  color: #c4b5fd !important;
}

/* ========================================
   FOOTER
   ======================================== */

html.dark-mode footer {
  background-color: #0f0f23 !important;
  color: #ffffff !important;
  border-top: 1px solid #334155 !important;
}

html.dark-mode footer p,
html.dark-mode footer h5,
html.dark-mode footer address {
  color: #e2e8f0 !important;
}

html.dark-mode footer .icon {
  color: #a78bfa !important;
}

html.dark-mode footer hr {
  border-color: #334155 !important;
}

html.dark-mode .social a {
  color: #cbd5e1 !important;
}

html.dark-mode .social a:hover {
  color: #a78bfa !important;
}

/* ========================================
   PROGRESS WRAP
   ======================================== */

html.dark-mode .progress-wrap {
  background-color: #1e293b !important;
  border-color: #a78bfa !important;
}

html.dark-mode .progress-wrap:hover {
  background-color: #7c3aed !important;
}

html.dark-mode .progress-wrap svg path {
  stroke: #a78bfa !important;
}

/* ========================================
   DARK MODE TOGGLE BUTTON
   ======================================== */

#darkModeToggleAuth {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
}

#darkModeToggleAuth:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
  transform: rotate(15deg) scale(1.1) !important;
}

#darkModeToggleAuth:active {
  transform: scale(0.95) !important;
}

#moonIconAuth,
#sunIconAuth {
  font-size: 22px !important;
  line-height: 1 !important;
  user-select: none !important;
  pointer-events: none !important;
}

/* ========================================
   HAMBURGER MENU
   ======================================== */

html.dark-mode .hamburger span,
html.dark-mode .hamburger span:before,
html.dark-mode .hamburger span:after {
  background-color: #ffffff !important;
}

html.dark-mode .btn-close,
html.dark-mode .btn-close-white {
  filter: invert(1) brightness(2) !important;
}

/* ========================================
   FAKE NOTIFICATION (SweetAlert2 Toast)
   ======================================== */

html.dark-mode .swal2-popup.swal2-toast {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html.dark-mode .swal2-popup.swal2-toast .swal2-title {
  color: #ffffff !important;
}

html.dark-mode .swal2-popup.swal2-toast .swal2-html-container {
  color: #e2e8f0 !important;
}

html.dark-mode .swal2-popup.swal2-toast .swal2-icon.swal2-info {
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}

html.dark-mode .swal2-popup.swal2-toast .swal2-icon.swal2-info [class^='swal2-icon-content'] {
  color: #3b82f6 !important;
}

html.dark-mode .swal2-popup.swal2-toast .swal2-timer-progress-bar {
  background-color: #a78bfa !important;
}

html.dark-mode .swal2-popup.swal2-toast .swal2-close {
  color: #cbd5e1 !important;
}

html.dark-mode .swal2-popup.swal2-toast .swal2-close:hover {
  color: #ffffff !important;
}

/* ========================================
   SMOOTH TRANSITIONS
   ======================================== */

html,
body,
.content-wrapper,
section,
.card,
.btn,
.navbar,
footer,
.form-control {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 991.98px) {
  html.dark-mode .offcanvas {
    background-color: #1a1a2e !important;
  }
  
  html.dark-mode .offcanvas-header,
  html.dark-mode .offcanvas-body,
  html.dark-mode .offcanvas-footer {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
  }
}
