/* Custom Dashboard Styling - Modern & Impressive Design */

/* Apply modern font to entire dashboard */
#layoutSidenav_content {
  font-family: 'Inter', sans-serif;
}

/* Enhance header background with modern gradient */
.page-header-dark.bg-gradient-primary-to-secondary {
  background: linear-gradient(135deg, #6e45a0 0%, #8a63b8 60%, #9778c3 100%) !important;
  position: relative;
  overflow: hidden;
}

/* Add animated particles to header background */
.page-header-dark.bg-gradient-primary-to-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Enhanced page header title */
.page-header-title {
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 2.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced page header icon */
.page-header-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 10px;
  margin-right: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced page header subtitle */
.page-header-subtitle {
  font-weight: 400;
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
}

/* Welcome card styling */
.card.h-100 {
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.h-100:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Welcome card title */
h1.text-teal {
  color: #6e45a0 !important;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #6e45a0, #9778c3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Welcome card text */
.text-gray-700 {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Welcome card image */
.img-fluid {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.card:hover .img-fluid {
  transform: scale(1.1);
}

/* Recent Activity card */
.card-header-actions {
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Card header styling */
.card-header {
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-bottom: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #6e45a0;
}

/* Timeline styling */
.timeline-item-marker-indicator {
  box-shadow: 0 0 0 4px rgba(110, 69, 160, 0.1);
}

/* Enhanced stat cards */
.card.bg-primary, 
.card.bg-warning, 
.card.bg-success, 
.card.bg-danger {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

/* Add pattern overlay to stat cards */
.card.bg-primary::before, 
.card.bg-warning::before, 
.card.bg-success::before, 
.card.bg-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

/* Style card colors */
.card.bg-primary {
  background: linear-gradient(135deg, #6e45a0 0%, #8a63b8 100%) !important;
}

.card.bg-warning {
  background: linear-gradient(135deg, #ff9d00 0%, #ffb344 100%) !important;
}

.card.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
}

.card.bg-danger {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%) !important;
}

/* Style stat card body */
.card.bg-primary .card-body,
.card.bg-warning .card-body,
.card.bg-success .card-body,
.card.bg-danger .card-body {
  padding: 1.5rem;
}

/* Style stat values */
.text-lg.fw-bold {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  margin-top: 0.5rem;
}

/* Style stat labels */
.text-white-75.small {
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Style stat icons */
.feather-xl {
  width: 45px !important;
  height: 45px !important;
  opacity: 0.8;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Style card footers */
.card-footer {
  background: rgba(0, 0, 0, 0.1);
  border-top: none;
  padding: 0.75rem 1.5rem;
}

/* Style card footer links */
.card-footer a {
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Style card footer icons */
.card-footer .fas {
  transition: transform 0.3s ease;
}

.card-footer:hover .fas {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-header-title {
    font-size: 1.8rem;
  }
  
  h1.text-teal {
    font-size: 1.8rem;
  }
  
  .text-lg.fw-bold {
    font-size: 1.8rem !important;
  }
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.row > div {
  animation: fadeInUp 0.6s ease forwards;
}

.row > div:nth-child(2) {
  animation-delay: 0.2s;
}

.row > div:nth-child(3) {
  animation-delay: 0.4s;
}

.row > div:nth-child(4) {
  animation-delay: 0.6s;
}

/* Add glow effect to header */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(110, 69, 160, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(110, 69, 160, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(110, 69, 160, 0.2);
  }
}

.page-header-icon {
  animation: glow 3s infinite;
}