/* ===== COMPANY EDIT PAGE ===== */

/* ---- Navbar: sticky + standard nav link + logo ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
  padding: 4px 2px;
}
.nav-link:hover { color: var(--text); }

/* ---- User dropdown ---- */
.user-dropdown { position: relative; }

.user-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.18s;
}
.user-dropdown-trigger:hover { background: #f5f5f5; }

.user-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff6b5b);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-name-sm {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.user-dropdown-trigger svg { color: var(--muted); transition: transform 0.2s; }
.user-dropdown.open .user-dropdown-trigger svg { transform: rotate(180deg); }

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.user-dropdown.open .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.user-dropdown-item:hover  { background: #f5f5f5; }
.user-dropdown-item.active { background: rgba(232,68,58,0.06); color: var(--accent); font-weight: 600; }
.user-dropdown-item svg    { color: var(--muted); flex-shrink: 0; }

.user-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.user-dropdown-logout  { color: var(--accent) !important; }
.user-dropdown-logout svg { color: var(--accent) !important; }

/* ---- Mobile menu overrides ---- */
.mob-menu { z-index: 199; }
.mob-divider { height: 1px; background: var(--border); margin: 8px 16px; }

.ce-header {
  padding: 32px 0 0;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}

.ce-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
}

.ce-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ce-back {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ce-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ce-header-left h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.ce-header-left span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Steps */
.ce-steps {
  display: flex;
  gap: 0;
  padding-top: 8px;
  overflow-x: auto;
}

.ce-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
}

.ce-step:hover { color: var(--text); }

.ce-step.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.ce-step.completed { color: #2ea043; }

.ce-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ce-step.active .ce-step-num {
  background: var(--accent);
  color: #fff;
}

.ce-step.completed .ce-step-num {
  background: #2ea043;
  color: #fff;
}

/* Layout */
.ce-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 36px 0 80px;
}

/* Step content */
.ce-step-content { display: none; }
.ce-step-content.active { display: block; }

/* Sections */
.ce-section {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 24px;
}

.ce-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ce-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232,68,58,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.ce-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.ce-section h2 span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

/* Form fields */
.ce-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ce-row.full { grid-template-columns: 1fr; }
.ce-row.three { grid-template-columns: 1fr 1fr 1fr; }

.ce-field { margin-bottom: 0; }

.ce-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.ce-field label .required { color: var(--accent); }

.ce-field input,
.ce-field select,
.ce-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ce-field input:focus,
.ce-field select:focus,
.ce-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,68,58,0.1);
}

.ce-field textarea {
  resize: vertical;
  line-height: 1.7;
}

.ce-field input::placeholder,
.ce-field textarea::placeholder {
  color: #aaa;
  font-weight: 400;
}

.ce-field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Logo upload */
.ce-logo-upload {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.ce-logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  border: 2px dashed var(--border);
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.ce-logo-preview:hover {
  border-color: var(--accent);
}

.ce-logo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.ce-logo-preview:hover .ce-logo-overlay { opacity: 1; }

.ce-logo-info p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.ce-logo-info span {
  font-size: 0.82rem;
  color: var(--muted);
}

.ce-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}

.ce-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Cover photo upload */
.ce-cover-upload {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  border: 2px dashed var(--border);
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.ce-cover-upload:hover {
  border-color: var(--accent);
  background: rgba(232,68,58,0.03);
  color: var(--accent);
}

.ce-cover-upload span {
  font-size: 0.88rem;
  font-weight: 600;
}

.ce-cover-upload small {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Photo gallery upload */
.ce-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.ce-photo-slot {
  aspect-ratio: 4/3;
  border-radius: 12px;
  border: 2px dashed var(--border);
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted);
}

.ce-photo-slot:hover {
  border-color: var(--accent);
  background: rgba(232,68,58,0.03);
  color: var(--accent);
}

.ce-photo-slot span {
  font-size: 0.78rem;
  font-weight: 500;
}

/* Social links */
.ce-social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ce-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.ce-social-item .ce-field { flex: 1; margin-bottom: 0; }

/* Divider */
.ce-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* Char counter */
.ce-char-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.ce-char-count {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Step nav buttons */
.ce-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.ce-step-nav-right {
  display: flex;
  gap: 10px;
}

/* ===== SIDEBAR ===== */
.ce-sidebar {}

.ce-sidebar-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
}

.ce-sidebar-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

/* Completeness bar */
.ce-complete-bar {
  height: 6px;
  background: #f0f0f2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ce-complete-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff7b6b);
  border-radius: 10px;
  width: 30%;
  transition: width 0.5s ease;
}

.ce-complete-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.ce-complete-label strong { color: var(--accent); }

.ce-complete-items {}

.ce-complete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.ce-complete-item:last-child { border-bottom: none; }

.ce-complete-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ce-complete-check.done {
  background: rgba(46,160,67,0.12);
  color: #2ea043;
}

.ce-complete-check.todo {
  background: #f0f0f2;
  color: #bbb;
}

/* Tips */
.ce-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(232,68,58,0.05);
  margin-bottom: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

.ce-tip:last-child { margin-bottom: 0; }

.ce-tip-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Preview link */
.ce-preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.ce-preview-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .ce-layout {
    grid-template-columns: 1fr;
  }

  .ce-sidebar {
    order: -1;
  }

  .ce-sidebar-card:not(:first-child) {
    display: none;
  }
}

@media (max-width: 768px) {
  .ce-header {
    padding-top: 80px;
  }

  .ce-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
  }

  .ce-header-left {
    gap: 12px;
  }

  .ce-header-left h1 {
    font-size: 1.2rem;
  }

  .ce-steps {
    gap: 0;
  }

  .ce-step {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .ce-layout {
    padding: 20px 0 60px;
    gap: 16px;
  }

  .ce-section {
    padding: 20px;
    border-radius: 14px;
  }

  .ce-row {
    grid-template-columns: 1fr;
  }

  .ce-row.three {
    grid-template-columns: 1fr;
  }

  .ce-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .ce-step {
    padding: 10px 12px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .ce-section {
    padding: 16px;
  }

  .ce-logo-upload {
    flex-direction: column;
    align-items: flex-start;
  }

  .ce-photo-grid {
    grid-template-columns: 1fr;
  }
}
