/* Custom CSS for DTC Codes Page */

/* Enhanced Glass Effect */
.dtc-results.glass-effect {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.code-filter-container.glass-effect {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 20px;
}

.dtc-form.glass-effect {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 25px;
}

/* Table Styling with Glass Effect */
.dtc-results table {
  width: 100%;
  margin-bottom: 0;
  color: #fff;
  background: transparent;
}

.dtc-results thead th {
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dtc-results tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: none;
  background-color: rgba(0, 0, 0, 0.2);
}

.dtc-results td {
  padding: 12px 15px;
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.dtc-results tr.exact-match {
  background-color: rgba(255, 255, 255, 0.1);
}

.dtc-results tr.exact-match td {
  background-color: rgba(255, 255, 255, 0.05);
}

.dtc-results tr.exact-match td:first-child {
  color: #fff;
  font-weight: bold;
}

/* Override Bootstrap's default table styles */
.table {
  margin-bottom: 0;
  background-color: transparent !important;
  color: #fff !important;
}

.table td, .table th {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: none !important;
  color: #fff !important;
}

/* Remove hover effects */
.table-hover tbody tr:hover td {
  background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Filter Buttons with Subtle Styling */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: none;
  position: relative;
  overflow: hidden;
}

.filter-btn:hover {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn::after {
  display: none;
}

.code-filter h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #fff;
}

/* Pagination Styling */
.dtc-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.dtc-pagination .page-item .page-link {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  transition: none;
}

.dtc-pagination .page-item.active .page-link {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.dtc-pagination .page-item .page-link:hover {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.dtc-pagination .page-item.disabled .page-link {
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .filter-buttons {
    justify-content: center;
  }
  
  .filter-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
  
  .dtc-results {
    border-radius: 10px;
    overflow-x: auto;
  }
  
  .dtc-results table {
    font-size: 0.85rem;
  }
  
  .dtc-results td, .dtc-results th {
    padding: 10px 8px;
  }
  
  .dtc-pagination .page-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .dtc-form, .code-filter-container, .dtc-results {
    border-radius: 8px;
    padding: 15px;
  }
  
  .dtc-results thead th {
    padding: 10px 8px;
  }
  
  .filter-buttons {
    gap: 5px;
  }
  
  .filter-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
  
  .dtc-pagination .page-link {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}

/* Remove animation delays for immediate loading */
.dtc-form, .code-filter-container, .dtc-results {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

/* Alert styling */
.dtc-results .alert {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dtc-results .alert-info {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.dtc-results .alert-info i {
  color: #fff;
}

.dtc-results .alert-warning {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Code prefix styling */
.code-prefix {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  margin-right: 10px;
}

/* Red text for code info */
.dtc-code-info {
  color: #ff5555;
  font-weight: 500;
} 