/* === 🌈 Root Variables (Theme Colors & Effects) === */
:root {
  --primary: #6366f1;
  --primary-dark: #461984;
  --bg: linear-gradient(to right, #eef2f3, #8e9eab);
  --text: #F26444;
  --white: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.75);
  --shadow: rgba(0, 0, 0, 0.25);
}

/* === 🧱 Base Styling for All Pages === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafb;
}

/* === 🔐 Login Page Layout === */
body.login-page {
  background: var(--bg);
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  display: block; /* 👈 not flex anymore */
  justify-content: center;
}

/* === ➕ Add Product Page (Same as Login) === */
body.add-product-page {
  background: var(--bg);
  background-size: cover;
  height: 100vh;
  display: block;
  align-items: center;
  justify-content: center;  
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding-top: 40px
}

.auth-card {
  width: 360px;
  padding: 40px;
  border-radius: 16px;
  background: var(--card-glass);
  box-shadow: 0 12px 30px var(--shadow);
  backdrop-filter: blur(10px);
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

.auth-card h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
}


.subtext {
  margin-bottom: 20px;
  color: #6b7280;
}

.auth-card input,
.auth-card textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.auth-card textarea {
  resize: vertical;
  min-height: 100px;
}

.auth-card button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.auth-card button:hover {
  background-color: var(--primary-dark);
}

.secondary-btn {
  background-color: #e5e7eb;
  color: var(--text);
}

.secondary-btn:hover {
  background-color: #d1d5db;
}

/* === 🧭 Dashboard Page Styling === */


.dashboard-section {
  background-color:transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 40px;
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
}


.dashboard-title {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 8px;
}

.dashboard-subtext {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 30px;
}
.dashboard-grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dashboard-card {
  background-color: white;
  border-radius: 16px;
  padding: 24px;
  width: 260px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  background-color: #c2c2e1;
}


.role-title {
  font-size: 18px;
  color: #374151;
  margin-bottom: 20px;
}

.role-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.role-btn {
  background-color: var(--primary);
  color: rgb(255, 255, 255);
  padding: 14px 24px;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.role-btn:hover {
  background-color: var(--primary-dark);
}

/* === 🛒 Marketplace & Supplier Pages === */
.marketplace-section,
.dashboard-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px;
}

.section-title {
  font-size: 26px;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 30px;
}
.order-btn {
  margin-top: 12px;
  width: 35%;
  padding: 12px;
  border: none;
  border-radius: 17px;
  background-color: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.order-btn:hover {
  background-color: var(--primary-dark);
}
/* === ✅ Confirm Order Button (Supplier) === */
.confirm-btn {
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  font-size: 15px;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.confirm-btn:hover {
  background-color: #059669;
}

.confirm-btn:disabled {
  background-color: #a7f3d0;
  cursor: not-allowed;
}



/* === 📦 Horizontal Product Layout === */
/* === 🧱 Product Grid Layout (4 per row, responsive) === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 30px;
  padding-bottom: 40px;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.07);
}

.product-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.product-card p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.product-card .price {
  color: #6366f1;
  font-weight: bold;
  font-size: 14px;
  margin: 8px 0;
}

.product-card button {
  background-color: #6366f1;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product-card button:hover {
  background-color: #4f46e5;
}



/* === 🧭 Top Navigation Bar === */
.navbar {
  position: fixed;         /* ✅ Fix it to the top */
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  opacity: 0.7;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: right;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 100;
}
.logo-container {
  text-align: center;
  margin-top: 20px;
}

.animated-logo {
  height: 60px;
  transform: scale(1.4);
  opacity: 0;
  animation: slideInLogo 1s ease-out forwards;
}

.animated-subtext {
  font-size: 90%;
  opacity: 0;
  animation: fadeInText 1.5s ease-in forwards;
  animation-delay: 0.8s;
}

@keyframes slideInLogo {
  from {
    transform: scale(0.8) translateY(-30px);
    opacity: 0;
  }
  to {
    transform: scale(1.4) translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInText {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}



.brand {
  font-weight: bold;
  font-size: 22px;
  color: var(--primary);
  text-decoration: none;
}
.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}
.nav-icon {
  font-size: 25px;          /* ✅ bigger size */
  margin-left: 15px;
  color: #544fe3;           /* slightly bolder */
  cursor: pointer;
  transition: color 0.3s ease;
}

#nav-right {
  flex: 0.15; /* ✅ stays tight on the right */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-left: auto; /* ✅ force push to right */
}

.nav-right .nav-icon:hover {
  color:  #393cbd;
}

/* === 🎬 Page Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
