:root {
  --primary: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1, #a855f7);
  --accent: #06d6a0;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: #334155;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Poppins','Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  
}
.modal-logo{
  width: 80px;
}
.logo{
  width:120px;
}
.logo-img{
  width: 100%
}

.logo h1 {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}



.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--accent);
}
/* ================================================== */
/* ================= SAFETY NOTICE ================= */

/* ================================================== */
.safety-notice {
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid var(--warning);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  display: none;
}

.safety-notice.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.safety-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--warning);
}

.safety-tips {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.safety-tips ul {
  margin-left: 20px;
  margin-top: 8px;
}


/* ================= CAMPUS SELECTOR ================= */
.campus-selector {
  margin-bottom: 20px;
}

.campus-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.campus-btn {
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.campus-btn:hover {
  border-color: var(--primary);
}

.campus-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: white;
}



/* ================= CREATE LISTING CONTAINER ================= */
.create-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

.create-header {
  text-align: center;
  margin-bottom: 30px;
}

.create-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.create-header p {
  color: var(--text-secondary);
}


/* Additional CSS for new elements */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.category-card {
  text-align: center;
  padding: 20px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.category-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.category-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.form-hint {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 6px;
}

.category-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
}

.category-badge.safety {
  background: rgba(6, 214, 160, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
}

/* ============================================== */
/* ================= FORM STEPS ================= */
/* ============================================== */

.form-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.form-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.step-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.step-indicator.active .step-number {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.step-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

.step-indicator.active .step-label {
  color: white;
  font-weight: 500;
}

/* ================= FORM SECTIONS ================= */
.form-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  display: none;
}

.form-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

/* ================= FORM ELEMENTS ================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.required::after {
  content: '*';
  color: #ef476f;
  margin-left: 2px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

/* ================= PRICE INPUT ================= */
.price-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.price-input {
  flex: 1;
}

/* ================= IMAGE UPLOAD ================= */
.image-upload {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.image-upload:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.image-upload i {
  font-size: 48px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.image-upload p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.image-upload small {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

/* ================= MEETUP LOCATIONS ================= */
.location-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.location-option {
  padding: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.location-option:hover {
  border-color: var(--primary);
}

.location-option.selected {
  border-color: var(--accent);
  background: rgba(6, 214, 160, 0.1);
}

.location-option i {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

/* ================= FORM NAVIGATION ================= */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.nav-btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-next, .btn-submit {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.btn-next:hover, .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ================= PREVIEW CARD ================= */
.listing-preview {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 300px;
  margin: 0 auto 30px;
}

.preview-image {
  height: 160px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.preview-details {
  padding: 20px;
}

.preview-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.preview-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.preview-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .create-container {
    padding: 16px;
  }
  
  .form-section {
    padding: 20px;
  }
  
  .form-steps {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .form-steps::before {
    display: none;
  }
  
  .nav-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .location-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-btn {
    width: 100%;
    justify-content: center;
  }
}