/* ========= Vendors Page Styles ========= */

/* Page header */
.vendors-header {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  color: #ffffff;
  padding: 2.5rem 2rem;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vendors-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%2300b4d8" stroke-width="0.5" opacity="0.1"/></svg>');
  background-size: 60px 60px;
  opacity: 0.3;
  z-index: 0;
}

.vendors-header h1 {
  font-family: 'Antic Slab', serif;
  color: #00FFFF;
  text-shadow: 0 0 15px rgba(0,255,255,0.6), 0 2px 10px rgba(0,0,0,0.5);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.vendors-header .lead {
  font-family: 'Antic Slab', serif;
  color: #e0ffff;
  text-shadow: 0 0 10px rgba(0,255,255,0.4), 0 2px 8px rgba(0,0,0,0.5);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* Search and filter bar */
.vendors-controls {
  background: #f8fafc;
  padding: 1.5rem 0;
  border-bottom: 2px solid #e2e8f0;
}

.vendors-controls .search-box {
  position: relative;
}

.vendors-controls .search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.vendors-controls .search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Antic Slab', serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #ffffff;
}

.vendors-controls .search-box input:focus {
  outline: none;
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0,180,216,0.2);
}

.vendors-controls .result-count {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Table styles */
.vendors-table-wrapper {
  padding: 2rem 0;
  background: #ffffff;
}

.table-responsive {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.vendors-table {
  margin-bottom: 0;
  font-family: 'Antic Slab', serif;
}

.vendors-table thead th {
  background: #16213e;
  color: #00FFFF;
  border: none;
  padding: 1rem 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.vendors-table thead th:hover {
  background: #0f3460;
  color: #ffffff;
}

.vendors-table thead th .sort-icon {
  margin-left: 0.5rem;
  opacity: 0.5;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.vendors-table thead th.sort-asc .sort-icon,
.vendors-table thead th.sort-desc .sort-icon {
  opacity: 1;
  color: #00b4d8;
}

.vendors-table thead th.sort-asc .sort-icon::after {
  content: '\f0de';
}

.vendors-table thead th.sort-desc .sort-icon::after {
  content: '\f0dd';
}

.vendors-table tbody tr {
  transition: all 0.2s ease;
}

.vendors-table tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.vendors-table tbody tr:hover {
  background: #e2e8f0;
  transform: scale(1.002);
}

.vendors-table tbody td {
  padding: 0.875rem 0.75rem;
  border-top: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}

.vendors-table tbody td a {
  color: #0077b6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.vendors-table tbody td a:hover {
  color: #00b4d8;
  text-decoration: underline;
}

/* Company name column */
.vendors-table .company-name {
  font-weight: 600;
  color: #16213e;
}

/* Industry badge */
.vendors-table .industry-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #e0f7fa;
  color: #006064;
  border-radius: 4px;
  font-size: 0.85rem;
  max-width: 250px;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
  .vendors-header h1 {
    font-size: 1.8rem;
  }
  
  .vendors-header .lead {
    font-size: 1rem;
  }
  
  .vendors-table thead th {
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
  }
  
  .vendors-table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .vendors-table .industry-badge {
    max-width: 150px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .vendors-table {
    font-size: 0.85rem;
  }
  
  .vendors-table thead th {
    font-size: 0.8rem;
    padding: 0.5rem 0.35rem;
  }
  
  .vendors-table tbody td {
    padding: 0.5rem 0.35rem;
  }
}

/* ==========================================
   Hide Email Column - For Future Authentication
   ==========================================
   To re-enable: Simply remove these rules when
   user authentication is implemented */
/* Hide email header */
.vendors-table thead th.email-column {
  display: none !important;
}

/* Hide email cells in table body */
.vendors-table tbody td.email-column {
  display: none !important;
}
