/* ========================================
   HUZURDA.COM — Modern Design System
   ======================================== */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --text: #1a202c;
  --text-muted: #5a6a85;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 2px 12px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

/* --- Base --- */
html {
  font-size: 15px;
  scroll-behavior: smooth;
}
@media (min-width: 768px) { html { font-size: 16px; } }

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding-bottom: 60px;
  -webkit-font-smoothing: antialiased;
}

/* --- Full-width fluid container with comfortable max-width --- */
.site-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

/* --- Navbar --- */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 !important;
}
.site-nav .navbar-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary) !important;
  letter-spacing: -.5px;
  text-decoration: none;
}
.site-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  padding: 6px 12px !important;
}
.site-nav .nav-link:hover { color: var(--primary) !important; background: rgba(99,102,241,.07); }

.nav-btn-register {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 7px 20px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(99,102,241,.35) !important;
  transition: var(--transition) !important;
}
.site-nav .nav-btn-register,
.site-nav .nav-btn-register:hover,
.site-nav .nav-btn-register:focus {
  color: #fff !important;
}
.nav-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,.45) !important;
  color: #fff !important;
}

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  animation: dropIn .18s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-item:hover { background: rgba(99,102,241,.08); color: var(--primary); }
.dropdown-item i { width: 18px; }

/* --- Cards --- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: var(--transition);
}
.card-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0 !important;
  padding: 16px 24px;
  font-weight: 700;
}
.card-body { padding: 24px; }

/* --- Buttons --- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #3730a3);
  box-shadow: 0 6px 20px rgba(99,102,241,.45);
  transform: translateY(-1px);
  color: #fff;
}
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.3);
}
.btn-success:hover { transform: translateY(-1px); color: #fff !important; }
.btn-primary { color: #fff !important; }
.btn-primary:hover { color: #fff !important; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff !important; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff !important; }
.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-secondary { border: 2px solid var(--border); color: var(--text-muted); background: transparent; }
.btn-outline-secondary:hover { background: var(--border); color: var(--text); }
.btn-secondary { background: var(--border); color: var(--text-muted); }
.btn-secondary:hover { background: #cbd5e1; color: var(--text); }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 5px 12px; font-size: .82rem; border-radius: 8px; }

/* --- Form Controls --- */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .95rem;
  transition: var(--transition);
  background: var(--surface);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  outline: none;
}
.form-label {
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
  margin-bottom: 6px;
}
.form-text, .text-muted { color: var(--text-muted) !important; }

/* --- Badges --- */
.badge {
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .75rem;
  letter-spacing: .3px;
}
.badge-main-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #1a1a2e;
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(249,202,36,.4);
  letter-spacing: .3px;
}

/* --- Alerts --- */
.alert {
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  border-left: 4px solid;
  padding: 14px 18px;
}
.alert-success { background: #ecfdf5; color: #065f46; border-left-color: #10b981; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-left-color: #ef4444; }
.alert-info    { background: #eff6ff; color: #1e40af; border-left-color: #3b82f6; }
.alert-warning { background: #fffbeb; color: #92400e; border-left-color: #f59e0b; }

/* --- Tables --- */
.table {
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  background: var(--surface2);
  color: var(--text-muted);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
}
.table tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
}
.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: rgba(99,102,241,.04); }

/* --- Page Headers --- */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
}
.page-header h2, .page-header h1 {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  margin: 0;
}
.page-header p { color: var(--text-muted); margin: 4px 0 0; font-size: .95rem; }

/* --- Auth Pages --- */
.auth-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
  overflow: hidden;
}
.auth-card-wide { max-width: 580px; }
.auth-header {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  padding: 32px 32px 28px;
  text-align: center;
  color: #fff;
}
.auth-header .auth-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  color: #fff;
}
.auth-header h2 {
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: #fff;
}
.auth-header p { opacity: .85; margin: 0; font-size: .88rem; color: #fff; }
.auth-body { padding: 28px 32px; background: var(--surface); }
.auth-footer {
  padding: 16px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  font-size: .88rem;
  color: var(--text-muted);
}
.auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* --- Profile Sidebar --- */
.profile-sidebar .card { border-radius: var(--radius-lg) !important; }
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: contain;
  border: 2px solid var(--border);
  background: var(--surface2);
}
.profile-avatar-placeholder {
  font-size: 4.5rem;
  color: var(--text-light);
  line-height: 1;
}
.sidebar-nav .list-group-item {
  border: none;
  border-radius: var(--radius-sm) !important;
  margin: 2px 8px;
  padding: 10px 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.sidebar-nav .list-group-item:hover { background: rgba(99,102,241,.08); color: var(--primary); }
.sidebar-nav .list-group-item a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-nav .list-group-item.active { background: rgba(99,102,241,.1); color: var(--primary); font-weight: 600; }

/* --- Stat Cards --- */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon-primary { background: rgba(99,102,241,.12); color: var(--primary); }
.stat-icon-success { background: rgba(16,185,129,.12); color: var(--success); }
.stat-icon-warning { background: rgba(245,158,11,.12); color: var(--warning); }
.stat-icon-accent  { background: rgba(6,182,212,.12);  color: var(--accent); }

/* --- Color Swatches (EditCompanyProfile) --- */
.logo-bg-option {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 2px solid transparent;
}
.logo-bg-option:hover, .logo-bg-option.selected {
  border-color: var(--primary);
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.card-color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}
.card-color-swatch:hover, .card-color-swatch.selected {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(99,102,241,.3), var(--shadow);
}

/* --- Sub-user cards --- */
.user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.user-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
  margin-top: auto;
}
.site-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* --- Landing Page --- */
.hero-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
  margin: -1rem clamp(-16px,-4vw,-48px) 0;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #fff;
}
.hero-title .gradient-text {
  color: #a5b4fc;
}
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: #fff;
  color: #4338ca !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  transition: var(--transition);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  font-size: .95rem;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.btn-hero-secondary {
  background: rgba(255,255,255,.14);
  color: #fff !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.28);
  transition: var(--transition);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-card h5 { color: var(--text); font-weight: 700; }
.feature-card p { color: var(--text-muted); }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-icon-1 { background: rgba(99,102,241,.1); color: var(--primary); }
.feature-icon-2 { background: rgba(16,185,129,.1); color: var(--success); }
.feature-icon-3 { background: rgba(245,158,11,.1); color: var(--warning); }
.feature-icon-4 { background: rgba(6,182,212,.1); color: var(--accent); }

/* --- Admin --- */
.admin-header {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.admin-header h4, .admin-header h5, .admin-header h6,
.admin-header p, .admin-header small {
  color: #fff !important;
}
.admin-search {
  position: relative;
}
.admin-search input {
  padding-left: 40px;
  background: rgba(255,255,255,.9);
  border: none;
  color: #1a202c;
}
.admin-search input::placeholder { color: #64748b; }
.admin-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 2;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .4s ease both; }
.fade-in-up-1 { animation-delay: .08s; }
.fade-in-up-2 { animation-delay: .16s; }
.fade-in-up-3 { animation-delay: .24s; }
.fade-in-up-4 { animation-delay: .32s; }

/* --- Divider --- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* --- Responsive --- */
@media (max-width: 576px) {
  .auth-body { padding: 20px 18px; }
  .auth-header { padding: 24px 18px 20px; }
  .card-body { padding: 16px; }
  .bcard-scene { width: 100% !important; max-width: 320px; }
  .hero-section { padding: 60px 16px 50px; }
}
@media (max-width: 768px) {
  .page-header { flex-direction: column !important; align-items: flex-start !important; gap: 12px; }
  .bcard-scene { width: 340px; height: 200px; }
}
/* Large screen comfort zone */
@media (min-width: 1200px) {
  .auth-wrapper { padding-top: 60px; }
}

/* Password strength */
.password-strength { height: 4px; border-radius: 4px; transition: var(--transition); }
.strength-weak   { background: var(--danger);  width: 30%; }
.strength-medium { background: var(--warning); width: 65%; }
.strength-strong { background: var(--success); width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }