/* Reset và base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Navbar styles giống hình */
.navbar {
  background-color: #2c3e50 !important;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff !important;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #3498db !important;
}

/* Search form styling */
.navbar .form-control {
  background-color: #34495e;
  border: 1px solid #34495e;
  color: #ffffff;
  border-radius: 6px;
}

.navbar .form-control:focus {
  background-color: #34495e;
  border-color: #3498db;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.navbar .form-control::placeholder {
  color: #bdc3c7;
}

.navbar .btn-outline-light {
  border-color: #bdc3c7;
  color: #bdc3c7;
  font-weight: 500;
}

.navbar .btn-outline-light:hover {
  background-color: #3498db;
  border-color: #3498db;
  color: #ffffff;
}

/* Dropdown menu */
.dropdown-menu {
  background-color: #34495e;
  border: 1px solid #2c3e50;
  border-radius: 6px;
}

.dropdown-item {
  color: #ffffff;
  padding: 0.5rem 1rem;
}

.dropdown-item:hover {
  background-color: #2c3e50;
  color: #3498db;
}

.dropdown-divider {
  border-color: #2c3e50;
}

/* Container và spacing */
.container {
  max-width: 1200px;
}

/* Main content area */
main {
  min-height: calc(100vh - 200px);
}

/* Fix for dropdown styling */
.form-select {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select:hover:not(:focus) {
  border-color: #adb5bd;
}

/* Enhance the card styling */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: box-shadow 0.2s;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
}

/* Better dropdown styling */
#sortDropdown {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Improved active dropdown item */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #0d6efd;
  color: white;
}

#category-select option,
select.form-select option {
  border-bottom: 1px solid #dee2e6;
  padding: 8px;
}

select.form-select option:last-child {
  border-bottom: none;
}

/* Highlighted dropdown items */
select.form-select option:hover,
select.form-select option:focus {
  background-color: #f8f9fa;
}

select.form-select option:checked,
select.form-select option:selected {
  background-color: #0d6efd;
  color: white;
}
