﻿:root {
  --primary: #2563EB;
  --accent: #22D3EE;
  --dark: #0F172A;
  --light: #F8FAFC;
}

* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: var(--light);
  color: #0f172a;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 2000;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}


.logo img {
  height: 40px;
  width: auto;
}


nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
}

nav .btn {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
}

/* BANNER */
.banner {
  height: 70vh;
  background: white;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* HERO */
.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--dark), #020617);
  color: white;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.hero p {
  opacity: 0.85;
  margin-bottom: 30px;
}

.primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

/* FEATURES */
.features {
  padding: 70px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* FLOATING CHAT */
#chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 16px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 3000;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #0f172a;
  border-radius: 3px;
  transition: 0.3s;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: none;
  }

  nav a {
    margin: 10px 0;
  }
}

input, textarea {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

textarea {
  resize: none;
  height: 120px;
}

.secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

.logo a {
  display: inline-block;
}

.form-group {
  margin-bottom: 14px;
}

.error {
  color: #dc2626; /* red */
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.success-message {
  margin-top: 16px;
  color: #16a34a; /* green */
  font-size: 14px;
  text-align: center;
}

.projects-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 60px 40px;
}

.project-categories {
  background: #f8fafc;
  border-radius: 14px;
  padding: 24px;
}

.project-categories h3 {
  margin-bottom: 16px;
}

.project-categories ul {
  list-style: none;
  padding: 0;
}

.project-categories li {
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.project-categories li:hover,
.project-categories li.active {
  background: #e0e7ff;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.project-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PROJECTS PAGE LAYOUT */
.projects-layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 40px;
  padding: 60px 40px;
}

/* CATEGORY PANEL */
.category-panel {
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px;
}

.category-panel h3 {
  margin-bottom: 20px;
}

.category-card {
  background: white;
  border-left: 4px solid transparent;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.category-card:hover {
  transform: translateY(-2px);
}

.category-card.active {
  border-left-color: var(--primary);
  background: #eef2ff;
}

/* PROJECT LIST */
.projects-section {
  min-height: 400px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.project-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s forwards;
}

.project-card h4 {
  margin-bottom: 8px;
}

/* SHOWCASE PANEL */
.showcase-panel {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 24px;
}

.placeholder-box {
  margin-top: 20px;
  height: 180px;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

/* ANIMATION */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.3s ease;
}

.modal-content select,
.modal-content textarea,
.modal-content input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
}

/* STATUS BADGES */
.status {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-block;
}

.status.requested { background: #e5e7eb; }
.status.approved { background: #bfdbfe; }
.status.in_progress { background: #fde68a; }
.status.completed { background: #bbf7d0; }

/* AUTH PAGES */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.auth-card {
  background: white;
  padding: 36px;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  text-align: center;
}

.auth-card h2 {
  margin-bottom: 6px;
}

.auth-subtext {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.auth-card input {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.full {
  width: 100%;
}

.divider {
  margin: 20px 0;
  font-size: 13px;
  color: #94a3b8;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
}

.google-btn img {
  width: 18px;
}

.auth-footer {
  margin-top: 20px;
  font-size: 14px;
}

/* DASHBOARD HERO */
.dashboard-hero {
  max-width: 900px;
  margin: auto;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 60px 40px;
  background: #f8fafc;
  text-align: center;
}

.how-it-works h2 {
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.step-card {
  background: white;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-card img {
  width: 120px;
  margin-bottom: 20px;
}

/* MODAL ANIMATION */
.animate-in {
  animation: scaleFade 0.3s ease;
}

@keyframes scaleFade {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* SUBMIT BUTTON FEEDBACK */
button.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* PULSE CTA */
.pulse {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  70% { box-shadow: 0 0 0 12px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

/* PROJECTS MAIN WRAPPER */
.projects-wrapper {
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
}

.projects-wrapper h2 {
  font-size: 32px;
  margin-bottom: 6px;
}

.section-subtext {
  color: #64748b;
  margin-bottom: 30px;
  font-size: 15px;
}

/* BIG BOX */
.projects-box {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}


/* PROJECT LIST AS TABLE-LIKE ROWS */
.projects-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* SINGLE PROJECT ROW */
.project-row {
  display: grid;
  grid-template-columns: 1.5fr 3fr 1.5fr 1fr;
  align-items: center;
  padding: 22px 26px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: background 0.25s ease, transform 0.25s ease;
}

.project-row:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.project-row:active {
  transform: scale(0.99);
}

/* LOCKED PROJECT ROW */
.project-row.locked {
  opacity: 0.7;
  cursor: not-allowed;
}

.project-row.locked:hover {
  transform: none;
  background: #f9fafb;
}

.project-row.locked:active {
  transform: none;
}



/* COLUMN TEXT */
.project-category {
  font-size: 17px;
  font-weight: 700;
}

.project-requirements {
  font-size: 15px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* STATUS CHIP (IMPROVED) */
.project-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
  color: #0f172a; /* text always normal */
}

/* STATUS DOT */
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

/* DOT COLORS ONLY */
.status-dot.requested {
  background: #9ca3af;
}

.status-dot.approved {
  background: #3b82f6;
}

.status-dot.in_progress {
  background: #f59e0b;
}

.status-dot.completed {
  background: #22c55e;
}

/* DATE / META */
.project-date {
  font-size: 14px;
  color: #64748b;
  text-align: right;
}

/* ANIMATION */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CHAT */
.chat-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
  background: #f8fafc;
  margin-bottom: 12px;
}

/* CHAT MESSAGES */
.chat-message {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 70%;
  font-size: 14px;
  line-height: 1.4;
}

/* SENT BY CURRENT USER */
.chat-message.self {
  background: #2563eb;          /* Blue */
  color: #ffffff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

/* RECEIVED MESSAGE */
.chat-message.other {
  background: #e5e7eb;          /* Soft grey */
  color: #0f172a;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}


.chat-input {
  display: flex;
  gap: 10px;
}

/* DASHBOARD FILTERS */
.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.filter-btn:hover {
  background: #f1f5f9;
}

/* DASHBOARD HEADER */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.logout-btn {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.logout-btn:hover {
  background: #ef4444;
  color: white;
}

/* EMPTY + LOADING STATES */
.loading-state,
.empty-state {
  padding: 40px;
  text-align: center;
  color: #64748b;
}

.empty-state h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #0f172a;
}

.back-btn {
  background: transparent;
  border: 1px solid #cbd5f5;
  color: #2563eb;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.back-btn:hover {
  background: #e0e7ff;
}

.chat-notice {
  margin: 12px 0;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 14px;
  color: #475569;
}
.chat-input input:disabled {
  background: #e5e7eb;
  cursor: not-allowed;
}
.chat-input button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===============================
   CHAT MESSAGE COLORS (FORCE)
=============================== */

.chat-message {
  background: transparent; /* reset */
}

.chat-message.self {
  background-color: #2563eb !important;   /* Blue */
  color: #ffffff !important;
  margin-left: auto;
  margin-right: 0;
  border-bottom-right-radius: 4px;
}

.chat-message.other {
  background-color: #f1f5f9 !important;   /* VISIBLE soft grey */
  color: #0f172a !important;
  margin-right: auto;
  margin-left: 0;
  border-bottom-left-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* ===============================
   GLOBAL SETTINGS FLOAT BUTTON
=============================== */

.settings-fab {
  position: static;
  top: 18px;
  right: 18px;
  z-index: auto;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #2563eb;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-fab:hover {
  transform: rotate(25deg) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ===============================
   GET STARTED HOME BANNER
=============================== */

.get-started-wrapper {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.get-started-card {
  max-width: 900px;
  width: 100%;
  border: 2px solid #000;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  animation: fadeUp 0.6s ease;
}

.get-started-card h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.get-started-card .subtitle {
  font-size: 18px;
  color: #475569;
  margin-bottom: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.info-item {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  font-weight: 600;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.primary.big,
.secondary.big {
  padding: 14px 26px;
  font-size: 16px;
}

/* animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   HOMEPAGE ONBOARD CARD
=============================== */

.onboard-wrapper {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.onboard-card {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;

  border: 2px solid #000;
  border-radius: 24px;
  padding: 40px;

  background: #ffffff;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  animation: fadeUp 0.6s ease;
}

.onboard-left h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.onboard-left p {
  font-size: 17px;
  color: #475569;
  margin-bottom: 20px;
}

.onboard-list {
  list-style: none;
  padding: 0;
}

.onboard-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 600;
}

.onboard-list li::before {
  content: "âœ“";
  position: absolute;
  left: 0;
  color: #2563eb;
}

.onboard-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.primary.big,
.secondary.big {
  padding: 14px 26px;
  font-size: 16px;
  text-align: center;
}

/* subtle entry */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== COMPANY BRAND BANNER (INCREASED SIZE) ===== */
.brand-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;

  padding: 120px 20px;     /* â¬… BIGGER HEIGHT */
  background: #ffffff;
}

.brand-strip img {
  height: 90px;            /* â¬… BIGGER LOGO */
}

.brand-strip .divider {
  width: 3px;
  height: 90px;            /* â¬… MATCH LOGO HEIGHT */
  background: #1e3a8a;
}

.brand-strip h2 {
  font-size: 34px;         /* â¬… BIGGER TEXT */
  color: #334155;
  line-height: 1.3;
  font-weight: 600;
}


/* ===== HERO DARK ===== */
.hero-dark {
  background: linear-gradient(135deg,#020617,#020617cc);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero-dark h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero-dark p {
  color: #cbd5e1;
  margin-bottom: 25px;
}

/* ===== LOGIN GUIDE ===== */
.login-guide {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background: #ffffff;
}

.login-guide-box {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  border: 2px solid #000;
  border-radius: 24px;
  padding: 40px;
}

.login-guide-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.login-guide-text ul {
  list-style: none;
  padding: 0;
}

.login-guide-text li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 600;
}

.login-guide-text li::before {
  content: "âœ“";
  position: absolute;
  left: 0;
  color: #2563eb;
}

.login-guide-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* ===== FEATURES ===== */
.feature-cards {
  display: flex;
  gap: 20px;
  padding: 40px 20px 80px;
  justify-content: center;
}

.feature {
  background: #ffffff;
  padding: 20px 26px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  font-weight: 600;
}
/* ===============================
   HAMBURGER MENU â€“ FINAL FIX
=============================== */

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

/* Slide menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  right: -100%;
  width: 260px;
  height: calc(100vh - 64px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 3500;  
}
.mobile-menu a {
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
}

/* Active states */
.mobile-menu.open {
  transform: translateX(0);
}

.menu-overlay.open {
  opacity: 1;
  right: 0;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

/* PASTE AT END OF FILE */

/* ===============================
   OVERRIDES: MENU + FLOATING FABs
=============================== */

.mobile-menu {
  right: -100%;
  transform: translateX(0);
}

.mobile-menu.open {
  right: 0;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 4000;
}

.chat-fab {
  position: fixed;
  bottom: 20px;
  right: 72px;
  z-index: 4000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

body.menu-open {
  overflow: hidden;
}

