/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid #e8eaed;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid #e8eaed;
}

.sidebar-logo img {
  height: 32px;
}

.sidebar-nav {
  padding: 8px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  color: #5f6368;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: #f8f9fa;
  color: #1a1a2e;
}

.nav-item.active {
  background: #fff8e1;
  color: #d4a017;
  border-left-color: #d4a017;
  font-weight: 600;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.badge-new {
  background: #ef5350;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: auto;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #9aa0a6;
  padding: 20px 24px 8px;
  letter-spacing: 0.5px;
}

/* ========== TOP BAR ========== */
.topbar {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 99;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6368;
  font-size: 13px;
}

.topbar-info i {
  color: #d4a017;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-status {
  font-size: 11px;
  color: #34a853;
  font-weight: 600;
}

.user-name {
  font-size: 13px;
  color: #1a1a2e;
  font-weight: 500;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  margin-left: 240px;
  margin-top: 52px;
  padding: 28px 40px 60px;
  flex: 1;
  max-width: 900px;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f6368;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.back-link:hover {
  color: #1a1a2e;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
}

/* ========== FORM CARD ========== */
.form-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8eaed;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ========== FORM ELEMENTS ========== */
.form-section {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #dadce0;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #d4a017;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.form-input::placeholder {
  color: #9aa0a6;
}

.form-textarea {
  width: 100%;
  border: 1.5px solid #dadce0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
  resize: vertical;
  min-height: 100px;
}

.form-textarea:focus {
  border-color: #d4a017;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.form-textarea::placeholder {
  color: #9aa0a6;
}

/* ========== FORM ROW ========== */
.form-row {
  display: flex;
  gap: 20px;
}

.form-col {
  flex: 1;
  min-width: 0;
}

/* ========== INPUT WITH ICON ========== */
.input-icon {
  position: relative;
}

.input-icon > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0a6;
  font-size: 14px;
  pointer-events: none;
}

.input-icon .form-input.has-icon {
  padding-left: 40px;
}

/* ========== TOGGLE BUTTONS ========== */
.toggle-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-group.wide {
  gap: 10px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1.5px solid #dadce0;
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  color: #5f6368;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  user-select: none;
}

.toggle-btn:hover {
  border-color: #bdc1c6;
  background: #f8f9fa;
}

.toggle-btn.active {
  border-color: #d4a017;
  background: #fff8e1;
  color: #1a1a2e;
  box-shadow: 0 0 0 1px #d4a017;
}

.toggle-btn i {
  font-size: 15px;
}

.toggle-btn .toggle-check {
  color: #d4a017;
  font-size: 16px;
  margin-left: 4px;
}

.toggle-btn:not(.active) .toggle-check {
  display: none;
}

.toggle-sm {
  padding: 10px 16px;
  font-size: 13px;
}

/* ========== EQUIP CARDS ========== */
.card-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.equip-card {
  cursor: pointer;
  user-select: none;
}

.equip-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1.5px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  transition: all 0.18s ease;
  min-width: 110px;
  justify-content: center;
}

.equip-card-inner i {
  font-size: 20px;
  color: #d4a017;
}

.equip-card-inner span {
  font-size: 13.5px;
  font-weight: 500;
  color: #5f6368;
}

.equip-card:hover .equip-card-inner {
  border-color: #bdc1c6;
  background: #f8f9fa;
}

.equip-card.active .equip-card-inner {
  border-color: #d4a017;
  background: #fff8e1;
  box-shadow: 0 0 0 1px #d4a017;
}

.equip-card.active .equip-card-inner span {
  color: #1a1a2e;
  font-weight: 600;
}

/* ========== UPLOAD AREA ========== */
.upload-area {
  margin-top: 12px;
  border: 2px dashed #dadce0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}

.upload-area.dragover {
  border-color: #d4a017;
  background: #fffde7;
}

.upload-area input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.upload-label i {
  font-size: 32px;
  color: #d4a017;
}

.upload-label span {
  font-size: 13px;
  color: #9aa0a6;
}

/* ========== INFO BANNER ========== */
.info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #2e7d32;
}

.info-banner i {
  font-size: 18px;
  flex-shrink: 0;
}

/* ========== CHECKBOX ========== */
.checkbox-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: #5f6368;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #1a73e8;
  border-color: #1a73e8;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ========== BUTTONS ========== */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #e8eaed;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #d4a017;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.25);
}

.btn-primary:hover {
  background: #b8860b;
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #fff;
  color: #5f6368;
  border: 1.5px solid #dadce0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #bdc1c6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  .main-content {
    margin-left: 200px;
    padding: 24px 28px 60px;
  }
  .topbar {
    left: 200px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .topbar {
    left: 0;
  }
  .main-content {
    margin-left: 0;
    padding: 20px 16px 60px;
  }
  .form-card {
    padding: 20px;
    border-radius: 10px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .toggle-group {
    gap: 8px;
  }
  .toggle-btn {
    padding: 10px 14px;
    font-size: 12.5px;
  }
  .card-group {
    gap: 8px;
  }
  .equip-card-inner {
    padding: 10px 14px;
    min-width: 90px;
  }
  .page-title {
    font-size: 22px;
  }
  .checkbox-group {
    flex-direction: column;
    gap: 12px;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .toggle-group {
    flex-direction: column;
  }
  .toggle-btn {
    width: 100%;
    justify-content: center;
  }
  .card-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .equip-card-inner {
    min-width: unset;
  }
  .topbar-info {
    display: none;
  }
}
