
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* ==============================
   LUXECEE LUXURY THEME
============================== */

:root {
  --gold: #c4a46a;
  --gold-dark: #a8874c;
  --bg: #faf7f2;
  --panel: #ffffff;
  --line: #e9e1d7;
  --muted: #8b8177;
  --white: #ffffff;
  --text: #302923;
  --soft-gold: #f4ecdf;
  --taupe: #b8a391;
  --shadow: 0 5px 24px rgba(70, 50, 30, 0.045);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ==============================
   MAIN SHELL
============================== */

.shell {
  max-width: 1350px;
  margin: auto;
  padding: 28px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.brand-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.2px;
}

.brand-tagline {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 6px;
}

.brand h1 {
  font: 600 22px 'Playfair Display', serif;
  margin: 0;
  color: var(--text);
}

.brand small {
  color: var(--muted);
  letter-spacing: 2px;
  font-size: 10px;
}

/* ==============================
   BUTTONS
============================== */

.btn {
  background: var(--gold);
  color: #ffffff;
  border: 1px solid var(--gold);
  padding: 11px 17px;
  border-radius: 9px;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(196, 164, 106, 0.15);
}

.btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--soft-gold);
  border-color: var(--gold);
}

.btn.danger {
  background: #fffafa;
  color: #a45b5b;
  border: 1px solid #ead5d5;
  box-shadow: none;
}

.btn.danger:hover {
  background: #f8eaea;
}

/* ==============================
   CARDS
============================== */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 21px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(70, 50, 30, 0.065);
}

/* ==============================
   DASHBOARD
============================== */

.grid {
  display: grid;
  gap: 17px;
}

.stats {
  grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.stat {
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  opacity: 0.7;
}

.stat strong {
  display: block;
  font-size: 27px;
  margin-top: 10px;
  color: var(--text);
  font-weight: 600;
}

.stat label,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.layout {
  grid-template-columns: 1fr 330px;
  align-items: start;
}

/* ==============================
   HEADINGS
============================== */

.section-title {
  font: 600 22px 'Playfair Display', serif;
  margin: 0 0 17px;
  color: var(--text);
}

h1,
h2,
h3,
h4,
.section-title {
  font-family: 'Playfair Display', serif;
}

/* ==============================
   TABLES
============================== */

.table-wrap {
  overflow: auto;
  border-radius: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.table th {
  color: var(--muted);
  font-weight: 500;
  background: #fcfaf7;
}

.table td {
  color: #51473e;
}

.table tbody tr {
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: #fcfaf6;
}

/* ==============================
   STATUS PILLS
============================== */

.pill {
  display: inline-block;
  padding: 6px 10px;
  background: var(--soft-gold);
  color: #8d7147;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

/* ==============================
   FORMS
============================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  font-size: 12px;
  color: #81766b;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  background: #fffdfb;
  border: 1px solid #e5ddd3;
  color: var(--text);
  padding: 12px;
  border-radius: 9px;
  outline: none;
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 164, 106, 0.12);
  background: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #b7ada3;
}

textarea {
  min-height: 85px;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

/* ==============================
   LOGIN
============================== */

.login {
  max-width: 420px;
  margin: 9vh auto;
}

.login .section-title {
  font-size: 30px;
}

.login .card {
  padding: 30px;
  border-radius: 20px;
}

/* ==============================
   TABS
============================== */

.tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 15px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #766b60;
  transition: all 0.2s;
}

.tab:hover {
  background: var(--soft-gold);
  border-color: #d7c5a7;
}

.tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(196, 164, 106, 0.15);
}

/* ==============================
   PROGRESS BAR
============================== */

.progress {
  height: 8px;
  background: #eee8e0;
  border-radius: 20px;
  overflow: hidden;
}

.progress span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #c4a46a, #dfc99f);
  border-radius: 20px;
}

/* ==============================
   STEPS
============================== */

.steps {
  display: grid;
  gap: 10px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a59a90;
  font-size: 13px;
}

.step.done {
  color: var(--text);
}

.dot {
  width: 12px;
  height: 12px;
  border: 1px solid #cfc4b7;
  border-radius: 50%;
}

.done .dot {
  background: var(--gold);
  border-color: var(--gold);
}

/* ==============================
   TOAST
============================== */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #342c25;
  color: #ffffff;
  border: 1px solid #594b3b;
  padding: 14px 18px;
  border-radius: 11px;
  z-index: 4;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ==============================
   EMPTY STATES
============================== */

.empty {
  text-align: center;
  padding: 35px;
  color: var(--muted);
}

.tracking {
  max-width: 760px;
  margin: 32px auto;
}

.tracking-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tracking .steps {
  grid-template-columns: 1fr 1fr;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

/* ==============================
   ADMIN NAVIGATION
============================== */

.admin-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}

.sidebar {
  background: #f5f0e9;
  border: 1px solid #e7ded2;
  border-radius: 17px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 20px;
  box-shadow: var(--shadow);
}

.sidebar-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9b8b79;
  font-weight: 600;
  padding: 10px 10px 14px;
}

.side-menu {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #776b60;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  text-align: left;
  transition: all 0.2s;
}

.side-menu:hover {
  background: #ffffff;
  color: var(--text);
  border-color: #e8dfd3;
}

.side-menu.active {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(196, 164, 106, 0.2);
}

.menu-icon {
  width: 22px;
  text-align: center;
  font-size: 17px;
}

.admin-content {
  min-width: 0;
}

/* ==============================
   CLIENT TIMELINE
============================== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 22px 0;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding: 0 0 25px;
  color: #aaa096;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: #e9e1d7;
}

.timeline-step.done:not(:last-child)::after {
  background: var(--gold);
}

.timeline-marker {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid #ded4c8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.timeline-step.done .timeline-marker {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

.timeline-step.current .timeline-marker {
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  background: #fffaf2;
  box-shadow: 0 0 0 4px rgba(196, 164, 106, 0.12);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.timeline-content strong {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #aaa096;
}

.timeline-step.done .timeline-content strong,
.timeline-step.current .timeline-content strong {
  color: var(--text);
}

.timeline-status {
  font-size: 11px;
  color: #aaa096;
}

.timeline-step.current .timeline-status {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ==============================
   CLIENT UPDATES
============================== */

.order-updates {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.update-card {
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.update-card strong {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text);
}

.update-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ==============================
   PHOTO PREVIEW
============================== */

#team-photo-preview {
  box-shadow: 0 4px 12px rgba(60, 40, 20, 0.1);
}

/* ==============================
   RESPONSIVE
============================== */

@media(max-width:1000px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media(max-width:800px) {
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sidebar {
    position: static;
    width: 100%;
  }

  .side-menu {
    padding: 11px 12px;
  }

  .admin-content {
    width: 100%;
  }
}

@media(max-width:600px) {
  .shell {
    padding: 15px;
  }

  .header {
    align-items: flex-start;
  }

  .brand-logo {
    width: 65px;
    height: 65px;
  }

  .brand-text h1 {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 9px;
    letter-spacing: 0.4px;
  }

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

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

  .field.full {
    grid-column: auto;
  }

  .tracking .steps {
    grid-template-columns: 1fr;
  }

  .tracking-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .card {
    padding: 16px;
  }
}
/* FIX DASHBOARD STAT CARD OVERFLOW */

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  min-width: 0;
  overflow: hidden;
  padding: 17px;
}

.stat strong {
  font-size: clamp(15px, 1.8vw, 23px);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

.stat label {
  display: block;
  overflow-wrap: break-word;
}

/* Tablet */
@media(max-width:1000px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile */
@media(max-width:600px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: 14px;
  }

  .stat strong {
    font-size: 17px;
  }
}
/* FIX ORDER TABLE OVERFLOW */

.table {
  table-layout: auto;
}

.table th,
.table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: middle;
}

.table td {
  line-height: 1.6;
}

/* Keep action buttons tidy */
.table td .actions {
  min-width: 100px;
}

/* Make tables easier to view on smaller screens */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* FIX NEW ORDER FORM ALIGNMENT */

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

.field {
  min-width: 0;
  width: 100%;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.field.full {
  grid-column: 1 / -1;
  min-width: 0;
}

/* Keep long specifications and notes inside their boxes */
.field textarea {
  overflow-wrap: break-word;
}

/* Mobile layout */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field.full {
    grid-column: auto;
  }
}
/* CLICKABLE DASHBOARD SUMMARY CARDS */

.stat-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-clickable:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(196, 164, 106, 0.16);
}

.stat-link {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--gold-dark);
  font-weight: 500;
}

/* ==============================
   REFINED LUXECEE TYPOGRAPHY
============================== */

/* General interface */
body {
  font-size: 13px;
}

/* Buttons */
.btn {
  font-size: 12px;
  font-weight: 500;
  padding: 10px 15px;
}

/* Dashboard figures and labels */
.stat label,
.muted {
  font-size: 11px;
}

.stat strong {
  font-size: clamp(17px, 1.5vw, 22px);
}

/* Tables */
.table th,
.table td {
  font-size: 11px;
  padding: 12px;
}

/* Forms */
.field label {
  font-size: 11px;
}

input,
select,
textarea {
  font-size: 12px;
  padding: 11px;
}

/* Navigation */
.side-menu {
  font-size: 12px;
}

.sidebar-label {
  font-size: 9px;
}

/* Tabs */
.tab {
  font-size: 12px;
}

/* Supporting text */
.small,
.pill,
.stat-link {
  font-size: 10px;
}

/* Client timeline */
.timeline-content strong {
  font-size: 12px;
}

.timeline-status {
  font-size: 10px;
}

/* Client updates */
.update-card strong {
  font-size: 12px;
}

.update-card p {
  font-size: 12px;
}

/* Login */
.login .section-title {
  font-size: 27px;
}
.brand-tagline {
  font-size: 8px;
  letter-spacing: 0.6px;
  margin-top: 4px;
}
.brand-text .brand-tagline {
  display: block !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 7px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.4px !important;
  font-weight: 400 !important;
  margin-top: 3px !important;
}
.brand-tagline {
  font-style: italic;
}
