/* Custom Tailwind CSS styles */
body {
  font-family: 'Arial', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav a {
  transition: color 0.3s ease;
}

.nav a:hover {
  text-decoration: underline;
}

.nav a.active {
  text-decoration: underline;
}

.filters-title {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
}

.filters-table th, .filters-table td {
  text-align: center;
}

button {
  transition: background-color 0.3s ease-in-out;
}

button:hover {
  background-color: #0056b3;
}

.phone-showcase {
  margin-top: 30px;
}

.phone-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.phone-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.buy-button {
  transition: background-color 0.3s;
}

.buy-button:hover {
  background-color: #218838;
}

.remove-button {
  transition: color 0.3s;
}

.remove-button:hover {
  color: #ff6b6b;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .container {
  background-color: #1e1e1e;
  box-shadow: none;
}

body.dark-mode .filters-menu {
  background-color: #1e1e1e;
  box-shadow: none;
}

body.dark-mode .filters-table th {
  background-color: #333333;
}

body.dark-mode .filters-table td {
  background-color: #1e1e1e;
}

body.dark-mode .filters-title {
  color: #bb86fc;
}

body.dark-mode .filters-actions span {
  color: #bb86fc;
}

body.dark-mode .filter-category {
  background-color: #2c2c2c;
  color: #e0e0e0;
}

body.dark-mode .filter-category.active {
  background-color: #bb86fc;
}

body.dark-mode button {
  background-color: #bb86fc;
  color: white;
}

body.dark-mode .phone-card {
  background-color: #1e1e1e;
  border-color: #333333;
}

body.dark-mode .phone-card h3 {
  color: #e0e0e0;
}

body.dark-mode .phone-card p {
  color: #a0a0a0;
}

body.dark-mode .buy-button {
  background-color: #03dac6;
  color: black;
}

body.dark-mode .buy-button:hover {
  background-color: #018786;
}

body.dark-mode .remove-button {
  color: #cf6679;
}

body.dark-mode .applied-filter {
  background-color: #2c2c2c;
}

body.dark-mode .filters-table th, 
body.dark-mode .filters-table td {
  border-color: #333333;
}

body.dark-mode select {
  background-color: #2c2c2c;
  color: #e0e0e0;
  border: 1px solid #333333;
}

body.dark-mode .filters-actions span:hover,
body.dark-mode button:hover {
  background-color: #3700b3;
}

/* Center text for headings */
.text-center {
  text-align: center;
}

/* Loading Indicator */
#loadingIndicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

#phoneModal {
  align-items: flex-start; /* Align items to the start (top) */
  padding-top: 2rem; /* Add some padding at the top */
}

/* Sidebar Styles */
#sidebar {
  transition: all 0.3s ease-in-out;
}

#mainContent {
  transition: all 0.3s ease-in-out;
}

#sidebar.hidden {
  display: none;
}

@media (min-width: 768px) {
  #sidebar {
      display: block;
  }
}
.filter-group {
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

.form-checkbox {
  border-radius: 0.25rem;
  border-color: #d1d5db;
  cursor: pointer;
}

.form-checkbox:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

/* Dark mode styles for checkboxes */
body.dark-mode .filter-group {
  border-color: #4b5563;
  background-color: #1f2937;
}

body.dark-mode .form-checkbox {
  border-color: #4b5563;
  background-color: #1f2937;
}

body.dark-mode .filter-group h3,
body.dark-mode .filter-group span {
  color: #e5e7eb;
}

#activeCheckboxFilters {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

body.dark-mode #activeCheckboxFilters {
    border-color: #4b5563;
}