/* Enhanced Dashboard Styling */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --success-color: #4cc9f0;
  --warning-color: #f72585;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  --card-radius: 12px;
  --transition-speed: 0.3s;
}

/* Enhanced Card Styles */
.dashboard-card, .summary-card {
  border-radius: var(--card-radius);
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
}

.dashboard-card:hover, .summary-card:hover {
  box-shadow: var(--card-hover-shadow);
}

/* REMOVED - Blue vertical line that was causing border issue on summary cards */

.card-title, .summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.card-value, .summary-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.card-subtext, .summary-subtext {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.5;
}

.hover-glow:hover {
  border-color: var(--primary-color);
}

.alert-glow {
  animation: pulse 2s infinite;
}

/* pulse keyframes moved to core-animations.css */

/* Chart container styling */
.chart-container {
  background-color: white;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  transition: all var(--transition-speed) ease;
  min-height: 300px;
}

.chart-container:hover {
  box-shadow: var(--card-hover-shadow);
}

.chart-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.chart-title i {
  margin-right: 8px;
  color: var(--primary-color);
}

/* Section headings */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.section-title i {
  color: var(--primary-color);
}

/* Custom date range styling */
.date-range-card {
  background: white;
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

.date-icon {
  color: var(--primary-color);
}

.dynamic-date-range {
  font-size: 0.9rem;
  background-color: var(--primary-color) !important;
}

/* Divider styles */
.main-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
  margin: 1rem 0 2rem 0;
  width: 100%;
}

/* No data indication */
.no-data-container {
  text-align: center;
  padding: 3rem;
  background-color: rgba(248, 249, 250, 0.7);
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
}

.no-data-container i {
  font-size: 3rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.no-data-container p {
  color: #6c757d;
  font-size: 1.1rem;
}

/* Loading animation for charts */
.chart-loading {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-loading::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* spin keyframes moved to core-animations.css */

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-value, .summary-value {
    font-size: 1.6rem;
  }
  
  .chart-container {
    min-height: 250px;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
}