/**
 * Code & Calm - Custom Theme Override for Vuexy Admin v10
 * ========================================================
 * Primary color matched to the brand logo (steel blue wave)
 * Logo colors: Steel Blue (#5EA5B8), Dark Charcoal (#2D3436)
 */

/* ============================================================
   1. PRIMARY COLOR OVERRIDE - Matched to Logo Wave
   ============================================================ */

:root {
  /* Logo-matched steel blue primary color */
  --bs-primary: #5EA5B8 !important;
  --bs-primary-rgb: 94, 165, 184 !important;
}

/* ============================================================
   2. SIDEBAR BRAND CUSTOMIZATIONS
   ============================================================ */

/* Circular logo for sidebar and auth pages */
.app-brand-logo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(94, 165, 184, 0.2);
  background: #fff;
}

/* Auth cover brand - slightly larger circle */
.auth-cover-brand .app-brand-logo img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(94, 165, 184, 0.25);
  box-shadow: 0 2px 8px rgba(94, 165, 184, 0.15);
}

/* Ensure brand text matches Vuexy style */
.app-brand-text {
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  font-weight: 700 !important;
  color: #2D3436 !important;
}

/* Dark mode brand text */
[data-bs-theme="dark"] .app-brand-text {
  color: #e7e7e8 !important;
}

[data-bs-theme="dark"] .app-brand-logo img {
  border-color: rgba(94, 165, 184, 0.3);
  background: #2b2c40;
}

/* ============================================================
   3. AVATAR INITIALS FALLBACK
   ============================================================ */

.avatar-initial {
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   4. CARD & TABLE ENHANCEMENTS
   ============================================================ */

/* Slightly enhance card shadows */
.card {
  transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.375rem 1.5rem 0 rgba(94, 165, 184, 0.06);
}

/* DataTable search/filter spacing */
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 0.5rem;
}

/* ============================================================
   5. BUTTON REFINEMENTS
   ============================================================ */

/* Primary button hover lift */
.btn-primary {
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 165, 184, 0.4);
}

/* ============================================================
   6. FOOTER BRANDING
   ============================================================ */

.footer .footer-link {
  transition: color 0.2s ease;
}

.footer .footer-link:hover {
  color: #5EA5B8 !important;
}

/* ============================================================
   7. SCROLLBAR CUSTOMIZATION
   ============================================================ */

/* Custom scrollbar for sidebar */
.menu-inner {
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 165, 184, 0.2) transparent;
}

.menu-inner::-webkit-scrollbar {
  width: 4px;
}

.menu-inner::-webkit-scrollbar-thumb {
  background: rgba(94, 165, 184, 0.2);
  border-radius: 4px;
}

.menu-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(94, 165, 184, 0.4);
}

/* ============================================================
   8. AUTH PAGE BRAND LOGO
   ============================================================ */

.auth-cover-brand .app-brand-logo img {
  border-radius: 0;
}

/* ============================================================
   9. ANIMATION ENHANCEMENTS
   ============================================================ */

/* Smooth page content transitions */
.container-xxl {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   10. DARK MODE ADJUSTMENTS
   ============================================================ */

[data-bs-theme="dark"] .card:hover {
  box-shadow: 0 0.375rem 1.5rem 0 rgba(94, 165, 184, 0.08);
}
