/* 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;
  font-weight: 500;
  letter-spacing: 0.25px;
  border-radius: 6px;
}

.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);
  outline: 2px solid #20c997;
  outline-offset: 2px;
}

.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;
  }

  .welcome-banner {
    padding: 1.5rem;
    text-align: center;
  }

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

  .welcome-banner h3 {
    font-size: 1.25rem;
  }

  .kpi-card h4 {
    font-size: 1.5rem;
  }

  .kpi-card .card-body {
    padding: 1rem;
  }
}

/* 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%, #17a2b8 50%, #6edcd2 100%);
  color: white;
  border-radius: 15px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.welcome-banner h2 {
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Added text-teal utility class */
.text-teal {
  color: #20c997 !important;
}

/* Enhanced table styling for better readability */
.table-hover tbody tr:hover {
  background-color: rgba(32, 201, 151, 0.05);
}

.table thead th {
  border-bottom: 2px solid #20c997;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Added shadow utilities for cards */
.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.card-header.bg-light {
  background-color: #f8f9fa !important;
  border-bottom: 2px solid #e9ecef;
}

/* Enhanced badge styling */
.badge {
  font-weight: 500;
  letter-spacing: 0.25px;
  border-radius: 6px;
}

/* Added opacity utilities */
.opacity-75 {
  opacity: 0.75 !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Added professional loading animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(32, 201, 151, 0.3);
  border-radius: 50%;
  border-top-color: #20c997;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid #20c997;
  outline-offset: 2px;
}

/* Added smooth transitions for all interactive elements */
* {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow
    0.15s ease-in-out;
}

/* Added enhanced KPI card styling with hover effects */
.kpi-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.kpi-card .card-body {
  padding: 1.5rem;
}

.kpi-card h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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