/* iHub Custom Theme & Stylesheet */
:root {
  --ihub-primary: #0D1B2A;
  --ihub-primary-light: #1B263B;
  --ihub-secondary: #415A77;
  --ihub-accent: #10B981;
  --ihub-accent-dark: #059669;
  --ihub-gold: #F59E0B;
  --ihub-sky: #0EA5E9;
  --ihub-bg-light: #F8FAFC;
  --ihub-card-border: #E2E8F0;
  --ihub-text-main: #0F172A;
  --ihub-text-muted: #64748B;
  --ihub-radius: 12px;
  --ihub-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --ihub-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --ihub-shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
}

/* Default Latin Typography: Google Sans for English & French */
body {
  font-family: 'Google Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ihub-text-main);
  background-color: var(--ihub-bg-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Arabic Typography: font-family: 'Noto Kufi Arabic', sans-serif */
html[dir="rtl"],
html[lang="ar"],
html[dir="rtl"] body,
html[lang="ar"] body,
html[dir="rtl"] input,
html[dir="rtl"] button,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] .dropdown-menu,
html[lang="ar"] input,
html[lang="ar"] button,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[lang="ar"] .dropdown-menu,
html[dir="rtl"] .display-4,
html[dir="rtl"] .display-6,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[lang="ar"] .display-4,
html[lang="ar"] .display-6,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
  font-family: 'Noto Kufi Arabic', sans-serif !important;
  letter-spacing: 0 !important;
}

main {
  flex: 1 0 auto;
}

/* Navbar */
.navbar-ihub {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 0;
  transition: all 0.3s ease;
}

.navbar-brand-ihub {
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.5px;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand-ihub .badge-dot {
  width: 9px;
  height: 9px;
  background: var(--ihub-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--ihub-accent);
}

.nav-link-ihub {
  color: #CBD5E1 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link-ihub:hover,
.nav-link-ihub.active {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn-ihub-primary {
  background: var(--ihub-accent);
  border: none;
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-ihub-primary:hover {
  background: var(--ihub-accent-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-ihub-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

/* Hero Section */
.hero-ihub {
  background: linear-gradient(135deg, #0D1B2A 0%, #1B263B 60%, #0F2A4A 100%);
  color: #FFFFFF;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-ihub::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(13, 27, 42, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Service Cards */
.card-service {
  background: #FFFFFF;
  border: 1px solid var(--ihub-card-border);
  border-radius: var(--ihub-radius);
  padding: 2rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--ihub-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--ihub-shadow);
  border-color: rgba(16, 185, 129, 0.4);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.card-service:hover .service-icon-box {
  transform: scale(1.1);
}

/* Autocomplete Container */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: var(--ihub-shadow);
  margin-top: 4px;
  display: none;
}

.autocomplete-item {
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: #F0FDF4;
  color: var(--ihub-accent-dark);
  font-weight: 600;
}

.autocomplete-hint {
  font-size: 0.8rem;
  color: var(--ihub-text-muted);
  margin-top: 0.35rem;
}

/* Multi-step progress bar */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #E2E8F0;
  z-index: 1;
  transform: translateY(-50%);
}

.wizard-step {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ihub-text-muted);
  border: 3px solid #E2E8F0;
  transition: all 0.3s ease;
}

.wizard-step.active {
  border-color: var(--ihub-accent);
  color: var(--ihub-accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.wizard-step.completed {
  background: var(--ihub-accent);
  border-color: var(--ihub-accent);
  color: #FFFFFF;
}

/* Modification radio cards */
.mod-option-card {
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #FFFFFF;
  margin-bottom: 0.85rem;
  display: block;
}

.mod-option-card:hover {
  border-color: var(--ihub-accent);
  background: #F8FAFC;
}

.btn-check-modification input[type="radio"]:checked + .mod-option-card,
.mod-option-card.selected {
  border-color: var(--ihub-accent);
  background: #F0FDF4;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* Dashboard styles */
.dashboard-sidebar {
  background: #FFFFFF;
  border-radius: var(--ihub-radius);
  border: 1px solid var(--ihub-card-border);
  padding: 1.5rem 1.25rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--ihub-text-main);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0.35rem;
  transition: all 0.2s ease;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background: #F0FDF4;
  color: var(--ihub-accent-dark);
  font-weight: 600;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--ihub-card-border);
  border-radius: var(--ihub-radius);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Status Badges */
.badge-status-pending {
  background-color: #FEF3C7;
  color: #92400E;
  font-weight: 600;
  border: 1px solid #FDE68A;
}

.badge-status-in_review {
  background-color: #E0F2FE;
  color: #0369A1;
  font-weight: 600;
  border: 1px solid #BAE6FD;
}

.badge-status-processing {
  background-color: #EDE9FE;
  color: #6D28D9;
  font-weight: 600;
  border: 1px solid #DDD6FE;
}

.badge-status-completed {
  background-color: #D1FAE5;
  color: #065F46;
  font-weight: 600;
  border: 1px solid #A7F3D0;
}

.badge-status-cancelled {
  background-color: #FEE2E2;
  color: #991B1B;
  font-weight: 600;
  border: 1px solid #FECACA;
}

/* Footer */
.footer-ihub {
  background: #08111D;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-ihub a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-ihub a:hover {
  color: #FFFFFF;
}

.footer-ihub h5 {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: var(--ihub-radius);
  border: 1px solid var(--ihub-card-border);
  box-shadow: var(--ihub-shadow-lg);
  padding: 1.25rem 1.5rem;
  z-index: 1090;
  display: none;
}

/* Service Gallery Minimalist Tab Cards */
.service-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background-color: #F8FAFC;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  list-style: none;
}

.service-tab-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #334155 !important;
  background: #FFFFFF;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.service-tab-card i {
  font-size: 0.95rem;
  color: #64748B;
  transition: color 0.2s ease;
}

.service-tab-card:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.06);
}

.service-tab-card:hover i {
  color: #10B981;
}

.service-tab-card.active {
  background: #0D1B2A !important;
  border-color: #0D1B2A !important;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(13, 27, 42, 0.2);
  transform: translateY(-1px);
}

.service-tab-card.active i {
  color: #10B981 !important;
}

/* Refined Minimalist Form Placeholders */
input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.form-select::placeholder {
  font-size: 0.84rem !important;
  color: #94A3B8 !important; /* Muted Slate Grey */
  opacity: 0.85 !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
  font-size: 0.84rem !important;
  color: #94A3B8 !important;
  opacity: 0.85 !important;
  font-weight: 400 !important;
}

input:-moz-placeholder,
textarea:-moz-placeholder,
.form-control:-moz-placeholder {
  font-size: 0.84rem !important;
  color: #94A3B8 !important;
  opacity: 0.85 !important;
  font-weight: 400 !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder {
  font-size: 0.84rem !important;
  color: #94A3B8 !important;
  opacity: 0.85 !important;
  font-weight: 400 !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
.form-control:-ms-input-placeholder {
  font-size: 0.84rem !important;
  color: #94A3B8 !important;
  opacity: 0.85 !important;
  font-weight: 400 !important;
}
