/* Custom styles for Laurcen Fish Farming System */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

/* Navigation */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.75rem;
}

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

.card-body {
  padding: 1.5rem;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

/* Hero Section */
.display-4 {
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
}

/* Stats Cards */
.bg-primary,
.bg-success,
.bg-info,
.bg-warning {
  border-radius: 0.75rem;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tables */
.table {
  border-radius: 0.5rem;
  overflow: hidden;
}

.table thead th {
  background-color: var(--light-color);
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}

/* Override for admin table headers to ensure visibility */
.table thead[style*="background-color: #343a40"] th {
  background-color: #343a40 !important;
  color: white !important;
  font-weight: bold !important;
}

/* Additional fallback for admin pages */
.container-fluid .table thead th {
  background-color: #343a40 !important;
  color: white !important;
  font-weight: bold !important;
}

/* Force visibility for all admin table headers */
body .container-fluid .card .table-responsive .table thead th {
  background-color: #343a40 !important;
  color: white !important;
  font-weight: bold !important;
  text-shadow: none !important;
}

/* Admin table headers */
.admin-table-header th {
  background-color: #343a40 !important;
  color: white !important;
  font-weight: bold !important;
}

/* Alerts */
.alert {
  border-radius: 0.5rem;
  border: none;
}

/* Footer */
footer {
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1.1rem;
  }

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

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0b5ed7;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }

  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}
