/* Dashboard Specific Styles */

/* Statistics Cards */
.border-left-primary {
  border-left: 0.25rem solid #10b981 !important;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
  border-left: 0.25rem solid #10b981 !important;
}

.border-left-warning {
  border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
  border-left: 0.25rem solid #e74a3b !important;
}

/* Card Headers */
.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

/* Table Styles */
.table-borderless td,
.table-borderless th {
  border: 0;
}

.table td {
  vertical-align: middle;
}

/* Badge Styles */
.badge {
  font-size: 0.75em;
  font-weight: 500;
}

/* Chart Containers */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .h5 {
    font-size: 1.25rem;
  }

  .h2 {
    font-size: 1.5rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .card {
    background-color: #2d3748;
    color: #e2e8f0;
  }

  .card-header {
    background-color: #4a5568;
    border-bottom-color: #718096;
  }

  .table {
    color: #e2e8f0;
  }

  .text-gray-800 {
    color: #e2e8f0 !important;
  }

  .text-gray-300 {
    color: #a0aec0 !important;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-in-up {
  animation: slideInUp 0.5s ease-out;
}

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

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Hover Effects */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fc;
  transition: background-color 0.2s ease;
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.active {
  background-color: #1cc88a;
}

.status-indicator.inactive {
  background-color: #e74a3b;
}

.status-indicator.pending {
  background-color: #f6c23e;
}

/* Progress Bars */
.progress {
  height: 8px;
  border-radius: 4px;
}

.progress-bar {
  border-radius: 4px;
}

/* Custom Buttons */
.btn-dashboard {
  border-radius: 0.35rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.15s ease-in-out;
}

.btn-dashboard:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Data Tables */
.data-table {
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  background-color: #f8f9fc;
  border-bottom: 2px solid #e3e6f0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.data-table td {
  border-bottom: 1px solid #e3e6f0;
  padding: 0.75rem;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Statistics Cards Hover */
.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-action-btn {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  border: 2px dashed #e3e6f0;
  border-radius: 0.5rem;
  background: transparent;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.quick-action-btn:hover {
  border-color: #10b981;
  color: #10b981;
  background-color: #f8f9fc;
  text-decoration: none;
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e74a3b;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: #5a5c69;
}

.empty-state p {
  margin-bottom: 0;
}
