/* TENDRE - Fresh Clean Design System */

/* Global: Remove all button glow/focus shadows */
.btn:focus,
.btn:active,
.btn:focus-visible,
.btn.focus,
button:focus,
button:active,
button:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

/* Mobile: Smaller dropdown menus */
@media (max-width: 767.98px) {
    .dropdown-menu {
        min-width: auto !important;
        width: 60% !important;
        right: 0 !important;
        left: auto !important;
    }
    .dropdown-menu.dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
    }
    /* Override above for navbar nav dropdowns - must be full width and left-aligned */
    .navbar-nav .dropdown-menu {
        width: 100% !important;
        left: 0 !important;
        right: auto !important;
        min-width: 0 !important;
    }
}

/* Registration area styling - navy background with white text */
.register-card,
.card.register-card,
div.card.register-card {
    background: #2c3e50 !important;
    background-color: #2c3e50 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

.register-card .card-body {
    background: transparent !important;
}

.register-card h1,
.register-card h2,
.register-card h3,
.register-card h4,
.register-card h5,
.register-card h6,
.register-card p,
.register-card .text-white {
    color: white !important;
    color: #ffffff !important;
}

.register-card .text-dark {
    color: white !important;
}

/* Force 8px border-radius on all TENDRE buttons and remove borders */
.tendre-btn, .tendre-btn-ghost, .tendre-btn-primary, .tendre-btn-secondary, .tendre-btn-success, .tendre-btn-warning, .tendre-btn-danger, .hero-search-btn-custom, .btn {
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}

/* Remove borders from non-outline buttons */
.tendre-btn:not(.tendre-btn-outline):not([class*="btn-outline"]), .btn:not(.btn-outline):not([class*="btn-outline"]), .hero-search-btn-custom {
    border: none !important;
}

/* Final override for all buttons on index page */
.homepage-hero .btn, .homepage-hero .tendre-btn,
.cta-container .btn, .cta-container .tendre-btn,
.how-it-works-section .btn, .how-it-works-section .tendre-btn,
.final-cta-section .btn, .final-cta-section .tendre-btn,
.become-supplier-section .btn, .become-supplier-section .tendre-btn {
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}

/* Navigation register button override */
.navbar .nav-register-btn,
.navbar .nav-register-btn:hover,
.navbar .nav-register-btn:focus,
.navbar .nav-register-btn:active {
    background-color: #ffc002 !important;
    color: #1a1a1a !important;
    border: none !important;
    box-shadow: none !important;
}

/* Dropdown fixes for better positioning and mobile */
.dropdown-menu {
  max-width: 95vw; /* Prevent off-screen on mobile */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.dropdown-menu.dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
}

/* Fix dropdown overflow on small screens */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static !important;
    width: 100%;
    box-shadow: none !important;
    border: none !important;
    margin-top: 0.5rem;
  }
}

/* Mobile tender status dropdown - light gray background for active item */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #f3f4f6 !important;
  color: #2c3e50 !important;
}

/* Mobile tender status dropdown button - consistent gray styling */
#tendreFilterDropdown {
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
}

#tendreFilterDropdown:hover,
#tendreFilterDropdown:focus,
#tendreFilterDropdown:active {
  background-color: #e5e7eb !important;
  color: #374151 !important;
  border-color: #9ca3af !important;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

/* Mobile-First Base Styles */
html {
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-size: 16px; /* Prevent zoom on iOS */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

/* Ensure proper viewport on mobile */
@viewport {
  width: device-width;
  zoom: 1.0;
}

:root {
  /* Primary Colors - TENDRE Brand */
  --yellow-400: #fbbf24;
  --yellow-500: #ffc002;
  --yellow-600: #d97706;
  --yellow-700: #b45309;
  --gray-50: #f3f4f6;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #111827;
  --gray-900: #111827;
  
  /* Status Colors */
  --green-500: #10b981;
  --red-500: #ef4444;
  --cyan-500: #06b6d4;
  --blue-500: #3b82f6;
  
  /* Semantic Colors */
  --color-primary: var(--yellow-500);
  --color-primary-hover: var(--yellow-600);
  --color-secondary: var(--gray-500);
  --color-success: var(--green-500);
  --color-warning: var(--yellow-400);
  --color-danger: var(--red-500);
  --color-info: var(--cyan-500);
  
  /* Text Colors */
  --text-primary: var(--gray-700);
  --text-secondary: var(--gray-500);
  --text-muted: var(--gray-500);
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: var(--gray-50);
  --bg-body: var(--bg-white);
  
  /* Border Colors */
  --border-light: var(--gray-200);
  --border-medium: var(--gray-300);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
}

/* WhatsApp-like Messaging Interface Styles */
.chat-container {
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  overflow-anchor: none;
  padding: 1.5rem;
  background: #f8f9fa;
}

.message-wrapper {
  width: 100%;
  margin-bottom: 1rem;
}

.message-bubble {
  display: inline-block;
  word-wrap: break-word;
  word-break: break-word;
}

.message-content {
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  position: relative;
  display: inline-block;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-content.sent {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 0.375rem;
}

.message-content.received {
  background: white;
  color: var(--text-primary);
  border-bottom-left-radius: 0.375rem;
  border: 1px solid #e5e5ea;
}

.message-text {
  line-height: 1.4;
  margin: 0;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* Typing indicator */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6b7280;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Online status indicator */
.online-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #10b981;
  border: 2px solid white;
  position: absolute;
  bottom: 0;
  right: 0;
}

.online-status.offline {
  background-color: #6b7280;
}

.message-status {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.attachment-preview {
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.attachment-preview.sent {
  background: rgba(255, 255, 255, 0.15);
}

.attachment-preview.received {
  background: #f1f3f4;
  border: 1px solid #e5e5ea;
}

.contact-list-item {
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
  border-left: 3px solid transparent;
}

.contact-list-item:hover {
  background-color: #f1f3f4 !important;
  border-left-color: var(--color-primary);
}

.contact-list-item.unread {
  background-color: #e8f4fd;
  border-left-color: var(--color-primary);
}

.contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e5ea;
}

.contact-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  text-transform: none;
}

.unread-badge {
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  min-width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.message-input-container {
  padding: 1.25rem;
  background: white;
  border-top: 1px solid #e5e5ea;
}

.message-input {
  border-radius: 1.5rem;
  border: 1px solid #d1d5db;
  padding: 0.875rem 1.25rem;
  resize: none;
  max-height: 120px;
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.4;
}

.message-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.send-button {
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.2s ease;
}

.send-button:hover {
  background: var(--color-primary-hover);
}

.file-attachment-button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.file-attachment-button:hover {
  color: var(--color-primary);
}

/* Page Title Styling */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  color: var(--text-primary) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
}

/* Override Bootstrap's black text defaults */
body {
  color: var(--text-primary) !important;
}

/* Keep homepage hero title as original white */
.hero-title {
  color: white !important;
}

/* Force register card text to white - override global heading rules */
.register-card h1,
.register-card h2,
.register-card h3,
.register-card h4,
.register-card h5,
.register-card h6,
.register-card p,
.card.register-card h1,
.card.register-card h2,
.card.register-card h3,
.card.register-card h4,
.card.register-card h5,
.card.register-card h6,
.card.register-card p,
div.card.register-card h1,
div.card.register-card h2,
div.card.register-card h3,
div.card.register-card h4,
div.card.register-card h5,
div.card.register-card h6,
div.card.register-card p {
  color: #ffffff !important;
}

/* Role option boxes are dark — headings stay white */
.register-card .tendre-role-option h6,
.card.register-card .tendre-role-option h6,
div.card.register-card .tendre-role-option h6 {
  color: #ffffff !important;
}

/* Remove hover animation from role options */
.tendre-role-option {
  transition: none !important;
}

.tendre-role-option:hover {
  transform: none !important;
}

/* Mobile Responsiveness for Chat */
@media (max-width: 768px) {
  .chat-container {
    height: calc(100vh - 100px);
  }
  
  .message-bubble {
    max-width: 85%;
  }
  
  .contact-list-sidebar {
    height: 70vh;
  }
  
  .messages-container {
    padding: 1rem;
  }
  
  .message-content {
    padding: 0.875rem 1rem;
  }
  
  .contact-avatar, .contact-avatar-placeholder {
    width: 42px;
    height: 42px;
  }
  
  .contact-avatar-placeholder {
    font-size: 1rem;
  }
}

/* Search Box in Message List */
.message-search {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.message-search:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}

/* Thread Status Indicators */
.thread-archived {
  opacity: 0.6;
}

.thread-muted {
  opacity: 0.7;
}

/* File Upload Preview */
.file-preview {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-preview .file-icon {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.file-preview .file-info {
  flex: 1;
}

.file-preview .file-name {
  font-weight: 500;
  color: var(--text-primary);
}

.file-preview .file-size {
  font-size: 0.875rem;
  color: var(--text-muted);
}
  --space-16: 4rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

/* Base Styles */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  margin: 0;
  padding: 0;
}

/* Modal Fixes for Better Readability */
.modal-content {
  background-color: #ffffff !important;
  color: #000000 !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.modal-header {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.modal-body {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.modal-footer {
  background-color: #ffffff !important;
  border-top: 1px solid #dee2e6 !important;
}

.modal-title {
  color: #000000 !important;
}

/* Exception: Allow white text on navy modal headers */
.modal-header[style*="#2c3e50"] .modal-title,
.modal-header[style*="1f2937"] .modal-title {
  color: #ffffff !important;
}

/* Exception: headings inside dark-background divs within modals */
.modal-content [style*="background: linear-gradient(135deg, #2c3e50"] h1,
.modal-content [style*="background: linear-gradient(135deg, #2c3e50"] h2,
.modal-content [style*="background: linear-gradient(135deg, #2c3e50"] h3,
.modal-content [style*="background: linear-gradient(135deg, #2c3e50"] h4,
.modal-content [style*="background: linear-gradient(135deg, #2c3e50"] h5,
.modal-content [style*="background: linear-gradient(135deg, #2c3e50"] h6 {
  color: #ffffff !important;
}

/* Exception: stat tiles with dark (#2c3e50) backgrounds inside modals */
.modal-content [style*="background: #2c3e50"] * {
  color: inherit;
}

.modal .form-label {
  color: #000000 !important;
}

.modal .form-control {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ced4da !important;
}

.modal .form-control:focus {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25) !important;
}

.modal .form-select,
.modal select {
  background-color: #ffffff !important;
  color: #2c3e50 !important;
  border: 1px solid #ced4da !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.modal .form-select option,
.modal select option {
  background-color: #ffffff !important;
  color: #2c3e50 !important;
}

.modal .alert-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
  border-color: #bee5eb !important;
}

.modal .text-danger {
  color: #dc3545 !important;
}

.modal .btn-close:not(.btn-close-white) {
  filter: none !important;
  opacity: 0.6;
}
.modal .btn-close:not(.btn-close-white):hover {
  opacity: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

.display-1 { font-size: 6rem; font-weight: 300; }
.display-2 { font-size: 5.5rem; font-weight: 300; }
.display-3 { font-size: 4.5rem; font-weight: 300; }
.display-4 { font-size: 3.5rem; font-weight: 300; }
.display-5 { font-size: 3rem; font-weight: 300; }
.display-6 { font-size: 2.5rem; font-weight: 300; }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

/* Navigation */
.navbar {
  background-color: var(--bg-white) !important;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) 0;
}

/* Align navbar items with logo baseline on desktop */
@media (min-width: 992px) {
  .navbar .navbar-nav .nav-link {
    position: relative;
    top: 8px;
  }
}

.navbar-brand {
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none;
}

.navbar-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Equal-sized navigation links for desktop */
@media (min-width: 992px) {
  .navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .navbar-nav.me-auto {
    flex-grow: 1;
    justify-content: flex-start;
  }

  .navbar-nav .nav-item {
    flex: 0 0 auto;
  }

  .navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary) !important;
    font-weight: 600;
    padding: var(--space-2) var(--space-3) !important;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin: 0 var(--space-1);
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    font-size: 0.9rem;
  }

  .navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background-color: var(--bg-light);
    transform: translateY(-1px);
    border-radius: 6px;
  }

  .navbar-nav .nav-link.active {
    color: #495057 !important;
    background-color: #e9ecef;
    border-bottom: 2px solid #6b7280;
  }

  /* Right-aligned navigation items */
  .navbar-nav:not(.me-auto) {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: var(--space-1);
  }
}

/* Mobile navigation styling */
@media (max-width: 991.98px) {
  /* Ensure right-aligned nav (user dropdown) also goes full width on mobile */
  .navbar-nav:not(.me-auto) {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
  }

  /* Reorder navbar items on mobile - user dropdown first */
  .navbar-collapse {
    display: flex;
    flex-direction: column;
  }
  
  .navbar-collapse > .navbar-nav {
    width: 100%;
  }
  
  /* Move user dropdown nav to the top - only for authenticated users */
  .user-authenticated .navbar-collapse > .navbar-nav:last-child {
    order: -1;
    margin-bottom: 0 !important;
  }
  
  /* Hide empty navbar-nav containers */
  .navbar-collapse > .navbar-nav:empty {
    display: none !important;
  }
  
  /* Remove extra spacing and borders between nav sections */
  .navbar-collapse > .navbar-nav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
  }
  
  .navbar-collapse > .navbar-nav.me-auto {
    border-top: none !important;
    border-bottom: none !important;
  }
  
  /* Hide any dividers in the mobile menu */
  .navbar-collapse .dropdown-divider {
    display: none !important;
  }
  
  .navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary) !important;
    font-weight: 700;
    text-transform: lowercase;
    padding: var(--space-3) calc(1rem + 8px) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    margin: 0 !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    width: 100%;
  }
  
  .navbar-nav .nav-link .user-first-name {
    text-transform: lowercase;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:active {
    color: var(--text-primary) !important;
    background-color: var(--bg-light);
    border-radius: 8px !important;
  }
  
  /* Dropdown items full width and lowercase */
  .navbar-nav .dropdown-item {
    text-transform: lowercase;
    border-radius: 0 !important;
    margin: 0 !important;
    padding-left: 2rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
  }
  
  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:active {
    background-color: var(--bg-light);
    border-radius: 0 !important;
  }

  .navbar-nav .nav-link.active {
    color: #495057 !important;
    background-color: #e9ecef;
    border-left: 3px solid #6b7280;
  }
}

/* Mobile Navigation Enhancements */
.navbar-toggler {
  border: 1px solid var(--border-medium);
  padding: 0.375rem 0.5rem;
  font-size: 1rem;
  line-height: 1;
  background-color: transparent;
  border-radius: var(--radius-md);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
  border-color: var(--color-primary);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2875, 85, 99, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile dropdown styling - consolidate with above mobile nav */
@media (max-width: 991.98px) {
  .navbar-collapse {
    border-top: none;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
  }
  
  .navbar-nav {
    text-align: left;
    width: 100%;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
    padding: 2px 0;
    box-sizing: border-box;
  }
  
  .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: transparent !important;
    margin-left: 24px !important;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 4px 0;
    width: calc(100% - 24px) !important;
    border-radius: 0 !important;
    position: static !important;
    transform: none !important;
    border-left: 2px solid #e5e7eb;
  }
  
  .navbar-nav .dropdown-item {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 1rem !important;
    color: var(--text-secondary);
    min-height: 40px;
    display: flex;
    align-items: center;
    border-radius: 6px !important;
    margin: 2px 8px 2px 0 !important;
    width: calc(100% - 8px) !important;
    background-color: transparent;
  }
  
  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    background-color: var(--bg-light) !important;
    color: var(--text-primary);
    border-radius: 6px !important;
  }
  
  /* Hide icons in hamburger dropdown on mobile homepage only */
  body.homepage-hero .navbar-nav .nav-link i,
  body.homepage-hero .navbar-nav .dropdown-item i {
    display: none !important;
  }
  
  /* Mobile button styling */
  .navbar-nav .btn {
    width: 100%;
    justify-content: center;
    margin: var(--space-2) 0;
    min-height: 48px;
  }
  
  /* Better spacing for user profile dropdown on mobile */
  .navbar-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
  }
  
  .navbar-nav .dropdown-toggle::after {
    margin-left: auto;
  }
  
  /* Ensure proper scrolling on mobile when menu is open */
  .navbar-collapse.show {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  /* Better spacing for navigation sections on mobile */
  .navbar-nav {
    margin-bottom: var(--space-3);
  }
  
  /* Add extra spacing after the first navbar-nav section (which contains "Become a Supplier") */
  .navbar-nav:first-of-type {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light);
  }
  
  /* Ensure register/sign in buttons have proper spacing and mobile-friendly rendering */
  .navbar-nav .tendre-btn {
    margin: var(--space-3) 0;
    min-height: 48px;
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    border-radius: var(--radius-md) !important;
    font-weight: 500;
  }
  
  /* Fix dropdown button spacing on mobile */
  .navbar-nav .dropdown .tendre-btn {
    margin-bottom: var(--space-2);
  }
  
  /* Ensure all navigation buttons render consistently on mobile */
  .navbar-nav .nav-link {
    border-radius: var(--radius-md) !important;
  }
}

/* Additional mobile improvements */
@media (max-width: 576px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  .navbar {
    padding: var(--space-3) 0;
  }
  
  .navbar-brand img {
    height: 28px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #1a1a1a;
}

.btn-primary:hover {
  background-color: #e6ac02;
  border-color: #e6ac02;
  color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: white;
  text-decoration: none;
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--gray-500);
  border-color: var(--gray-500);
  color: white;
  text-decoration: none;
}

.btn-outline-secondary {
  background-color: transparent;
  border-color: var(--color-secondary) !important;
  color: var(--color-secondary) !important;
  border-width: 1px !important;
  border-style: solid !important;
}

.btn-outline-secondary:hover {
  background-color: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: white !important;
  text-decoration: none;
}

.btn-success {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.btn-warning {
  background-color: var(--color-warning);
  border-color: var(--color-warning);
  color: white;
}

.btn-danger {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}

.btn-info {
  background-color: var(--color-info);
  border-color: var(--color-info);
  color: white;
}

/* Cards */
.card {
  background-color: var(--bg-white) !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Navy upsell card override */
.card.upsell-card-navy {
  background-color: #2c3e50 !important;
  border: none !important;
}

.card.upsell-card-navy .card-body {
  background-color: #2c3e50 !important;
}

.card.upsell-card-navy h5 {
  color: #ffc002 !important;
}

.card.upsell-card-navy strong {
  color: #ffc002 !important;
}

/* Upsell card mobile styles */
@media (max-width: 767.98px) {
  .upsell-description {
    font-size: 0.85rem !important;
  }
  
  .upsell-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .upsell-dot {
    display: none !important;
  }
}

/* Recent Activity table full-width styling */
.card-body.p-0 .table-responsive {
  border-radius: 12px;
}

.card-body.p-0 .table {
  margin-bottom: 0;
}

.card-body.p-0 .table thead th:first-child {
  border-top-left-radius: 12px;
}

.card-body.p-0 .table thead th:last-child {
  border-top-right-radius: 12px;
}

.card-body.p-0 .table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.card-body.p-0 .table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Table scroll indicator */
.table-scroll-indicator {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(to right, transparent, rgba(31, 41, 55, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.table-scroll-indicator i {
  color: rgba(31, 41, 55, 0.7);
  font-size: 1rem;
  animation: table-pulse-arrow 2s ease-in-out infinite;
}

@keyframes table-pulse-arrow {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 0.8; transform: translateX(3px); }
}

.table-scroll-indicator.hidden {
  opacity: 0;
}

/* Hide scroll indicator on desktop where table fits */
@media (min-width: 992px) {
  .table-scroll-indicator {
    display: none;
  }
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-header {
  background-color: var(--bg-white) !important;
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-6);
  font-weight: 600;
  color: var(--text-primary) !important;
}

.card-body {
  padding: var(--space-6);
  background-color: var(--bg-white) !important;
  color: var(--text-primary) !important;
}

.card-footer {
  background-color: var(--bg-white) !important;
  border-top: 1px solid var(--border-light);
  padding: var(--space-4) var(--space-6);
}

/* MyBuilder Style Hero Section */
.mybuilder-hero {
  background-color: #000;
  padding: 80px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

/* Tablets and iPads (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .mybuilder-hero {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    min-height: 80vh;
    padding: 100px 0;
  }
  
  .homepage-hero .mybuilder-hero {
    min-height: 100vh;
    padding: 120px 0 80px 0;
    background-size: cover;
    background-position: center center;
  }
}

/* Desktop screens (larger than 1024px) */
@media (min-width: 1025px) {
  .mybuilder-hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    min-height: 700px;
    padding: 100px 0;
  }
  
  .hero-logo-text {
    font-size: 88px !important;
  }
}

/* Mobile phones (up to 767px) */
@media (max-width: 767px) {
  .mybuilder-hero {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    min-height: 600px;
    padding: 80px 0;
  }
  
  .homepage-hero .mybuilder-hero {
    min-height: 100vh;
    padding: 8px 0 40px 0;
  }
  
  .homepage-hero .navbar {
    padding: var(--space-4) 0;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-stats {
    gap: 15px;
    margin-top: 1.5rem;
  }
}

/* Homepage specific styles - full height hero */
.homepage-hero .mybuilder-hero {
  min-height: 100vh;
  min-height: 100dvh; /* Use dynamic viewport height for mobile browsers */
  padding-top: 0;
  margin-top: 0;
  position: relative;
}

/* Ensure no white space on mobile by setting body background for homepage */
body.homepage-hero {
  background-color: #2c3e50; /* tendre navy */
}

/* Mobile-specific: ensure hero fills viewport including browser chrome area */
@media (max-width: 767px) {
  .homepage-hero .mybuilder-hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
  }
}

/* Transparent navigation for homepage */
.homepage-hero .navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: var(--space-6) 0;
}

/* White navigation links for homepage */
.homepage-hero .navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  text-shadow: none !important;
  text-transform: lowercase !important;
}

.homepage-hero .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.homepage-hero .navbar-brand {
  color: white !important;
}

/* White toggler for mobile */
.homepage-hero .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.homepage-hero .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown styling for homepage */
.homepage-hero .navbar-nav .dropdown-menu {
  background-color: rgba(0, 0, 0, 0.9);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.homepage-hero .navbar-nav .dropdown-item {
  color: white;
}

.homepage-hero .navbar-nav .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Mobile navigation styles for homepage */
@media (max-width: 991px) {
  .homepage-hero .navbar-collapse.show {
    background-color: rgba(30, 41, 59, 0.97) !important;
    margin-top: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
  }

  .homepage-hero .navbar-nav .nav-link {
    color: white !important;
    text-shadow: none !important;
    padding: 10px 12px;
    border-radius: 4px;
    margin: 2px 0;
    text-transform: lowercase !important;
  }

  .homepage-hero .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
  }

  .homepage-hero .btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
  }
}

.hero-content {
  padding: 0 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: white;
  line-height: 1.4;
  margin-bottom: 55px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

.hero-search-box {
  background: white;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.search-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0;
  display: block;
}

.hero-select {
  font-size: 1rem;
  padding: 15px;
  border: 2px solid #e0e0e0;
  margin-bottom: 20px;
}

.hero-search-btn {
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* AI Search Enhancements */
.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.search-input-container {
  margin-bottom: 20px;
}

.search-button-container {
  text-align: center;
}

.hero-search-input {
  width: 100%;
  font-size: 1rem;
  padding: 15px;
  border: 2px solid #e0e0e0;
  transition: all 0.2s ease;
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background-color: var(--color-primary);
  color: white;
  padding: 1px 4px;
  font-size: 0.45rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  margin: 0 auto;
  border-radius: 10px !important;
}

.ai-badge i {
  font-size: 0.4rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Homepage Hero Mobile */
  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  
  /* Search Form Mobile */
  .search-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
  }
  
  .search-label {
    font-size: 1.44rem !important;
  }
  
  .ai-badge {
    font-size: 0.4rem;
    padding: 1px 3px;
    gap: 2px;
  }
  
  .ai-badge i {
    font-size: 0.35rem;
  }
  
  .hero-search-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px;
  }
  
  .hero-search-btn {
    padding: 12px 20px;
    font-size: 1rem;
    width: auto;
    min-width: 200px;
  }
}

/* Override all border-radius for homepage hero elements */
.homepage-hero .hero-search-input,
.homepage-hero .hero-search-btn,
.homepage-hero .hero-select,
.homepage-hero .btn,
.homepage-hero .form-control,
.homepage-hero .form-select,
.homepage-hero .tendre-btn {
  border-radius: 8px !important;
}
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* Mobile landscape - larger title for horizontal viewing */
@media (max-width: 992px) and (orientation: landscape) {
  .hero-title {
    font-size: 3.375rem !important; /* Mobile landscape: 54px */
  }
}

/* Mobile portrait - smaller title for vertical viewing */
@media (max-width: 768px) and (orientation: portrait) {
  .hero-title {
    font-size: 1.4rem !important; /* Mobile portrait: ~22px */
  }
}
  
/* Company Logos Mobile */
  .trusted-companies-banner {
    padding: 1rem 0;
  }
  
  .logo-image {
    height: 24px;
  }
  
  /* How It Works Mobile */
  .step-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .step-title {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
  }
  
  .step-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Service Cards Mobile */
  .service-card {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  .service-title {
    font-size: 1rem;
  }
  
  .service-description {
    font-size: 0.85rem;
  }
  
  /* Join Sections Mobile */
  .join-section {
    padding: 2rem 0;
  }
  
  .join-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .join-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  /* Navigation Mobile */
  .navbar-brand img {
    height: 35px;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.95rem;
  }
  
  /* Forms Mobile */
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px;
  }
  
  .form-select {
    font-size: 16px;
    padding: 12px;
  }
  
  /* Buttons Mobile */
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 6px;
  }
  
  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  /* Cards Mobile */
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  /* Tables Mobile */
  .table-responsive {
    font-size: 0.85rem;
  }
  
  /* Modal Mobile */
  .modal-dialog:not(.modal-dialog-centered) {
    margin: 0.5rem;
  }
  
  .modal-dialog-centered {
    margin: 0.5rem auto;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  /* Container Adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Small Mobile (Portrait phones) */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  
  .homepage-hero .hero-stats {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  
  .homepage-hero .hero-stats .stat-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
  }
  
  .homepage-hero .hero-stats .stat-number,
  .homepage-hero .stat-number {
    font-size: 0.7rem !important;
  }
  
  .homepage-hero .hero-stats .stat-label,
  .homepage-hero .stat-label {
    font-size: 0.45rem !important;
    white-space: nowrap !important;
  }
  
  .hero-search-btn {
    min-width: 180px;
  }
  
  .search-header {
    text-align: center;
  }
  
  .ai-badge {
    align-self: center;
  }
  
  /* Reduce section padding on very small screens */
  .how-it-works-section,
  .services-showcase,
  .join-section {
    padding: 1.5rem 0;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Extra tight spacing for very small screens */
  .dashboard-card {
    margin-bottom: 0.25rem;
  }
  
  .dashboard-stats .col {
    margin-bottom: 0.25rem;
  }
  
  .stat-card .card-body {
    padding: 0.5rem 0.75rem;
  }
  
  /* Very tight Bootstrap grid gutters for small screens */
  .row.g-4 {
    --bs-gutter-y: 0.25rem;
    --bs-gutter-x: 0.75rem;
  }
  
  .py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  
  .mb-5 {
    margin-bottom: 0.5rem !important;
  }
}

/* Enhanced Job Title Hover Effects */
.hover-primary {
  transition: color 0.2s ease-in-out;
}

.hover-primary:hover {
  color: var(--color-primary) !important;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px; /* Apple's recommended touch target */
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .form-control,
  .form-select {
    min-height: 44px;
  }
}

/* Create tendre Preview Mobile Optimizations */
@media (max-width: 768px) {
  .tendre-preview-form {
    padding: 1rem;
  }
  
  .tendre-preview-form .form-group {
    margin-bottom: 1.5rem;
  }
  
  .tendre-preview-form .form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .tendre-preview-form .form-control,
  .tendre-preview-form .form-select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px;
    border-radius: 6px;
  }
  
  .tendre-preview-form textarea.form-control {
    min-height: 120px;
  }
  
  /* Mobile-friendly buttons */
  .tendre-preview-form .btn {
    padding: 12px 20px;
    font-size: 1rem;
    min-height: 44px;
    border-radius: 6px;
  }
  
  .tendre-preview-form .btn-block {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  /* Project timeline mobile */
  .project-timeline-mobile {
    display: block;
  }
  
  .project-timeline-desktop {
    display: none;
  }
  
  /* Service badges mobile */
  .service-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    margin: 2px;
  }
  
  /* Location fields mobile */
  .location-fields .row {
    margin: 0;
  }
  
  .location-fields .col {
    padding: 0 0.5rem;
  }
}

/* Dashboard Mobile Improvements */
@media (max-width: 768px) {
  .dashboard-card {
    margin-bottom: 0.5rem;
  }
  
  .dashboard-stats {
    text-align: center;
  }
  
  .dashboard-stats .col {
    margin-bottom: 0.5rem;
  }
  
  .dashboard-stats .row {
    margin-bottom: 0;
  }
  
  .dashboard-quick-actions .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Reduce card body padding on mobile */
  .dashboard-card .card-body {
    padding: 1rem 1rem 0.75rem;
  }
  
  /* Tighter spacing for stat cards */
  .stat-card {
    margin-bottom: 0.5rem;
  }
  
  .stat-card .card-body {
    padding: 0.75rem 1rem;
  }
  
  /* Reduce Bootstrap grid gutters on mobile */
  .row.g-4 {
    --bs-gutter-y: 0.5rem;
    --bs-gutter-x: 1rem;
  }
  
  .row.g-3 {
    --bs-gutter-y: 0.5rem;
    --bs-gutter-x: 0.75rem;
  }
  
  /* Dashboard page container adjustments */
  .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .mb-5 {
    margin-bottom: 1rem !important;
  }
  
  .mb-4 {
    margin-bottom: 0.75rem !important;
  }
  
  /* Mobile table scrolling */
  .table-responsive {
    border: none;
  }
  
  .table-responsive table {
    font-size: 0.85rem;
  }
  
  .table-responsive th,
  .table-responsive td {
    padding: 0.5rem;
    white-space: nowrap;
  }
}

/* Supplier Directory Mobile */
@media (max-width: 768px) {
  .supplier-card {
    margin-bottom: 1rem;
  }
  
  .supplier-filters {
    padding: 1rem;
  }
  
  .supplier-filters .form-control,
  .supplier-filters .form-select {
    font-size: 16px;
    margin-bottom: 0.75rem;
  }
  
  .supplier-search-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* Service checkboxes mobile */
  .service-checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .service-checkbox-item {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Navigation Mobile Improvements */
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    font-size: 1rem;
  }
  
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding-left: 1rem;
  }
  
  .dropdown-item {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }
}

/* Authentication Pages Mobile */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
  }
  
  .auth-card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  
  .auth-form .form-control {
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
  }
  
  .auth-form .btn {
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
}

/* Final mobile touch optimizations */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn-group-vertical .btn {
    margin-bottom: 0.5rem;
  }
  
  /* Ensure text is readable on small screens */
  body {
    line-height: 1.5;
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }
  
  /* Improve touch targets */
  .navbar-toggler {
    padding: 0.5rem;
    border: none;
  }
  
  .close {
    font-size: 1.5rem;
    padding: 0.5rem;
  }
}

.ai-indicator i {
  font-size: 0.85rem;
}

.ai-label {
  font-size: 0.75rem;
}

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  display: block;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  .hero-stats .stat-number {
    font-size: 2.2rem;
  }
  .hero-stats .stat-label {
    font-size: 1.1rem;
  }
}

.hero-image img {
  max-height: 400px;
  object-fit: cover;
}

/* Trusted Companies Banner */
.trusted-companies-banner {
  background-color: #6b7280;
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid rgba(107, 114, 128, 0.3);
  border-bottom: 1px solid rgba(107, 114, 128, 0.3);
}

.trusted-content {
  text-align: center;
}

.logos-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.logos-scroll {
  display: flex;
  align-items: center;
  animation: scroll-logos 35s linear infinite;
  white-space: nowrap;
}

.logo-item {
  padding: 0 50px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-item:hover {
  opacity: 1;
}

.logo-image {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.trusted-companies-banner:hover .logos-scroll {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .trusted-companies-banner {
    padding: 30px 0;
  }
  
  .logo-item {
    padding: 0 35px;
  }
  
  .logo-image {
    height: 35px;
  }
  
  .logos-scroll {
    animation-duration: 25s;
  }
}

/* How it Works Section */
.how-it-works-section {
  padding: 80px 0;
  background-color: white;
}

.step-card {
  padding: 30px 20px;
}

.step-icon {
  position: relative;
  margin-bottom: 30px;
}

.step-image {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  background-color: #111827;
  padding: 20px;
  border-radius: 50%;
}

.step-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  text-transform: none;
  letter-spacing: 0.5px;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.step-description {
  color: #666;
  line-height: 1.6;
}

.see-how-link {
  display: inline-block !important;
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
}

.see-how-link:hover {
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3) !important;
  color: white !important;
}

/* Become Supplier Section */
/* New Clean Supplier Section Design */
.become-supplier-section {
  background-color: #f8f9fa;
  min-height: 500px;
}

.supplier-flex-container {
  display: flex;
  min-height: 500px;
  width: 100%;
}

.supplier-image-container {
  flex: 0 0 40%;
  min-height: 500px;
  overflow: hidden;
}

.supplier-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.supplier-content-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.supplier-content {
  padding: 80px 60px;
  width: 100%;
}

.supplier-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.supplier-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.benefit-list {
  margin-bottom: 40px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.benefit-icon {
  margin-right: 20px;
  margin-top: 5px;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.benefit-content {
  flex: 1;
}

.benefit-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.benefit-description {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.cta-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.cta-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.cta-button {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Responsive Design for New Supplier Section */
@media (max-width: 991px) {
  .supplier-content {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .supplier-flex-container {
    flex-direction: column;
    min-height: auto;
  }
  
  .supplier-image-container {
    flex: none;
    height: 250px;
    min-height: 250px;
    order: 1;
  }
  
  .supplier-content-container {
    order: 2;
  }
  
  .supplier-content {
    padding: 40px 20px;
  }
  
  .supplier-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .supplier-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .benefit-item {
    margin-bottom: 25px;
  }
  
  .benefit-icon {
    margin-right: 15px;
    font-size: 1.1rem;
  }
  
  .benefit-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .benefit-description {
    font-size: 0.95rem;
  }
  
  .cta-section {
    margin-top: 30px;
    padding-top: 30px;
  }
  
  .cta-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .supplier-content {
    padding: 30px 15px;
  }
  
  .supplier-title {
    font-size: 1.6rem;
  }
  
  .supplier-subtitle {
    font-size: 0.95rem;
  }
  
  .benefit-icon {
    margin-right: 12px;
  }
  
  .benefit-title {
    font-size: 1rem;
  }
  
  .benefit-description {
    font-size: 0.9rem;
  }
}
  
  .supplier-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .supplier-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .benefit-item {
    margin-bottom: 25px;
  }
  
  .benefit-icon {
    margin-right: 15px;
    font-size: 1.1rem;
  }
  
  .benefit-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .benefit-description {
    font-size: 0.95rem;
  }
  
  .cta-section {
    margin-top: 30px;
    padding-top: 30px;
  }
  
  .cta-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .supplier-content {
    padding: 30px 15px;
  }
  
  .supplier-title {
    font-size: 1.6rem;
  }
  
  .supplier-subtitle {
    font-size: 0.95rem;
  }
  
  .benefit-icon {
    margin-right: 12px;
  }
  
  .benefit-title {
    font-size: 1rem;
  }
  
  .benefit-description {
    font-size: 0.9rem;
  }
}

/* Popular Services Section */
.popular-services-section {
  padding: 80px 0;
  background-color: white;
}

.service-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.service-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-stats {
  margin-bottom: 20px;
}

.professionals-count {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.service-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.service-link:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: var(--space-16) 0;
  background-color: var(--bg-white);
}

.section.bg-light {
  background-color: var(--bg-light);
}

.section-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-12);
  text-align: center;
}

/* Stats Cards */
.stats-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.stats-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stats-card.primary {
  background-color: var(--color-primary);
  color: white;
}

.stats-card.success {
  background-color: var(--color-success);
  color: white;
}

.stats-card.warning {
  background-color: var(--color-warning);
  color: white;
}

.stats-card.info {
  background-color: var(--color-info);
  color: white;
}

.stats-number {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.stats-label {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  text-transform: none;
  letter-spacing: 0.5px;
}

/* Feature Cards */
.feature-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: all 0.2s ease;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: white;
  font-size: var(--font-size-xl);
}

.feature-icon.bg-success {
  background-color: var(--color-success);
}

.feature-icon.bg-info {
  background-color: var(--color-info);
}

.feature-icon.bg-warning {
  background-color: var(--color-warning);
}

/* Forms */
.form-control {
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Override browser autofill yellow background to pale grey */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #f3f4f6 inset !important;
  box-shadow: 0 0 0 1000px #f3f4f6 inset !important;
  -webkit-text-fill-color: #374151 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: block;
}

/* Tables */
.table {
  width: 100%;
  margin-bottom: var(--space-4);
  background-color: var(--bg-white);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-light);
}

.table td {
  color: var(--text-secondary);
  background-color: var(--bg-white);
}

.table tbody tr {
  background-color: var(--bg-white) !important;
}

.table tbody tr:hover {
  background-color: var(--bg-light) !important;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: 500;
  border-radius: var(--radius-md);
}

.badge.bg-primary {
  background-color: var(--color-primary);
  color: white;
}

.badge.bg-success {
  background-color: var(--color-success);
  color: white;
}

.badge.bg-warning {
  background-color: var(--color-warning);
  color: white;
}

.badge.bg-danger {
  background-color: var(--color-danger);
  color: white;
}

.badge.bg-secondary {
  background-color: var(--color-secondary);
  color: white;
}

/* Supplier Cards */
.card h5, .card h6 {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.card .text-muted {
  color: var(--text-secondary) !important;
}

.card small {
  color: var(--text-secondary) !important;
}

.card strong {
  color: var(--text-primary) !important;
}

.card .badge {
  font-weight: 500;
}

.card .border-end {
  border-color: var(--border-light) !important;
}

/* Company Logo Avatar */
.company-avatar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  border: 2px solid var(--border-light);
}

/* Enhanced Supplier Badge */
.enhanced-badge {
  background: linear-gradient(135deg, var(--yellow-400), var(--color-primary)) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* File Upload Styles */
.file-upload-zone {
  border: 2px dashed var(--border-medium) !important;
  transition: all 0.3s ease;
  background-color: var(--bg-white);
}

.file-upload-zone:hover {
  border-color: var(--color-primary) !important;
  background-color: var(--bg-light);
}

.file-upload-zone.dragover {
  border-color: var(--color-primary) !important;
  background-color: var(--bg-light);
  transform: scale(1.02);
}

.file-item {
  background-color: var(--bg-white) !important;
  border: 1px solid var(--border-light) !important;
  transition: all 0.2s ease;
}

.file-item:hover {
  box-shadow: var(--shadow-sm);
}

.file-item.uploading {
  opacity: 0.7;
}

.file-item.error {
  border-color: var(--color-danger) !important;
  background-color: rgba(239, 68, 68, 0.05);
}

.file-item.success {
  border-color: var(--color-success) !important;
}

/* Document List Styles */
.document-list .list-group-item {
  background-color: var(--bg-white) !important;
  border-color: var(--border-light) !important;
  padding: var(--space-4);
}

.document-list .list-group-item:hover {
  background-color: var(--bg-light) !important;
}

/* Supplier Questionnaire Styles */
.questionnaire-section {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.questionnaire-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-control.is-invalid {
  border-color: var(--color-danger);
  background-color: rgba(239, 68, 68, 0.05);
}

.form-control.is-invalid:focus {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.questionnaire-section .badge {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.progress {
  background-color: var(--bg-light);
  border-radius: 50px;
}

.progress-bar {
  transition: width 0.6s ease;
  border-radius: 50px;
}

/* Enhanced form styling for questionnaire */
.questionnaire-section .form-label {
  font-weight: 600;
  color: var(--text-primary);
}

.questionnaire-section .form-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.questionnaire-section .alert {
  border-radius: var(--border-radius);
}

/* Navigation Steps */
.questionnaire-nav {
  margin-bottom: var(--space-4);
}

.nav-step {
  position: relative;
  transition: all 0.3s ease;
}

.nav-step .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.nav-step.active .step-circle {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.nav-step.completed .step-circle {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.nav-step small {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.nav-step.active small {
  color: var(--color-primary);
  font-weight: 600;
}

/* Supplier Profile Page Styles */
.company-avatar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  font-weight: 600;
}

.stat-item {
  padding: var(--space-2);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.project-card {
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: var(--space-3);
  background-color: var(--bg-white);
  transition: all 0.2s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.certification-content,
.testimonials-content {
  white-space: pre-line;
  line-height: 1.6;
}

/* Profile card enhancements */
.supplier-profile-header {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
  border-bottom: 1px solid var(--border-light);
}

.profile-stats {
  padding: var(--space-3);
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
}

.profile-contact-info {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: var(--space-4);
}

.profile-section {
  margin-bottom: var(--space-6);
}

.profile-section h5 {
  color: var(--text-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
}

/* Hero Search Form Styling */
.hero-search-form {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.hero-search-form .form-select,
.hero-search-form .form-control {
  background-color: white !important;
  border: 1px solid var(--border-medium) !important;
  color: var(--text-primary) !important;
  font-weight: 500;
}

.hero-search-form .form-select:focus,
.hero-search-form .form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25) !important;
}

.hero-search-form .btn-primary {
  font-weight: 600;
  text-shadow: none;
}

/* Hero buttons styling */
.hero-outline-btn {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: white !important;
  backdrop-filter: blur(10px);
}

.hero-outline-btn:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: white !important;
  color: white !important;
}

/* About Section Styling */
.step-number {
  transition: all 0.3s ease;
}

.step-number:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* Stats Cards */
.bg-light .card-body {
  transition: all 0.3s ease;
}

.bg-light:hover .card-body {
  transform: translateY(-5px);
}

/* Become Supplier Page Styles */
.hero-section-simple {
  padding: var(--space-16) 0;
}

.client-logo {
  transition: all 0.3s ease;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.client-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.avatar {
  font-size: 0.875rem;
}

.popular-badge {
  z-index: 10;
}

/* Subscription card styling */
.card-header.bg-primary h4,
.card-header.bg-primary .display-4,
.card-header.bg-primary small {
  color: white !important;
}

/* Enhanced badge styling */
.enhanced-badge {
  background: linear-gradient(45deg, var(--color-primary), #ff8c00) !important;
  border: none;
  color: white !important;
}

/* Hero image section */
.hero-image-section {
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-image-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
  z-index: 1;
}

.hero-image-section .container {
  position: relative;
  z-index: 2;
}

/* Alerts */
.alert {
  padding: var(--space-4);
  border: 1px solid;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.alert-primary {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--color-success);
  color: var(--color-success);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

/* Dropdown */
.dropdown-menu {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  margin-top: var(--space-2);
}

.dropdown-item {
  font-family: 'Inter', sans-serif;
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--color-primary);
  text-decoration: none;
}

/* Footer */
footer {
  background-color: #2c3e50 !important;
  color: rgba(255,255,255,0.55);
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Utility Classes */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dark { color: var(--text-primary) !important; }

.bg-primary { background-color: var(--color-primary) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-white { background-color: var(--bg-white) !important; }

.fw-bold { font-weight: 700; }
.fw-normal { font-weight: 400; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }

.me-2 { margin-right: var(--space-2) !important; }
.me-3 { margin-right: var(--space-3) !important; }

.d-block { display: block !important; }

/* Button fixes for consistent styling */
.btn-outline-danger {
  color: white !important;
  border: none !important;
  background-color: #dc2626 !important;
}

.btn-outline-danger:hover {
  color: white !important;
  background-color: #b91c1c !important;
  border: none !important;
}

.btn-outline-danger:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25) !important;
}

.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-around { justify-content: space-around !important; }

.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }

/* Responsive Grid */
.container {
  width: 100%;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

/* Mobile landscape - use full width instead of constrained container */
@media (max-width: 991px) and (orientation: landscape) {
  .container {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--space-4) / -2);
  margin-right: calc(var(--space-4) / -2);
}

.col,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-md-6, .col-md-4, .col-md-8 {
  position: relative;
  width: 100%;
  padding-left: calc(var(--space-4) / 2);
  padding-right: calc(var(--space-4) / 2);
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }

@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

.g-4 > * {
  padding: var(--space-4);
}

.gap-3 {
  gap: var(--space-3);
}

.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.p-4 { padding: var(--space-4); }

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.border-warning {
  border-color: var(--color-warning) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-8) 0;
  }
  
  .section {
    padding: var(--space-8) 0;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
}
/* Additional MyBuilder-style enhancements */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 30px;
}

/* Responsive adjustments for MyBuilder style */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-search-box {
    padding: 20px;
  }
  
  .supplier-title {
    font-size: 1.8rem;
  }
  
  .step-title {
    font-size: 1.1rem;
  }
  
  .service-title {
    font-size: 1.2rem;
  }
  
  .mybuilder-hero {
    min-height: 600px;
    padding: 80px 0;
  }
  
  .how-it-works-section,
  .become-supplier-section,
  .popular-services-section {
    padding: 60px 0;
  }
}

/* Final CTA Section */
.final-cta-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.final-cta-section .cta-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.final-cta-section .cta-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-primary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

@media (max-width: 768px) {
  .final-cta-section .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Compact navigation link styling */
.nav-link-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
}

/* Horizontal line under My Projects tabs */
.tab-container-with-border {
    border-bottom: 1px solid #6b7280 !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
}

/* =======================================================
   COMPREHENSIVE BUTTON OVERHAUL - RECTANGULAR DESIGN
   ======================================================= */

/* Global button base styling - rectangular with small radius */
.btn, button, .tendre-btn, .tendre-btn-primary, .tendre-btn-outline, 
input[type="submit"], input[type="button"], .btn-primary, .btn-secondary, 
.btn-success, .btn-warning, .btn-danger, .btn-info, .btn-light, .btn-dark,
.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, 
.btn-outline-warning, .btn-outline-danger, .btn-outline-info, 
.btn-outline-light, .btn-outline-dark {
  border-radius: 6px !important;
  -webkit-border-radius: 6px !important;
  -moz-border-radius: 6px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
}

/* Primary buttons - Dark navy background, no border */
.btn-primary {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: linear-gradient(135deg, #111827 0%, #0d1117 100%) !important;
  border: none !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Warning buttons - Yellow background, no border */
.btn-warning {
  background: linear-gradient(135deg, #ffc002 0%, #d97706 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(255, 192, 2, 0.2) !important;
}

.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border: none !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 192, 2, 0.3) !important;
}

/* Secondary buttons - Gray background, no border */
.btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #6b7280 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background: linear-gradient(135deg, #6b7280 0%, #374151 100%) !important;
  border: none !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Success buttons - Green background, no border */
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2) !important;
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border: none !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3) !important;
}

/* Danger buttons - Red background, no border */
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2) !important;
}

.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: none !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3) !important;
}

/* Outline buttons - Only keep border when background matches page background */
.btn-outline-primary {
  background: white !important;
  color: #ffc002 !important;
  border: 2px solid #ffc002 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
  border: none !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-outline-secondary {
  background: white !important;
  color: #6b7280 !important;
  border: 2px solid #6b7280 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active {
  background: linear-gradient(135deg, #6b7280 0%, #6b7280 100%) !important;
  border: none !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Light and dark buttons */
.btn-light {
  background: #f8f9fa !important;
  border: 2px solid #e9ecef !important;
  color: #212529 !important;
}

.btn-light:hover, .btn-light:focus, .btn-light:active {
  background: #e9ecef !important;
  border: none !important;
  color: #212529 !important;
  transform: translateY(-2px) !important;
}

.btn-dark {
  background: linear-gradient(135deg, #343a40 0%, #212529 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-dark:hover, .btn-dark:focus, .btn-dark:active {
  background: linear-gradient(135deg, #212529 0%, #16181b 100%) !important;
  border: none !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* TENDRE brand specific buttons - Solid Yellow Primary */
.tendre-btn-primary {
  background: #ffc002 !important;
  border: none !important;
  color: #2c3e50 !important;
  border-radius: 8px !important;
}

.tendre-btn-primary:hover, .tendre-btn-primary:focus, .tendre-btn-primary:active {
  background: #ffcc1a !important;
  border: none !important;
  color: #2c3e50 !important;
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}

.tendre-btn-outline {
  background: transparent !important;
  color: #ffc002 !important;
  border: 2px solid #ffc002 !important;
  border-radius: 4px !important;
}

.tendre-btn-outline:hover, .tendre-btn-outline:focus, .tendre-btn-outline:active {
  background: #ffc002 !important;
  border-color: #ffc002 !important;
  color: #111827 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 192, 2, 0.3) !important;
}

/* Override any remaining rounded styles */
.btn:focus, .btn:active, button:focus, button:active,
.btn.focus, .btn:focus-visible, button.focus, button:focus-visible {
  border-radius: 6px !important;
  -webkit-border-radius: 6px !important;
  -moz-border-radius: 6px !important;
  outline: none !important;
}

/* Mobile responsive button adjustments */
@media (max-width: 768px) {
  .btn, button, .tendre-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
  }
  
  /* Mobile project card action buttons - enhanced touch targets */
  .project-header .tendre-btn-outline,
  .project-container .tendre-btn-outline {
    display: block !important;
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    border: 2px solid #ffc002 !important;
    background: white !important;
    color: #ffc002 !important;
    border-radius: 8px !important;
    min-height: 48px !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 192, 2, 0.2) !important;
  }
  
  .project-header .tendre-btn-outline:active,
  .project-container .tendre-btn-outline:active {
    background: #fff8db !important;
    transform: scale(0.98) !important;
  }
  
  /* Small button sizing for mobile */
  .project-header .tendre-btn-sm,
  .project-container .tendre-btn-sm {
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
    min-height: 44px !important;
  }
  
  /* Prevent zoom on input focus for mobile */
  .form-control, .form-select, input, textarea, select {
    font-size: 16px !important;
  }
  
  /* Ensure input fields don't zoom on focus */
  input[type="text"], input[type="email"], input[type="password"], 
  input[type="tel"], input[type="url"], input[type="search"],
  textarea, select {
    font-size: 16px !important;
  }
  
  /* Additional mobile spacing for bottom buttons */
  #bottom-continue-section {
    margin-bottom: 3rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Force TENDRE button consistency - Override all conflicting styles */
.tendre-btn, .tendre-btn-primary, .tendre-btn-outline, .tendre-btn-lg, .tendre-btn-sm {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

/* Force consistent sizing for all button variants */
.tendre-btn-lg {
  padding: 12px 24px !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
}

.tendre-btn-sm {
  padding: 8px 16px !important;
  font-size: 0.875rem !important;
  border-radius: 8px !important;
}

/* Priority Notice Component - Professional notification styling */
.notice {
    border-left: 4px solid #ffc002;
    background-color: #fff8db;
    border: 1px solid #e9ecef;
    border-radius: 0;
    padding: 1rem;
    margin-bottom: 1rem;
}

.notice--priority {
    border-left-color: #ffc002;
    background-color: #fff8db;
}

.notice--success {
    border-left-color: #28a745;
    background-color: #d4edda;
}

.notice--success .notice__icon {
    color: #28a745;
}

.notice__icon {
    color: #ffc002;
    font-size: 1rem;
    margin-right: 0.75rem;
}

.notice__title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notice__subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.notice__actions {
    margin-top: 0.75rem;
}

/* Collapsible Section Styling - Rounded corners for enhanced sections */
.collapse .card-body {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Ensure card headers and collapsible content work together seamlessly */
.card > .card-header + .collapse > .card-body {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-top: none !important;
}

/* Navbar notification badges - tendre yellow default */
.navbar .badge.bg-danger,
.navbar .badge.bg-info,
.mobile-bottom-nav .badge.bg-danger {
    background-color: #ffc002 !important;
    color: #2c3e50 !important;
}

/* Message badges - tendre yellow */
.badge.badge--counter.badge--counter-message {
    background-color: #ffc002 !important;
    color: #2c3e50 !important;
}

/* Calendar badges - tendre yellow */
.badge.badge--counter.badge--counter-calendar {
    background-color: #ffc002 !important;
    color: #2c3e50 !important;
}

/* Clean navigation badge - yellow default */
.badge--counter {
    background-color: #ffc002 !important;
    color: #2c3e50 !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    /* Override Bootstrap .badge padding entirely */
    padding: 0 4px !important;
    line-height: 18px !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    /* Use pill radius — adapts naturally: circle for 1 digit, pill for 2+ */
    border-radius: 9px !important;
    box-sizing: border-box;
}

/* Section labels for priority content */
.section-label--priority {
    color: #ffc002;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid #ffc002;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Priority invitation cards */
.card--priority {
    border-left: 4px solid #ffc002;
}

.card--priority .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.priority-icon {
    color: #ffc002;
}

/* Mobile Tab Buttons - Clean custom implementation */
@media (max-width: 991.98px) {
  .mobile-tab-buttons {
    display: flex;
    gap: 0.75rem;
  }
  
  .mobile-tab-btn {
    flex: 1;
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-tab-btn:hover:not(.active) {
    background-color: #3d5166;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .mobile-tab-btn.active {
    background-color: #ffc002;
    color: #1a1a1a;
    box-shadow: none;
  }
  
  .mobile-tab-btn i {
    margin-right: 0.5rem;
  }
}

/* Project Title Override - Must be last to override all other styles */
.project-title {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem) !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
}

/* Mobile-specific project title adjustments */
@media (max-width: 767px) {
  .project-title,
  h2.project-title,
  .card-header h2.project-title,
  .project-header h2.project-title {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
  }
}

/* Increase font size for expandable section titles in supplier profile */
.card-header h5 .btn.fw-bold {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
}

/* Specific targeting for supplier profile expandable sections with inline styles */
.card-header[style*="background-color: #1a1a2e"] h5 .btn,
.card-header[style*="background-color: #2c3e50"] h5 .btn,
.card-header[style*="background-color: #ffc002"] h5 .btn {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
}

/* Reduce icon sizes in expandable section titles */
.card-header h5 .btn .fas {
    font-size: 1.1rem !important;
}

.card-header[style*="background-color: #1a1a2e"] h5 .btn .fas,
.card-header[style*="background-color: #2c3e50"] h5 .btn .fas,
.card-header[style*="background-color: #ffc002"] h5 .btn .fas {
    font-size: 1.1rem !important;
}

/* Make Enhanced Only badges much smaller */
.badge.bg-dark:has(.fa-star),
.badge.bg-secondary:has(.fa-lock),
.badge:contains("Enhanced Only") {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.4rem !important;
}

/* Alternative targeting for Enhanced Only badges */
.card-header .badge.bg-dark.text-white,
.card-header .badge.bg-secondary {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.4rem !important;
}

/* Reduce icon size within Enhanced Only badges */
.badge.bg-dark .fa-star,
.badge.bg-secondary .fa-lock {
    font-size: 0.5rem !important;
}

/* Left align all section headings on supplier profile */
.card-header h5,
.card-header h5 .btn {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Ensure section header containers are left aligned */
.card-header .d-flex.justify-content-between {
    text-align: left !important;
}

.card-header .d-flex.justify-content-between > div:first-child {
    text-align: left !important;
}

/* Reduce size of numbers in stats cards on supplier profile ONLY */
/* Only target supplier profile engagement score cards specifically */
.card-body .text-center .fw-bold.text-primary,
.card-body .text-center .fw-bold.text-success,  
.card-body .text-center .fw-bold.text-warning {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* Hero tagline styling - single line */
.hero-tagline {
    font-size: 1.275rem !important;
    font-weight: 600 !important;
    color: white !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.hero-tagline .text-yellow {
    color: #ffc002 !important;
}

@media (max-width: 576px) {
    .hero-tagline {
        font-size: 1.32rem !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
    }
}

/* Force mobile hero title font size with higher specificity */
@media (max-width: 576px) {
    h1.hero-title.animated-title,
    .hero-title-stage h1.hero-title,
    h1.hero-title {
        font-size: 1.3rem !important; /* Mobile: smaller for single line */
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    h1.hero-title.animated-title,
    .hero-title-stage h1.hero-title,
    h1.hero-title {
        font-size: 1.1rem !important; /* Small mobile: even smaller */
        white-space: nowrap !important;
    }
}

/* Mobile: Reduce job title size on tender detail pages */
@media (max-width: 768px) {
    /* Buyer job detail page title */
    .container-fluid h1.display-6 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    /* Supplier job detail page title */
    .card-header h1.h3 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }
    
    /* All job detail titles on mobile */
    h1.display-6,
    h1.h3 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
}

/* Admin mega menu 3-column grid layout - ONLY when shown */
.admin-mega-menu.show {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 900px;
    padding: 1.5rem;
    list-style: none;
}

.admin-section-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
}

.admin-section-group .dropdown-header {
    color: #2c3e50;
    font-weight: 600;
    padding: 0.5rem 0;
    margin-bottom: 0.25rem;
}

.admin-section-group .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.admin-section-group .dropdown-item:hover {
    background-color: #f3f4f6;
}

.admin-section-group .dropdown-item.active {
    background-color: #fef3c7;
    color: #2c3e50;
}

/* Hide icons in View All buttons on mobile */
@media (max-width: 768px) {
    a[href*="view"]:not([class*="dropdown"]) i,
    a.tendre-btn i,
    .tendre-btn i,
    a.btn[style*="1f2937"] i {
        /* Only hide for View All type buttons */
    }
    
    /* Target View All button icons specifically */
    .d-flex.justify-content-between a.btn i,
    .d-flex.justify-content-between a.tendre-btn i {
        display: none !important;
    }
}

/* Cache bust 1759748529 */
/* Cache bust 1762458220 */

/* Badge tooltip — colour matches badge background via CSS vars */
.tendre-badge-tip {
    position: relative;
    cursor: default;
}
.tendre-badge-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--tip-bg, #2c3e50);
    color: var(--tip-color, white);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 200;
}
.tendre-badge-tip:hover::after {
    opacity: 1;
}

/* Google Places autocomplete dropdown — must appear above Bootstrap modals */
.pac-container {
    z-index: 9999 !important;
}

