/* Custom styles for Cohort Finance Tracker */

/* Override Bootstrap warning color to orange */
:root {
  --bs-warning: #ffc900;
  --bs-warning-rgb: 255, 201, 0;
}

/* Custom warning styles */
.text-warning {
  color: #ffc900 !important;
}

.bg-warning {
  background-color: #ffc900 !important;
}

.border-warning {
  border-color: #ffc900 !important;
}

.btn-warning {
  background-color: #ffc900 !important;
  border-color: #ffc900 !important;
  color: #000 !important;
}

.btn-outline-warning {
  color: #ffc900 !important;
  border-color: #ffc900 !important;
}

.btn-outline-warning:hover {
  background-color: #ffc900 !important;
  border-color: #ffc900 !important;
  color: #000 !important;
}

.alert-warning {
  background-color: rgba(255, 201, 0, 0.1) !important;
  border-color: #ffc900 !important;
  color: #ffc900 !important;
}

.badge.bg-warning {
  background-color: #ffc900 !important;
  color: #000 !important;
}

/* Card custom styles */
.border-left-primary {
  border-left: 4px solid var(--bs-primary) !important;
}

.border-left-success {
  border-left: 4px solid var(--bs-success) !important;
}

.border-left-info {
  border-left: 4px solid var(--bs-info) !important;
}

.border-left-warning {
  border-left: 4px solid var(--bs-warning) !important;
}

.border-left-danger {
  border-left: 4px solid var(--bs-danger) !important;
}

/* Chart containers */
.chart-area {
  position: relative;
  height: 25rem;
  width: 100%;
}

.chart-pie {
  position: relative;
  height: 20rem;
  width: 100%;
}

/* Add shadow to buttons */
.btn {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Custom background effect for jumbotron */
.jumbotron {
  position: relative;
  overflow: hidden;
}

.jumbotron::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(34, 42, 69, 0.7) 0%, rgba(32, 40, 62, 0.9) 100%);
  z-index: -1;
}

/* Progress bar animations */
.progress-bar {
  transition: width 1s ease-in-out;
}

/* Custom styles for summary cards */
.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Fade in animation for dashboard elements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.col-xl-3 {
  animation: fadeIn 0.5s ease-in-out forwards;
}

.col-xl-3:nth-child(1) { animation-delay: 0.1s; }
.col-xl-3:nth-child(2) { animation-delay: 0.2s; }
.col-xl-3:nth-child(3) { animation-delay: 0.3s; }
.col-xl-3:nth-child(4) { animation-delay: 0.4s; }

/* Responsive images in cards and containers */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Improved table styling */
.table-hover tbody tr:hover {
  background-color: rgba(78, 115, 223, 0.05);
}

/* Responsive adaptations */
@media (max-width: 768px) {
  .chart-area, .chart-pie {
    height: 15rem;
  }
  
  .jumbotron .display-4 {
    font-size: 2rem;
  }
}
