/* ===================================================
   GO-MANUFACTURE COMPONENTS
   Phase 1: Clean Component Architecture
   Only components ACTUALLY used in codebase
   =================================================== */

/* ===================================================
   HEADER & NAVIGATION - Egypt Industrial B2B Platform
   =================================================== */

.site-header {
  background-color: white;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 2px 8px rgba(15, 42, 68, 0.2);
  box-sizing: border-box;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: var(--space-4);
  min-height: 70px;
  box-sizing: border-box;
}

.nav-brand {
  flex-shrink: 0;
  box-sizing: border-box;
}

.site-logo {
  height: 70px;
  width: auto;
  transition: transform 0.2s ease;
  display: block;
}

.site-logo:hover {
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  cursor: pointer;
  padding: var(--space-2);
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1e293b;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #1e293b;
  transition: transform var(--transition-base);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-collapse {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex: 1;
}

.nav-menu {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  color: #4b5563;
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 0.5rem 0;
  border-radius: 0;
  transition: color var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: auto;
  white-space: nowrap;
  background-color: transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #10b981;
  background-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Profile, Dashboard, and Logout Buttons */
.nav-actions .btn-profile,
.nav-actions .btn-dashboard,
.nav-actions .btn-logout {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  white-space: nowrap;
  border: none;
}

.nav-actions .btn-profile {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.2);
}

.nav-actions .btn-profile:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  box-shadow: 0 3px 8px rgba(100, 116, 139, 0.3);
  transform: translateY(-1px);
}

.nav-actions .btn-profile svg {
  flex-shrink: 0;
}

.nav-actions .btn-dashboard {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.2);
}

.nav-actions .btn-dashboard:hover,
.nav-actions .btn-dashboard.active {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  box-shadow: 0 3px 8px rgba(100, 116, 139, 0.3);
  transform: translateY(-1px);
}

.nav-actions .btn-logout {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.nav-actions .btn-logout:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
}

.action-link {
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  height: 40px;
  white-space: nowrap;
  background-color: black;
}

.action-link:hover,
.action-link.active {
  color: #ffffff;
  background-color: black;
}

/* ===================================================
   BUTTON SYSTEM - Egypt Industrial B2B Platform
   Primary Action (View, Edit) → Royal Blue
   Destructive (Delete) → Red
   Status Change → Color-coded dropdown
   =================================================== */

.btn,
.auth-btn,
.lang-toggle,
button[type="button"],
button[type="submit"] {
  height: 40px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  gap: 6px;
}

/* Primary Action Button - Royal Blue */
.btn-primary,
.auth-btn.primary {
  background-color: var(--primary-blue);
  color: rgb(255, 255, 255);
  border-color: var(--primary-blue);
  box-shadow: 0 1px 3px rgba(30, 94, 255, 0.3);
}

/* Success Button - Green */
.btn-success {
  background-color: #22c55e;
  color: white;
  border-color: #22c55e;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
  background-color: #16a34a;
  border-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.35);
}

/* .btn-primary:hover,
.auth-btn.primary:hover {
  background-color: #1651E0;
  border-color: #1651E0;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(30, 94, 255, 0.4);
} */

/* Secondary Action Button - Gray Outline */
.btn-secondary,
.btn-outline {
  background: white;
  border-color: var(--border-light);
  color: black;
  font-weight: 600;
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--page-background);
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

/* Public site neutral palette overrides */
.public-site .btn-primary,
.public-site .auth-btn.primary {
  background-color: #111827;
  border-color: #111827;
  color: #f9fafb;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.25);
}

.public-site .btn-primary:hover,
.public-site .auth-btn.primary:hover {
  background-color: #0f172a;
  border-color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.35);
}

.public-site .btn-secondary,
.public-site .btn-outline {
  background: #ffffff;
  border-color: #cbd5f5;
  color: #1f2937;
}

.public-site .btn-secondary:hover,
.public-site .btn-outline:hover {
  background: #f8fafc;
  border-color: #111827;
  color: #111827;
}

.public-site .btn-success {
  background-color: #1f2937;
  border-color: #1f2937;
  color: #f9fafb;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.25);
}

.public-site .btn-success:hover {
  background-color: #111827;
  border-color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.35);
}

/* Destructive Button - Red */
.btn-danger,
.btn-delete {
  background-color: var(--status-blocked);
  color: white;
  border-color: var(--status-blocked);
}

.btn-danger:hover,
.btn-delete:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

/* Button Sizes */
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

/* ===================================================
   STATUS DROPDOWN SYSTEM
   Single dropdown that displays AND changes status
   Color-coded based on current value
   =================================================== */
/* Standardized Status Dropdown Button */
.status-dropdown,
select.status-select {
  height: 36px;
  min-width: 120px;
  padding: 0 36px 0 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s ease;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  appearance: none;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  /* Dropdown arrow icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.status-dropdown:hover,
select.status-select:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.status-dropdown:focus,
select.status-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.15);
  transform: translateY(0);
}

.status-dropdown:active,
select.status-select:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Status Colors - Approved/Active/Read/Responded */
.status-approved,
.status-active,
.status-read,
.status-responded,
select.status-select.status-approved,
select.status-select.status-active,
select.status-select.status-read,
select.status-select.status-responded {
  background-color: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* Status Colors - Pending/New */
.status-pending,
.status-new,
select.status-select.status-pending,
select.status-select.status-new {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fbbf24;
}

/* Status Colors - Blocked/Closed */
.status-blocked,
.status-closed,
select.status-select.status-blocked,
select.status-select.status-closed {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

/* Status Colors - Rejected */
.status-rejected,
select.status-select.status-rejected {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #f87171;
}

/* Project-specific status colors */
select.status-select.status-under_review {
  background-color: #e0f2fe;
  color: #075985;
  border-color: #38bdf8;
}

select.status-select.status-quoted {
  background-color: #f3e8ff;
  color: #6b21a8;
  border-color: #c084fc;
}

select.status-select.status-accepted {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #34d399;
}

select.status-select.status-completed {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

/* Dropdown options styling */
select.status-select option {
  padding: 8px 12px;
  font-weight: 500;
}

select.status-select option[value="approved"],
select.status-select option[value="read"],
select.status-select option[value="responded"] {
  background-color: #dcfce7;
  color: #166534;
}

select.status-select option[value="pending"],
select.status-select option[value="new"] {
  background-color: #fef3c7;
  color: #92400e;
}

select.status-select option[value="blocked"],
select.status-select option[value="closed"] {
  background-color: #fee2e2;
  color: #991b1b;
}

select.status-select option[value="rejected"] {
  background-color: #ffe4e6;
  color: #991b1b;
}

/* Status form wrapper */
.status-form {
  margin: 0;
  display: inline-block;
  position: relative;
}

.status-form select.status-select {
  margin: 0;
}

/* Loading state indicator */
.status-loading {
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  color: #3b82f6;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Disabled state while submitting */
select.status-select:disabled,
select.status-select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Processing Dropdown Select */
select.processing-select {
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  color: var(--primary-navy);
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

select.processing-select:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(30, 94, 255, 0.1);
}

select.processing-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.1);
}

.lang-toggle {
  background: #0276eb;
  border-color: #e2e8f0;
  color: #d6dce4;
  min-width: 120px;
}

.lang-toggle:hover {
  background: #0452b9;
  border-color: #cbd5e1;
}

.lang-icon {
  font-size: 16px;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-toggle-btn {
    display: block;
    z-index: 1001;
  }
  
  .nav-collapse {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-20) var(--space-6) var(--space-6);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-toggle:checked ~ .nav-collapse {
    transform: translateX(0);
  }
  
  .nav-toggle:checked ~ .nav-toggle-btn .hamburger {
    background-color: transparent;
  }
  
  .nav-toggle:checked ~ .nav-toggle-btn .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .nav-toggle:checked ~ .nav-toggle-btn .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: var(--space-1);
  }
  
  .nav-menu a {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
  }
  
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid #e2e8f0;
  }
  
  .nav-actions .btn,
  .nav-actions .action-link {
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-2);
  }
}

/* ===================================================
   BREADCRUMB NAVIGATION
   =================================================== */

.breadcrumbs {
  padding: var(--space-4) 0;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.breadcrumb-item.active span {
  color: #0f172a;
  font-weight: 600;
}

.breadcrumb-separator::after {
  content: '→';
  color: #cbd5e1;
  font-size: var(--text-sm);
  margin-left: var(--space-2);
}

@media (max-width: 767px) {
  .breadcrumbs {
    padding: var(--space-3) 0;
  }
  
  .breadcrumb-item {
    font-size: var(--text-xs);
  }
}

/* ===================================================
   SIGNUP MODAL
   =================================================== */

.signup-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  display: none;
}

.signup-modal[aria-hidden="false"] {
  display: block;
}

.signup-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.signup-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.signup-modal__panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.signup-modal__panel .muted {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: block;
}

.signup-modal__choices {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.signup-modal__choices .btn {
  min-width: 140px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.signup-modal__panel .btn:not(.btn-primary) {
  margin-top: 1rem;
}

.muted {
  color: var(--color-text-muted);
}

/* ===================================================
   HOME PAGE COMPONENTS - Modern Engineering Design
   =================================================== */

.home-hero {
  padding: var(--space-16) 0 var(--space-20);
  background: linear-gradient(135deg, #0b1120 0%, #111827 50%, #1f2937 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.home-hero__content {
  text-align: center;
}

.home-hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-5);
  line-height: 1.1;
  color: #ffffff;
}

.lead {
  font-size: var(--text-lg);
  color: #d1d5db;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.home-hero__ctas .btn {
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
}

/* Industries Grid - Modern Engineering Design */
.industries-section {
  padding: var(--space-20) 0;
  background: #f8fafc;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-10);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1a202c;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-5);
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.industry-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #1f2937;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  width: 160px;
  max-width: 100%;
}

.industry-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #929aa9 0%, #2c2f35 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.industry-tile:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  border-color: #111827;
  color: white;
}

.industry-tile:hover::before {
  opacity: 1;
}

.industry-icon {
  margin-bottom: var(--space-3);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.industry-icon img {
  width: 100%;
  height: 100%;
  filter: grayscale(1) brightness(0.5);
  transition: filter 0.3s ease;
}

.industry-tile:hover .industry-icon img {
  filter: grayscale(0) brightness(1.2);
}

.industry-label {
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* How It Works - No Boxes, Modern Icons */
.how-works {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.how-works .section-title {
  margin-bottom: var(--space-12);
}

.how-works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  max-width: 1000px;
  margin: 0 auto;
}

.how-step {
  text-align: center;
  position: relative;
}

.how-step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #010712 0%, #858c9d 100%);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.how-step__icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.how-step__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: #0f172a;
}

.how-step__text {
  color: #64748b;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  max-width: 320px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .how-works__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
  
  .how-step::after {
    content: '→';
    position: absolute;
    right: -27px;
    top: 102px;
    font-size: 2rem;
    color: #011329;
    font-weight: 300;
  }
  
  .how-step:last-child::after {
    display: none;
  }
}

/* Capabilities */
.capabilities {
  padding: var(--space-16) 0;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.capability-card {
  padding: var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.capability-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.capability-figure {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.capability-label {
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
}

/* Featured Manufacturers */
.featured-manufacturers {
  padding: var(--space-16) 0;
}

.specialties {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

/* Why Choose GO-MANUFACTURE: 4 benefit boxes */
.features {
  padding: var(--space-20) 0;
  background: #f8fafc;
}

.features--modern {
  background: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.modern-features {
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: var(--space-8);
  background: white;
  border: 2px solid #cbd5e0;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
  border-color: #667eea;
}

.feature-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.feature-card__icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.feature-card__title {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #1a202c;
}

.feature-card__text {
  color: #4a5568;
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
  font-weight: 500;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modern-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================================
   MANUFACTURER LISTING & CARDS
   =================================================== */

.page-header {
  padding: var(--space-8) 0;
  text-align: center;
}

.page-subtitle {
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

.search-filters {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 auto var(--space-8);
  max-width: 1400px;
  top: 73px;
  z-index: var(--z-sticky - 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.filter-group.locked {
  opacity: 0.85;
  position: relative;
}

.search-input,
.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9375rem;
  width: 100%;
  background: #ffffff;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.2s ease;
  height: 48px;
  box-sizing: border-box;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
  background: #ffffff;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.filter-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.filter-actions .btn {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-actions .btn-primary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.filter-actions .btn-primary:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
  transform: translateY(-1px);
}

.filter-actions .btn-ghost {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
}

.filter-actions .btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #475569;
}

@media (min-width: 640px) {
  .search-form {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .filter-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
  
  .filter-actions .btn {
    min-width: 120px;
  }
}

@media (min-width: 768px) {
  .search-form {
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
    gap: 1rem;
  }
  
  .filter-actions {
    grid-column: auto;
    flex-direction: row;
    align-items: flex-end;
  }
}

@media (min-width: 1024px) {
  .search-filters {
    padding: 2rem 2.5rem;
  }
  
  .search-form {
    grid-template-columns: 2.5fr 1fr 1fr 1fr auto;
    gap: 1.25rem;
  }
}

/* Industry Pills */
.industry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid #e2e8f0;
}

.industry-pill {
  padding: 0.6rem 1.5rem;
  background: white;
  border: 2px solid #cbd5e0;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #2d3748;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.industry-pill:hover,
.industry-pill.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Results Info */
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.results-summary {
  font-weight: var(--font-medium);
}

.filter-indicator {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-left: var(--space-2);
}

/* Manufacturer Grid */
.manufacturer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: var(--space-8);
}

.manufacturer-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.manufacturer-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.card-media {
  height: 200px;
  overflow: hidden;
  background-color: #f8fafc;
  position: relative;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-logo {
  object-fit: contain;
  padding: var(--space-4);
  background: #ffffff;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-title-section h3 {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  flex: 1;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.location-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.verified {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-specialties {
  margin-bottom: 1rem;
}

.card-specialties strong {
  display: block;
  font-size: 0.8125rem;
  color: #475569;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.specialty-tag {
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.card-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 400;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.card-footer .btn {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  border: none;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-footer .btn:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .manufacturer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .manufacturer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .manufacturer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .manufacturer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* ===================================================
   ABOUT & CONTACT PAGES
   =================================================== */

.about-page,
.contact-page {
  padding: var(--space-8) 0;
}

.about-hero,
.contact-hero {
  text-align: center;
  padding: var(--space-12) 0;
}

.content-grid,
.benefits-grid,
.faq-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.content-card,
.benefit-item,
.faq-item,
.contact-item {
  padding: var(--space-6);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.card-icon,
.benefit-icon,
.contact-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

.why-choose,
.about-cta {
  margin-top: var(--space-12);
}

.cta-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.form-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.form-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.contact-faq {
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .content-grid,
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

/* ===================================================
   DASHBOARD
   =================================================== */

.dashboard-container {
  padding: var(--space-8) 0;
  box-sizing: border-box;
}

/* Admin dashboard header - styled navy box (matches dashboard.css) */
.container > .dashboard-header {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background-color: var(--primary-navy);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 42, 68, 0.2);
  box-sizing: border-box;
  min-height: 120px;
}

/* Header content wrapper */
.dashboard-header .header-content {
  box-sizing: border-box;
}

/* Direct h1 in dashboard-header (for pages without header-content) */
.dashboard-header > h1 {
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

/* h1 inside header-content */
.dashboard-header .header-content h1 {
  font-size: 2rem;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  line-height: 1.2;
}

/* Welcome message styling */
.dashboard-header .welcome-message {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.dashboard-actions {
  display: flex;
  gap: var(--space-3);
}

.profile-container {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.profile-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.profile-mode-toggle {
  display: flex;
  gap: var(--space-2);
}

.profile-mode-toggle .btn {
  flex: 1;
}

.profile-mode-toggle .btn.active {
  background-color: var(--color-primary);
  color: white;
}



.profile-section h3 {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.info-item strong {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.pics-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-4);
}

.pic-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}

.pic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-pic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-100);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.add-pic-btn:hover {
  background-color: var(--color-gray-200);
}

.pic-item-actions {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 10;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.capacity-item {
  padding: var(--space-4);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.capacity-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.capacity-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.advanced-settings {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
}

.settings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.settings-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.settings-list li:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1;
}

.setting-label {
  font-weight: var(--font-medium);
  margin-bottom: var(--space-1);
}

.setting-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.setting-value {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

.setting-action {
  margin-left: var(--space-4);
}

.edit-restriction {
  padding: var(--space-3);
  background-color: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.edit-restriction.info {
  background-color: var(--color-info-bg);
  border-left-color: var(--color-info);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================================================
   ADMIN PAGES - Stabilized Layout
   =================================================== */

/* Stabilize admin container */
body .container {
  padding-top: var(--space-6);
}

.admin-nav {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
  min-height: 40px; /* Prevent height collapse */
}

/* Standardize admin navigation buttons to prevent layout shifts */
.admin-nav .btn {
  padding: 10px 16px; /* Fixed pixel values for consistency */
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  min-height: 40px;
  height: 40px;
  box-sizing: border-box;
  border-width: 1px;
  border-style: solid;
  white-space: nowrap;
  line-height: 1.25;
  vertical-align: middle;
}

/* Ensure primary and secondary buttons have IDENTICAL dimensions */
.admin-nav .btn-primary,
.admin-nav .btn-secondary {
  padding: 10px 16px;
  min-height: 40px;
  height: 40px;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: 1.25;
}

/* Prevent transform shifts on hover */
.admin-nav .btn:hover {
  transform: none !important;
}

.status-filters {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-4);
  align-items: center;
  min-height: 40px;
  padding: 0;
}

/* Enhanced filter button styling - pill-shaped dropdown style */
.filter-btn {
  padding: 10px 20px;
  background-color: white;
  border: 1px solid var(--color-gray-300);
  border-radius: 20px;
  color: var(--color-gray-700);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  transition: all 0.2s ease;
  min-height: 40px;
  height: 40px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-400);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background-color: #1a1a1a;
  color: white;
  border-color: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-btn.active:hover {
  background-color: #000000;
  border-color: #000000;
  transform: translateY(-1px);
}

.admin-section {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-sizing: border-box;
  /* Prevent layout shifts */
  position: relative;
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Filter Dropdown Component */
.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: white;
  border: 1px solid var(--color-gray-300);
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
  justify-content: space-between;
}

.filter-dropdown-btn:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-400);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-dropdown-btn svg {
  transition: transform 0.2s ease;
}

.filter-dropdown.open .filter-dropdown-btn svg {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background-color: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 100;
  display: none;
  overflow: hidden;
}

.filter-dropdown.open .filter-dropdown-menu {
  display: block;
}

.filter-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--color-gray-700);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all 0.15s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.filter-dropdown-item:hover {
  background-color: var(--color-gray-50);
  color: var(--color-gray-900);
  border-left-color: var(--color-primary);
}

.filter-dropdown-item.active {
  background-color: var(--color-primary);
  color: white;
  font-weight: var(--font-semibold);
  border-left-color: var(--color-primary-hover);
}

.filter-dropdown-item.active:hover {
  background-color: var(--color-primary-hover);
}

/* Metrics Section Styling */
.metrics-section {
  margin-bottom: var(--space-8);
}

.metrics-section h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-gray-200);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.metric-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-fast);
}

.metric-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.metric-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
  margin: 0 0 var(--space-3) 0;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin: 0 0 var(--space-2) 0;
  line-height: 1;
}

.metric-source {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  margin: 0;
  font-style: italic;
}

.metric-alternative {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  margin: var(--space-2) 0 0 0;
  padding-top: var(--space-2);
  border-top: 1px dashed var(--color-gray-300);
}

/* SQL Examples Section */
.sql-examples {
  background-color: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.sql-examples h3 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
  margin: var(--space-4) 0 var(--space-2) 0;
}

.sql-examples h3:first-child {
  margin-top: 0;
}

.sql-examples pre {
  background-color: var(--color-gray-900);
  color: #f8f8f2;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 0 0 var(--space-4) 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.sql-examples code {
  color: inherit;
  font-family: inherit;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.count-badge {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.user-info strong {
  color: var(--color-text);
}

.user-info small {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.role-badge {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
}

.role-user {
  background-color: var(--color-info-bg);
  color: var(--color-info);
}

.role-manufacturer {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.role-admin {
  background-color: var(--color-error-bg);
  color: var(--color-error);
}

.date-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.date-main {
  font-weight: var(--font-medium);
}

.date-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.rating-display {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.rating-number {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===================================================
   IMAGE PLACEHOLDERS
   =================================================== */

.img-placeholder {
  background-color: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: var(--text-4xl);
}

.img-placeholder--square {
  aspect-ratio: 1 / 1;
}

.img-placeholder--logo {
  aspect-ratio: 16 / 9;
}

/* ===================================================
   PAGINATION
   =================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* ===================================================
   LOADER
   =================================================== */

.loader {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-gray-200);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================================================
   EMPTY STATES
   =================================================== */

.no-results,
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.empty-message {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.empty-hint {
  color: var(--color-text-muted);
}

/* ===================================================
   STATUS BADGES
   =================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.status-badge.active,
.status-badge.status-active,
.status-badge.status-approved {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.status-badge.pending,
.status-badge.status-pending {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.status-badge.blocked,
.status-badge.status-blocked {
  background-color: var(--color-error-bg);
  color: var(--color-error);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: currentColor;
}

/* ===================================================
   TABLES
   =================================================== */

/* ===================================================
   TABLE SYSTEM - Egypt Industrial B2B Platform
   - White background with visible borders
   - Light gray header (#EEF3F8)
   - 14px font size
   - No horizontal scrolling
   - Clear separation from page background
   =================================================== */

.table-container {
  overflow-x: auto;
  background: var(--table-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  /* Prevent layout shift when scrollbar appears */
  /* scrollbar-gutter: stable; */
}

.admin-table,
.inquiries-table,
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--table-bg);
  table-layout: fixed; /* Prevent column width changes */
}

.admin-table th,
.admin-table td,
.inquiries-table th,
.inquiries-table td,
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  vertical-align: middle;
  font-size: 14px;
  box-sizing: border-box; /* Ensure padding doesn't affect width */
  user-select: text; /* Allow text selection */
}

/* Prevent selection from affecting layout */
.admin-table th::selection,
.admin-table td::selection,
.inquiries-table th::selection,
.inquiries-table td::selection,
.data-table th::selection,
.data-table td::selection {
  background-color: rgba(30, 94, 255, 0.2);
}

.admin-table th,
.inquiries-table th,
.data-table th {
  background-color: var(--table-header-bg);
  font-weight: 700;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 14px;
  width: auto; /* Let content determine width */
}

.admin-table tbody tr,
.inquiries-table tbody tr,
.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover,
.inquiries-table tbody tr:hover,
.data-table tbody tr:hover {
  background-color: var(--table-row-hover);
}

.admin-table tbody tr:last-child td,
.inquiries-table tbody tr:last-child td,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Actions Column */
.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.table-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Empty State */
.table-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--secondary-gray);
  font-size: 16px;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--page-background);
}

.pagination-info {
  color: var(--secondary-gray);
  font-size: 14px;
  font-weight: 600;
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--primary-navy);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.page-size-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-size-selector label {
  font-size: 14px;
  color: var(--primary-navy);
  font-weight: 600;
}

.page-size-selector select {
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: white;
  color: var(--primary-navy);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

/* ===================================================
   AUTH PAGES
   =================================================== */

.auth-link {
  text-align: center;
  margin-top: var(--space-4);
}

.error {
  color: var(--color-error);
  font-size: var(--text-sm);
  display: block;
  margin-top: var(--space-1);
}

/* ===================================================
   REVIEWS
   =================================================== */

.breadcrumb {
  padding: var(--space-4) 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.review-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.info-box {
  padding: var(--space-4);
  background-color: var(--color-info-bg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.rating-input {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.rating-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.rating-option input[type="radio"] {
  cursor: pointer;
}

.star {
  color: var(--color-warning);
  font-size: var(--text-xl);
}

.star-label {
  font-size: var(--text-sm);
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ===================================================
   NOTIFICATION BELL
   =================================================== */

.notification-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-bell:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.notification-bell .bell-icon {
  font-size: 1rem;
  display: inline-flex;
}

.notification-bell .bell-icon.ringing {
  animation: bell-ring 0.4s ease-in-out 0s 2;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  padding: 0.75rem;
  display: none;
  z-index: 1200;
}

.notification-dropdown.show {
  display: block;
}

.notification-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.notification-mark-read {
  background: transparent;
  border: none;
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.2s ease;
}

.notification-item.unread {
  background: #ecfdf3;
}

.notification-item:hover {
  background: #e5e7eb;
}

.notification-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
}

.notification-item-icon.success {
  background: #22c55e;
}

.notification-item-icon.info {
  background: #3b82f6;
}

.notification-item-icon.warning {
  background: #f59e0b;
}

.notification-item-icon.error {
  background: #ef4444;
}

.notification-item-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.notification-item-message {
  color: #4b5563;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.notification-item-time {
  color: #9ca3af;
  font-size: 0.7rem;
}

.notification-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: #9ca3af;
}

.notification-empty-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@keyframes bell-ring {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

/* ===================================================
   PUBLIC SITE BODY
   =================================================== */

