/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /* Enhancing user experience */
  font-family: 'Poppins', sans-serif; /* Default font family */
  font-size: 16px; /* Default font size */
}

body {
  line-height: 1.6;
  background-color: #f4f4f4; /* Adding a light background color for better readability */
  color: #333; /* Adding a consistent body text color for readability */
}

/* Header */
header {
  background-color: #333;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  position: relative; /* Enables more flexible positioning of elements inside the header */
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0;
  width: 80px;
  position: absolute;
  right: 20px; /* Refined alignment */
  top: 10px;
  border-radius: 50%;
  z-index: 100;
  transition: transform 0.6s ease-in-out; /* Shortened for a quicker, modern feel */
}

.logo:hover {
  transform: rotate(360deg); /* Reduced rotation for a more subtle effect */
}

/* Navigation */
nav ul {
  list-style-type: none;
  margin: 0;
  color: #fff;
  text-decoration: none;
  padding: 0;
  transition: color 0.3s ease; /* Smooth color transition */
  overflow: hidden;
  display: flex;
  align-items: center;
}

nav ul li {
  float: left;  /* Aligning the navigation items horizontally */
}

nav ul li a {
  display: block;
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  transition: color 0.3s ease; /* Smooth color transition */
  font-size: 16px; /* Base font size */
}

nav ul li a:hover {
  color: red;
  scale: 1.2;
  transition: color 0.9s ease; /* Smooth color transition */
}

.gamification-overview {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.25));
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.gamification-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.gamification-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.05);
  position: relative;
}

.gamification-card .label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #6b7280;
}

.gamification-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
}

.xp-card {
  grid-column: span 2;
}

.xp-meter {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  border-radius: 8px;
  transition: width 0.6s ease;
}

.xp-summary {
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
}

.quest-section {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.quest-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.quest-header h2 {
  font-size: 1.8rem;
  color: #1f2937;
}

.quest-header p {
  color: #4b5563;
}

.quest-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.quest-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.08);
}

.quest-progress-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.quest-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
}

.quest-rewards {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #1f2937;
  flex-wrap: wrap;
}

.quest-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a;
}

.quest-status.completed {
  color: #2563eb;
}

.quest-empty {
  color: #6b7280;
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 768px) {
  .xp-card {
    grid-column: span 1;
  }
}

/* Main Content Area */
main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto; /* Centering the main content */
}

/* Hero Section */
.hero {
  background-image: url("../images/1.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 50px 20px
}

.hero::before:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Slightly darkened overlay for better contrast */
  z-index: 0;
}

.hero h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero button {
  padding: 10px 20px;
  background-color: #fff;
  color: #4CAF50;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero button:hover {
  background-color: #45a049;
  color: #fff;
}

/* Items/Recipes Section */
.items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.item {
  background-color: #fff;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease; /* Add transition for hover effects */
}

.item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Enhanced hover effect */
}

.item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Social Sharing */
.social-sharing {
  margin: 20px 0;
  text-align: center;
}

.social-sharing a {
  display: inline-block;
  margin: 0 10px;
  text-decoration: none;
  color: #4CAF50;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-sharing a:hover {
  color: #45a049;
}

/* Chat Section */
#chat-section {
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 20px;
}

#chat-box {
  height: 200px;
  overflow-y: scroll;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

#chat-input {
  padding: 10px;
  width: calc(100% - 90px);
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#chat-send {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#chat-send:hover {
  background-color: #45a049;
}

.post-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px;
}

.post-content {
  margin-bottom: 20px;
}

/* Add more styles as needed */

a {
  text-decoration: none;
  color: #1313a0;
}

a:hover {
  color: red;
  scale: 1.2;
  transition: color 0.5s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  margin: auto;
  border: 1px solid #ccc;
}

.login-image {
    width: 50px;  /* Set the width to your desired small size */
    height: 50px; /* Assuming you want a square image for profile pics */
    object-fit: cover; /* This will ensure the image covers the area without distortion */
    border-radius: 50%; /* Makes the image circular, common for profile pictures */
    border: 2px solid #ccc; /* A slightly thicker border for visibility at small sizes */
  display: column;
  justify-content: center;
  align-items: center;
margin: 5%;
}

.login-section {
  display: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 0;
  background-color: #5d5a5a;
  width: 100%;
  color: #fff;
  margin: 0;
}

/* Responsive Design For very Tiny Screens */
@media only screen and (max-width: 320px){
  nav ul li a {
    font-size: 10px;
  }
}

/* Responsive Design For Mobile Phones */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 10px 0;
    float: none;
    width: 100%;
  }

  .hero {
    padding: 30px 20px;
  }

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

/* Responsive Design For Tablets, Larger Screens, flexbox used for better alignment */
@media (min-width: 601px) and (max-width: 1024px) {
  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center; /* or space-between, or center */
  }

  nav ul li {
    margin: 0 10px;
    flex: 1; /* Equal width for all navigation items */
  }

  .hero {
    padding: 50px 20px;
  }

  .items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Consultation landing + dashboard styles */
:root {
  --primary: #2f5dff;
  --primary-dark: #1f3fbf;
  --secondary: #0f172a;
  --muted: #64748b;
  --surface: #ffffff;
  --background: #f4f7ff;
  --radius-lg: 20px;
}

body {
  background: var(--background);
}

.site-header {
  background: #ffffff;
  padding: 1.5rem 6vw;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header.compact {
  padding: 1rem 6vw;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--secondary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(47, 93, 255, 0.25);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: #e2e8f0;
  color: var(--secondary);
}

.button.ghost {
  background: transparent;
  border: 1px solid #cbd5f5;
  color: var(--secondary);
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.language-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #edf2ff;
  border: 1px solid #d6e0ff;
  border-radius: 999px;
  padding: 0.25rem;
  cursor: pointer;
  min-width: 90px;
  justify-content: space-between;
}

.language-toggle__option {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  z-index: 1;
  width: 36px;
  text-align: center;
}

.language-toggle__thumb {
  position: absolute;
  width: 42px;
  height: 28px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
  left: 4px;
  transition: transform 0.2s ease;
}

.language-toggle[data-current-lang='fr'] .language-toggle__thumb {
  transform: translateX(40px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 4rem 6vw 2rem;
  align-items: center;
}

.hero-content .eyebrow,
.dashboard-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.hero-content h1,
.dashboard-hero h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 1rem 0;
  color: var(--secondary);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card,
.status-card,
.membership-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card-header,
.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pill {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-row,
.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.card-row .label,
.status-row .label {
  color: var(--muted);
  font-size: 0.9rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem 6vw;
}

.value-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.steps {
  padding: 2rem 6vw 3rem;
}

.steps h2 {
  margin-bottom: 1.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.step-number {
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.membership {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem 6vw 4rem;
}

.family-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.family-list li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.membership-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 3.5rem 6vw 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1rem 6vw 2rem;
}

.dashboard-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.crm-section {
  padding: 2rem 6vw 4rem;
  display: grid;
  gap: 2rem;
}

.crm-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.crm-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.crm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.crm-board {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.crm-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crm-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.crm-card-subtitle {
  color: var(--muted);
  margin-top: 0.25rem;
}

.crm-metrics,
.crm-pipeline {
  display: grid;
  gap: 0.75rem;
}

.crm-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #f8fafc;
  font-weight: 600;
}

.crm-metric span {
  color: var(--muted);
  font-weight: 500;
}

.crm-pipeline-item {
  display: grid;
  gap: 0.35rem;
}

.crm-pipeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.crm-pipeline-bar {
  background: #eef2ff;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.crm-pipeline-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
}

.crm-task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.crm-task-item {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #f8fafc;
  display: grid;
  gap: 0.35rem;
}

.crm-task-item strong {
  font-size: 0.95rem;
}

.crm-task-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.crm-table {
  display: grid;
  gap: 0.75rem;
}

.crm-row {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 1fr 0.8fr 0.9fr 0.8fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #f8fafc;
}

.crm-row-header {
  background: transparent;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.crm-row strong {
  display: block;
  font-weight: 600;
}

.crm-row small {
  color: var(--muted);
  font-size: 0.8rem;
}

.crm-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e0f2fe;
  color: #0369a1;
}

.crm-status-pill.status-qualified {
  background: #e0e7ff;
  color: #4338ca;
}

.crm-status-pill.status-quote {
  background: #ede9fe;
  color: #6d28d9;
}

.crm-status-pill.status-awaiting {
  background: #fef3c7;
  color: #b45309;
}

.crm-status-pill.status-won {
  background: #dcfce7;
  color: #15803d;
}

.crm-status-pill.status-lost {
  background: #fee2e2;
  color: #b91c1c;
}

.crm-actions-group {
  display: flex;
  gap: 0.5rem;
}

.crm-actions-group button {
  padding: 0.35rem 0.7rem;
}

.crm-form-card form {
  display: grid;
  gap: 0.75rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-field input,
.form-field select {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #dbe0f5;
}

.crm-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.crm-empty {
  padding: 1rem;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.plan-section {
  padding: 2rem 6vw 4rem;
  display: grid;
  gap: 2rem;
}

.plan-list {
  display: grid;
  gap: 1rem;
}

.plan-item {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.plan-icon {
  background: #e0e7ff;
  color: var(--primary-dark);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-layout {
  padding: 3rem 6vw 4rem;
  display: flex;
  justify-content: center;
}

.auth-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-card input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #dbe0f5;
}

.auth-banner {
  background: #eff6ff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #1d4ed8;
  font-weight: 600;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-switch {
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .language-toggle {
    align-self: flex-start;
  }

  .crm-board {
    grid-template-columns: 1fr;
  }

  .crm-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .crm-row-header {
    display: none;
  }

  .crm-actions-group {
    justify-content: flex-start;
  }
}
