@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #E1306C; /* Instagram Pink */
  --primary-hover: #C13584; /* Instagram Purple-Pink */
  --secondary-color: #F56040; /* Instagram Orange */
  --bg-color: #fafafa; /* Instagram Light Background */
  --text-primary: #262626; /* Instagram Dark Text */
  --text-secondary: #8e8e8e; /* Instagram Gray Text */
  --card-bg: #ffffff;
  --border-color: #dbdbdb; /* Instagram Border Color */
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn-primary {
  background: var(--ig-gradient);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  color: white;
}

.btn-primary:hover {
  background: var(--ig-gradient);
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(225, 48, 108, 0.3), 0 2px 4px -1px rgba(225, 48, 108, 0.2);
  color: white;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  font-weight: 800;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  margin-left: 1rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, #fafafa 0%, #fdf2f8 100%);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Cards & Features */
.feature-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: #e0e7ff;
  color: var(--primary-color);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* How It Works */
.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Pricing */
.pricing-card {
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card.popular {
  border-color: var(--primary-color);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-top: 0.5rem;
  display: inline-block;
}

.pricing-features li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.pricing-features li i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

/* Footer */
.footer {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 4rem 0 2rem;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

/* Utilities */
.section-padding {
  padding: 6rem 0;
}

.text-gradient {
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dashboard Layout */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-color);
}

.sidebar {
  width: 260px;
  background-color: white;
  border-right: 1px solid var(--border-color);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: all 0.3s ease;
}

.sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
  padding: 1.5rem 1rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-link i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.sidebar-link:hover {
  background-color: #f1f5f9;
  color: var(--text-primary);
}

.sidebar-link.active {
  background-color: var(--primary-color);
  color: white;
}

.sidebar-link.active i {
  color: white;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 70px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.content-body {
  padding: 2rem;
  flex: 1;
}

/* Dashboard Cards */
.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.stat-icon.blue { background-color: #fdf2f8; color: #E1306C; }
.stat-icon.green { background-color: #fff1f2; color: #F56040; }
.stat-icon.orange { background-color: #f5f3ff; color: #833AB4; }

.business-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.2s;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.business-card-img {
  height: 140px;
  object-fit: cover;
  width: 100%;
  background-color: #f1f5f9;
}

.business-card-body {
  padding: 1.5rem;
}

.badge-soft {
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  border-radius: 0.25rem;
}

.badge-soft-primary { background-color: #fdf2f8; color: #E1306C; }
.badge-soft-success { background-color: #fff1f2; color: #F56040; }

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}

/* Public QR Page Styles */
.public-page-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-color);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0,0,0,0.1);
  position: relative;
  padding-bottom: 80px;
}

.public-header {
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&q=80&w=600');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  position: relative;
}

.public-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  margin-bottom: 1rem;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.public-content {
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 1.5rem 1.5rem 0 0;
  margin-top: -1.5rem;
  position: relative;
  z-index: 10;
}

/* Menu Categories */
.menu-categories {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none; /* Firefox */
}

.menu-categories::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.category-pill {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background-color: white;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.category-pill.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Menu Items */
.menu-item {
  display: flex;
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.menu-item-img {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  object-fit: cover;
  margin-right: 1rem;
}

.menu-item-details {
  flex: 1;
}

.menu-item-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.menu-item-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.menu-item-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.floating-action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-around;
  z-index: 100;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s;
}

.action-btn i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.action-btn:hover, .action-btn.active {
  color: var(--primary-color);
}
