/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 38px;
  height: 20px;
}

.app-brand-text.demo {
  font-size: 1.25rem;
  letter-spacing: 0.15px;
}

.authentication-wrapper .app-brand-text.demo {
  text-transform: capitalize;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 300px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}
/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1.25rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
}

/* ==========================================
   DASHBOARD GRAPHICS & ANIMATION UTILITIES
   ========================================== */

/* Keyframe Animations */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(105, 108, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(105, 108, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(105, 108, 255, 0); }
}

@keyframes liveDotPulse {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fade-in-scale {
  animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card Hover Elevation */
.card-hover-lift {
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative;
  overflow: hidden;
}

.card-hover-lift:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 14px 28px rgba(105, 108, 255, 0.18), 0 10px 10px rgba(0, 0, 0, 0.04) !important;
}

/* Glowing Icon Boxes */
.icon-box-glow {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.icon-box-glow.primary {
  background: linear-gradient(135deg, #696cff 0%, #3938b3 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(105, 108, 255, 0.35);
}

.icon-box-glow.success {
  background: linear-gradient(135deg, #71dd37 0%, #2e9408 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(113, 221, 55, 0.35);
}

.icon-box-glow.warning {
  background: linear-gradient(135deg, #ffab00 0%, #c47d00 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(255, 171, 0, 0.35);
}

.icon-box-glow.danger {
  background: linear-gradient(135deg, #ff3e1d 0%, #b81c04 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(255, 62, 29, 0.35);
}

.icon-box-glow.info {
  background: linear-gradient(135deg, #03c3ec 0%, #0185a2 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(3, 195, 236, 0.35);
}

.card-hover-lift:hover .icon-box-glow {
  transform: scale(1.1) rotate(-4deg);
}

/* Hero Gradient Banners */
.card.dash-hero-banner,
.dash-hero-banner {
  background: linear-gradient(135deg, #696cff 0%, #3b39c4 50%, #232279 100%) !important;
  background-color: #3b39c4 !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(105, 108, 255, 0.28);
}

.dash-hero-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: floatAnim 6s ease-in-out infinite;
}

.dash-hero-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 120px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: floatAnim 8s ease-in-out infinite reverse;
}

/* Glassmorphism Accents */
.glass-widget {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 12px;
}

/* Live Stream Indicator */
.pulse-live-dot {
  width: 10px;
  height: 10px;
  background-color: #71dd37;
  border-radius: 50%;
  display: inline-block;
  animation: liveDotPulse 1.5s infinite;
  margin-right: 6px;
}

/* Gradient Text */
.gradient-text-primary {
  background: linear-gradient(135deg, #696cff 0%, #3938b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Enforce crisp white text on hero banners in light & dark modes */
.dash-hero-banner,
.dash-hero-banner h1,
.dash-hero-banner h2,
.dash-hero-banner h3,
.dash-hero-banner h4,
.dash-hero-banner h5,
.dash-hero-banner h6 {
  color: #ffffff !important;
}

/* Dark Theme Palette Enhancements */
[data-bs-theme="dark"] body {
  background-color: #12131a !important;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .bg-navbar-theme {
  background-color: #1a1c26 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .card {
  background-color: #1a1c26 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .table-light {
  background-color: #232634 !important;
  color: #cad1e0 !important;
}

[data-bs-theme="dark"] .table td, 
[data-bs-theme="dark"] .table th {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .text-dark {
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .bg-label-secondary {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .dash-hero-banner {
  background: linear-gradient(135deg, #5b5ee6 0%, #302eab 50%, #1a1961 100%) !important;
}

/* ==========================================
   SYSTEM-WIDE UI & INTERACTION POLISH
   ========================================== */

/* Active Sidebar Navigation Indicator */
.menu-inner .menu-item.active > .menu-link {
  background: linear-gradient(72.47deg, #696cff 0%, rgba(105, 108, 255, 0.7) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(105, 108, 255, 0.35) !important;
  border-radius: 0.375rem;
}

.menu-inner .menu-item.active > .menu-link i {
  color: #ffffff !important;
}

/* Smooth Button Hover Effects */
.btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  box-shadow: 0 4px 10px rgba(105, 108, 255, 0.25);
}

.btn-success {
  box-shadow: 0 4px 10px rgba(113, 221, 55, 0.25);
}

.btn-warning {
  box-shadow: 0 4px 10px rgba(255, 171, 0, 0.25);
}

.btn-danger {
  box-shadow: 0 4px 10px rgba(255, 62, 29, 0.25);
}

/* Enhanced Form Control Focus State */
.form-control:focus,
.form-select:focus {
  border-color: #696cff !important;
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.15) !important;
}

/* Table Row Hover Highlight & Clean Header Styling */
.table {
  vertical-align: middle;
}

.table th {
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  letter-spacing: 0.6px !important;
}

.table-hover tbody tr:hover {
  background-color: rgba(105, 108, 255, 0.03) !important;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Status Badges */
.badge {
  letter-spacing: 0.3px;
  font-weight: 600;
}


