html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fc;
}

/* Custom styles for Knack Enterprise Resource Planning */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  background-color: #fff;
}

/* Card styles */
.card {
  border: none;
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

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

/* Border utility classes */
.border-left-primary {
  border-left: 0.25rem solid #4e73df !important;
}

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

.border-left-info {
  border-left: 0.25rem solid #36b9cc !important;
}

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

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

/* Text utility classes */
.text-gray-800 {
  color: #5a5c69 !important;
}

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

/* Dashboard card inner spacing */
.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Table styles */
.table th {
  background-color: #f8f9fc;
  font-weight: 600;
}

/* Button hover effects */
.btn-outline-primary:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover {
  color: #fff;
}

/* --- Enhanced Navbar Styling --- */
.navbar-gradient {
  background: linear-gradient(90deg, #4e73df 0%, #1cc88a 50%, #36b9cc 100%);
}

.navbar-elevated {
  box-shadow: 0 0.15rem 1rem rgba(0,0,0,0.15);
}

.navbar .nav-link {
  position: relative;
  color: rgba(255,255,255,0.85) !important;
  transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
}

.navbar .nav-link.active {
  color: #fff !important;
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -0.25rem;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

.dropdown-menu {
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.dropdown-item i {
  width: 1rem;
}

/* Customer index specific styles */
.customer-summary-card {
  transition: transform 0.2s ease-in-out;
}

.customer-summary-card:hover {
  transform: translateY(-2px);
}

.customer-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.customer-table th {
  background-color: #f8f9fc;
  border-bottom: 2px solid #e3e6f0;
  font-weight: 600;
  color: #5a5c69;
}

.customer-table td {
  vertical-align: middle;
}

.customer-info-cell {
  min-width: 200px;
}

.customer-contact-cell {
  min-width: 150px;
}

.customer-actions-cell {
  min-width: 120px;
}

/* Filter card styles */
.filter-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.filter-card .card-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .customer-summary-card .card-body {
    padding: 1rem;
  }
  
  .customer-summary-card .fa-2x {
    font-size: 1.5rem;
  }
}