/* Custom styles for BALDMART Management System */

body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Updated navbar to use teal color scheme inspired by the dashboard */
.navbar-dark {
  background-color: #20c997 !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
  color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

/* Updated primary button colors to match teal theme */
.btn {
  border-radius: 6px;
  font-weight: 500;
}

.btn-primary {
  background-color: #20c997;
  border-color: #20c997;
}

.btn-primary:hover {
  background-color: #1aa085;
  border-color: #1aa085;
}

/* Added teal-themed KPI cards */
.bg-primary {
  background-color: #20c997 !important;
}

.bg-teal {
  background-color: #20c997 !important;
}

.bg-teal-light {
  background-color: #6edcd2 !important;
}

/* Added progress bar styling for dashboard */
.progress {
  height: 8px;
  border-radius: 4px;
}

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

/* Enhanced dashboard cards with hover effects */
.dashboard-card {
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.table {
  margin-bottom: 0;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
}

.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.form-control,
.form-select {
  border-radius: 6px;
  border: 1px solid #ced4da;
}

/* Updated focus colors to match teal theme */
.form-control:focus,
.form-select:focus {
  border-color: #20c997;
  box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

.alert {
  border: none;
  border-radius: 8px;
}

/* DataTables customization */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border-radius: 6px;
  border: 1px solid #ced4da;
}

/* Updated DataTables pagination to use teal theme */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #20c997 !important;
  border-color: #20c997 !important;
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #1aa085 !important;
  border-color: #1aa085 !important;
  color: white !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .card-body {
    padding: 1rem;
  }

  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Status colors */
.bg-success {
  background-color: #28a745 !important;
}

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

.bg-danger {
  background-color: #dc3545 !important;
}

.bg-info {
  background-color: #17a2b8 !important;
}

.bg-secondary {
  background-color: #6c757d !important;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Custom animations */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

/* Added modern dashboard styling inspired by the provided image */
.stats-card {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
  color: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.stats-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.welcome-banner {
  background: linear-gradient(135deg, #20c997 0%, #6edcd2 100%);
  color: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.welcome-banner h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.welcome-banner p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}
