/* Root Variables */
:root {
  --emerald: #2ecc71;
  --forest: #27ae60;
  --mint: #a5dfc7;
  --sunshine: #f39c12;
  --sunset: #e67e22;
  --cloud: #ecf0f1;
  --midnight: #2c3e50;
  --slate: #34495e;
  --text: #333;
  --snow: #fff;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #4b62ca 0%, #d36e2b 100%);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(46, 204, 113, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(231, 76, 60, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 40% 80%, rgba(241, 196, 15, 0.1) 0%, transparent 20%);
  z-index: -1;
  pointer-events: none;
}

/* Landing Container */
.landing-container {
  display: flex;
  max-width: 1200px;
  width: 90%;
  margin: 2rem auto;
  background: var(--snow);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

/* Landing Left Section */
.landing-left {
  flex: 1;
  background: linear-gradient(135deg, var(--sunshine) 0%, var(--sunset) 100%);
  color: var(--snow);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-left h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.landing-left p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 15px;
  color: #fff3e6;
  font-size: 2.8rem;
  transition: transform 0.3s ease;
}

.logo:hover i {
  transform: scale(1.1);
}

/* Features List */
.features {
  list-style: none;
}

.features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.features li i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #fff3e6;
  transition: transform 0.3s ease;
}

.features li:hover i {
  transform: scale(1.2);
}

/* Landing Right Section */
.landing-right {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-right h2 {
  font-size: 2rem;
  color: var(--midnight);
  margin-bottom: 10px;
  font-weight: 600;
}

.landing-right p {
  color: var(--slate);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Admin Header (Glassmorphism) */
.admin-header {
  background: rgba(46, 204, 113, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--snow);
  padding: 1.5rem 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--snow), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.admin-header nav ul li a {
  color: var(--snow);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  overflow: hidden;
}

.admin-header nav ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--sunshine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.admin-header nav ul li a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.admin-header nav ul li a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.admin-header nav ul li a.active {
  background: var(--sunshine);
  color: var(--midnight);
  font-weight: 600;
}

/* Admin Content */
.admin-content {
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Welcome Card (Neumorphism) */
.welcome-card {
  background: var(--cloud);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.welcome-card:hover {
  transform: translateY(-5px);
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, var(--emerald), var(--sunshine));
}

.welcome-card h2 {
  color: var(--forest);
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.welcome-card h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--sunset);
  border-radius: 2px;
}

.welcome-card p {
  color: var(--slate);
  margin-bottom: 0.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--snow);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  z-index: -1;
  transition: all 0.6s ease;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card h3 {
  color: var(--slate);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 1rem 0;
  background: linear-gradient(to right, var(--forest), var(--sunset));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.stat-value::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--emerald);
  border-radius: 2px;
}

#restaurants-card {
  border-top: 6px solid var(--emerald);
}

#menu-items-card {
  border-top: 6px solid var(--mint);
}

#orders-card {
  border-top: 6px solid var(--sunshine);
}

#users-card {
  border-top: 6px solid var(--sunset);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--sunshine);
  color: var(--snow);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--sunset);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: var(--slate);
}

.btn-secondary:hover {
  background: var(--midnight);
  transform: translateY(-3px);
}

.btn-pwa {
  background: var(--emerald);
}

.btn-pwa:hover {
  background: var(--forest);
  transform: translateY(-3px);
}

/* PWA Section */
.pwa-section {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  border: 2px dashed var(--emerald);
  border-radius: 10px;
  background-color: #f8fff9;
  transition: background-color 0.3s ease;
}

.pwa-section h3 {
  color: var(--forest);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.pwa-icon {
  font-size: 3rem;
  color: var(--emerald);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.pwa-section:hover .pwa-icon {
  transform: scale(1.1);
}

.pwa-install {
  background: var(--emerald);
  color: var(--snow);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
  display: none;
}

.install-btn {
  background: var(--snow);
  color: var(--emerald);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin: 10px 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.install-btn:hover {
  background: var(--cloud);
  transform: translateY(-2px);
}

/* Pulse Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.stat-card:hover .stat-value {
  animation: pulse 1.5s infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .admin-content {
    padding: 2rem;
  }

  .landing-container {
    margin: 1rem;
  }
}

@media (max-width: 768px) {
  .landing-container {
    flex-direction: column;
  }

  .landing-left,
  .landing-right {
    padding: 40px 20px;
  }

  .landing-left h1 {
    font-size: 2rem;
  }

  .logo {
    font-size: 2rem;
  }

  .logo i {
    font-size: 2.2rem;
  }

  .btn {
    font-size: 1rem;
    padding: 12px 25px;
  }

  .admin-header nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .welcome-card {
    padding: 2rem 1.5rem;
  }
}