:root {
  --primary-color: #1e40af;
  --secondary-color: #3b82f6;
  --accent-color: #60a5fa;
  --light-blue: #eff6ff;
  --dark-blue: #1e3a8a;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Navbar Styles */
.navbar-custom {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

/* INDEX PAGE */
/* Hero Section Styles */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 80px 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-logo {
  max-width: 450px;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-hero-primary {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
}

.btn-hero-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-hero-outline:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Categories Section */
.categories-section {
  padding: 50px 0;
  background: #f8fafc;
}

.category-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.category-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 5px;
}

.category-count {
  color: #64748b;
  font-size: 0.9rem;
}

/* Featured Section */
.featured-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-blue);
}

/* Product Cards */
.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 250px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image i {
  font-size: 4rem;
  color: var(--accent-color);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark-blue);
}

.product-shop {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.stars {
  color: #fbbf24;
}

.rating-text {
  color: #64748b;
  font-size: 0.9rem;
}

.quick-actions {
  display: flex;
  gap: 10px;
}

.btn-quick {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary-quick {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.btn-primary-quick:hover {
  background: var(--dark-blue);
  color: white;
}

.btn-outline-quick {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline-quick:hover {
  background: var(--primary-color);
  color: white;
}

/* Shops Section */
.shops-section {
  padding: 60px 0;
  background: var(--light-blue);
}

.shop-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.shop-avatar {
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 2rem;
  color: white;
}

.shop-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark-blue);
}

.shop-location {
  color: #64748b;
  margin-bottom: 10px;
}

.shop-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 15px;
}

.specialty-tag {
  background: var(--light-blue);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* CTA Section */
.cta-section {
  background: var(--primary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--dark-blue);
  color: white;
  padding: 40px 0 20px 0;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero {
    width: 100%;
    max-width: 250px;
  }

  .quick-actions {
    flex-direction: column;
  }

  .hero-logo {
    max-width: 150px;
  }
}
.index-sections {
  background: var(--light-blue);
  color: var(--dark-blue);
  padding: 60px 0;
}
/* REGISTRATION */
/* Registration Form Styles */

.registration-wrapper {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.registration-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.registration-card .card-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 2rem;
  text-align: center;
  border: none;
}

.registration-card .card-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.registration-card .card-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.registration-card .card-body {
  padding: 2rem;
}

/* User Type Selector */
.user-type-selector {
  margin-bottom: 1rem;
}

.user-type-btn {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.user-type-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  border-color: var(--secondary-color);
}

.user-type-btn i {
  font-size: 2rem;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.btn-check:checked + .user-type-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white !important;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

.btn-check:checked + .user-type-btn i {
  color: white;
}

.btn-check:checked + .user-type-btn small {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Form Sections */
.form-section {
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 1.5rem;
  background: #f8fafc;
  margin-bottom: 1.5rem;
}

.section-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-blue);
}

.section-description {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Input Groups and Form Controls */
.input-group-text {
  background: var(--light-blue);
  border-color: #e2e8f0;
  color: var(--primary-color);
  font-weight: 500;
}

.form-control,
.form-select {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
  background: rgba(239, 246, 255, 0.5);
}

.input-group .form-control:focus {
  border-color: var(--secondary-color);
}

.input-group:focus-within .input-group-text {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
  color: white;
}

/* Password Toggle Buttons */
.input-group .btn-outline-secondary {
  border-color: #e2e8f0;
  color: var(--primary-color);
}

.input-group .btn-outline-secondary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

/* File Upload Area */
.file-upload-area {
  border: 3px dashed #cbd5e1;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background: #f8fafc;
  position: relative;
}

.file-upload-area:hover {
  border-color: var(--secondary-color);
  background: var(--light-blue);
}

.file-upload-label {
  cursor: pointer;
  display: block;
  width: 100%;
  margin: 0;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.file-upload-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.file-upload-text {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
}

.file-upload-area.has-file {
  border-color: #10b981;
  background: #ecfdf5;
}

.file-upload-area.has-file .file-upload-icon {
  color: #10b981;
}

.file-upload-area.has-file .file-upload-text {
  color: #065f46;
  font-weight: 600;
}

/* Error Messages */
.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
  font-weight: 500;
}

.error-message:before {
  content: "⚠ ";
  font-weight: bold;
}

.form-control.error,
.form-select.error {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

.form-control.error:focus,
.form-select.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.1);
}

/* Success and Error Alerts */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-left: 4px solid #065f46;
}

.alert-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-left: 4px solid #991b1b;
}

.alert-success:before {
  content: "✓ ";
  font-weight: bold;
  margin-right: 0.5rem;
}

.alert-error:before {
  content: "✕ ";
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Submit Button */
#registerBtn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#registerBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

#registerBtn:active {
  transform: translateY(0);
}

#registerBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#registerBtn .btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

/* Password Requirements */
.password-requirements {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--secondary-color);
}

/* Form Check (Terms) */
.form-check {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.form-check:hover {
  background: var(--light-blue);
  border-color: var(--secondary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

.form-check-label {
  font-weight: 500;
  line-height: 1.4;
}

/* Links */
.registration-card a {
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.registration-card a:hover {
  color: var(--secondary-color);
  text-decoration: underline !important;
}
/* Loading spinner fixes */
#registerBtn {
  position: relative;
  min-width: 200px;
  overflow: hidden;
}

.btn-text,
.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Ensure spinner is visible */
#registerBtn:disabled {
  opacity: 1;
}
/* Responsive Design */
@media (max-width: 768px) {
  .registration-wrapper {
    padding: 20px 0;
  }

  .registration-card {
    margin: 0 15px;
    border-radius: 15px;
  }

  .registration-card .card-header {
    padding: 1.5rem;
  }

  .registration-card .card-title {
    font-size: 1.5rem;
  }

  .registration-card .card-body {
    padding: 1.5rem;
  }

  .user-type-btn {
    height: 100px;
    margin-bottom: 1rem;
  }

  .user-type-btn i {
    font-size: 1.5rem;
  }

  .form-section {
    padding: 1rem;
  }

  .file-upload-area {
    padding: 1.5rem;
  }

  .file-upload-icon {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .registration-card .card-title {
    font-size: 1.3rem;
  }

  .registration-card .card-subtitle {
    font-size: 1rem;
  }

  .user-type-btn {
    height: 80px;
  }

  .section-title {
    font-size: 1.1rem;
  }
}

/* Animation for form sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section {
  animation: fadeInUp 0.5s ease-out;
}

#business_section {
  animation-duration: 0.3s;
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
}

.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}
.google-signin-container {
  margin-bottom: 1rem;
}
.divider span {
  background: white;
  padding: 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.btn-google {
  background: white;
  border: 1px solid #dadce0;
  color: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #c6c9cc;
  color: #3c4043;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google img {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}
