/* =========================================
   GLOBAL
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #111;
}

a {
  text-decoration: none;
}

/* =========================================
   CONTAINER (MAIN ALIGNMENT SYSTEM)
========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
/* =========================================
   NAVBAR (ALIGNED WITH CONTAINER)
========================================= */
.navbar {
  width: 100%;
  z-index: 10;
}


/* DROPDOWN WRAPPER */
.dropdown {
  position: relative;
}

/* MENU */
.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;

  min-width: 220px;
  padding: 10px 0;

  background: rgba(15, 26, 44, 0.96);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.25);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: all 0.25s ease;
  z-index: 100;
}

/* SHOW */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ITEMS */
.dropdown-menu li {
  list-style: none;
}

/* LINKS */
.dropdown-menu a {
  display: block;
  padding: 12px 18px;

  color: #e2e8f0;
  font-size: 14px;

  transition: 0.25s ease;
}

/* HOVER */
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: #ff7a00;
}
.navbar.transparent {
  position: absolute;
  top: 0;
  color: white;
}

.navbar.dark {
  background: rgba(11, 31, 58, 0.85);
  backdrop-filter: blur(10px);
  color: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 🔥 IMPORTANT: alignment happens here */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* LOGO CONTAINER */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 🔥 NEW ICON (CIRCLE + ENGINEERING STYLE) */
.logo-icon {
  width: 42px;
  height: 42px;

  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a00, #ff9a3c);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  color: white;
  font-size: 14px;

  position: relative;
  overflow: hidden;
}

/* subtle engineering lines (unique touch) */
.logo-icon::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 2px;
  background: rgba(255,255,255,0.3);
  transform: rotate(45deg);
}

.logo-icon::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 2px;
  background: rgba(255,255,255,0.2);
  transform: rotate(-45deg);
}

/* TEXT */
.logo-text strong {
  font-size: 16px;
}

.logo-text small {
  font-size: 10px;
  color: #aaa;
}
/* =========================================
   NAVBAR MENU (CLEAN + UNIQUE)
========================================= */

/* MENU LAYOUT */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-left: auto;
  margin-right: 30px;
}

/* LINKS */
.navbar a {
  position: relative;
  color: inherit;
  font-size: 14px;
  padding: 5px 0;
  transition: 0.3s ease;
}

/* 🔥 UNDERLINE ANIMATION (CENTER OUT) */
.navbar a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #ff7a00;
  transition: 0.3s ease;
  transform: translateX(-50%);
}

/* HOVER + ACTIVE */
.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* =========================================
   BUTTON (UNIQUE STYLE)
========================================= */

.btn-devis {
  background: linear-gradient(135deg, #ff7a00, #ff9a3c);
  padding: 10px 22px;
  border-radius: 30px;
  color: white;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* HOVER EFFECT */
.btn-devis:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,122,0,0.4);
}

/* =========================================
   SERVICES HERO (ALIGNED)
========================================= */
/* =========================================
   HERO SECTION (UNIQUE + CLEAN)
========================================= */
.services-hero {
  height: 380px;

  display: flex;
  align-items: center;

  /* Dark engineering tone (more unique than Base44) */
  background:
    linear-gradient(110deg, rgba(5,15,35,0.85) 40%, rgba(5,15,35,0.65) 100%),
    url("../images/hero5.jpg") center/cover no-repeat;

  color: white;
  position: relative;
  overflow: hidden;

  animation: fadeInHero 1s ease-in-out;
}

/* Subtle pattern overlay (makes it look premium) */
.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 6px
  );

  pointer-events: none;
}

/* Align content with your global container */
.services-hero .container {
  width: 100%;
}

/* =========================================
   HERO CONTENT
========================================= */
.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

/* SMALL TITLE */
.hero-tag {
  color: #ff7a00;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* MAIN TITLE */
.services-hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

/* ORANGE ACCENT LINE (DIFFERENT FROM BASE44) */
.services-hero h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(to right, #ff7a00, transparent);
  margin-top: 15px;
}

/* DESCRIPTION */
.hero-desc {
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.6;
}

@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .services-hero {
    background-attachment: scroll;
  }
}

/* =========================================
   FOOTER (FULL CLEAN VERSION)
========================================= */

.footer {
  background: linear-gradient(135deg, #0f1a2c 80%, #ff7a00);
  color: #ccc;
  padding: 60px 20px;
}

/* GRID */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* TITLES */
.footer h4 {
  color: white;
  margin-bottom: 15px;
}

/* =========================================
   LOGO (MATCH NAVBAR STYLE)
========================================= */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a00, #ff9a3c);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  color: white;
  font-size: 13px;

  position: relative;
  overflow: hidden;
}

/* subtle engineering lines */
.footer .logo-icon::before,
.footer .logo-icon::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 2px;
  background: rgba(255,255,255,0.2);
}

.footer .logo-icon::before {
  transform: rotate(45deg);
}

.footer .logo-icon::after {
  transform: rotate(-45deg);
}

.footer .logo-text strong {
  color: white;
  font-size: 16px;
}

/* =========================================
   LINKS (UNDERLINE ANIMATION)
========================================= */

.footer a {
  position: relative;
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

/* underline animation */
.footer a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ff7a00;
  transition: 0.3s ease;
  transform: translateX(-50%);
}

/* hover */
.footer a:hover::after {
  width: 100%;
}

.footer a:hover {
  color: white;
}

/* spacing */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

/* =========================================
   CONTACT TEXT
========================================= */

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 12px;
  font-size: 14px;
  color: #ccc;
}

.footer-contact p i {
  width: 18px;
  color: #ff7a00;
  font-size: 15px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  background: rgba(255,255,255,0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 16px;

  transition: 0.3s ease;
}

.footer-social a:hover {
  background: #ff7a00;
  transform: translateY(-3px);
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;

  position: relative;
  width: fit-content;

  color: #ccc;
  margin-bottom: 12px;
  font-size: 14px;

  transition: 0.3s ease;
}

.footer-contact-link i {
  color: #ff7a00;
  font-size: 15px;
}

/* =========================================
   BOTTOM BAR
========================================= */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}


 .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  gap: 15px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card span {
  font-size: 22px;
}

.status {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  text-transform: capitalize;
}

.status.pending { background: #fff3cd; }
.status.completed { background: #d4edda; }
.status.cancelled { background: #f8d7da; }




  .modal {
  pointer-events: none;
}

.modal:not(.hidden) {
  pointer-events: auto;
}
.hidden {
  display: none !important;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}






/* =========================================
   ADMIN DASHBOARD
========================================= */

.admin-dashboard {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  
}

/* HEADER */
.admin-header h1 {
  font-size: 28px;
}
.admin-header p {
  color: #666;
  margin-top: 4px;
}

/* STATS */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-box {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.stat-box p {
  font-size: 14px;
  color: #666;
}

.stat-box h3 {
  font-size: 22px;
  margin-top: 6px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.stat-icon.green { background: #dff7e8; color: #2e7d32; }
.stat-icon.blue { background: #e3f2fd; }
.stat-icon.orange { background: #fff3cd; }
.stat-icon.purple { background: #f3e5f5; }

/* TABS */
.admin-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: #f3f3f3;
  border: none;
  font-size: 14px;
}

.admin-tab.active {
  background: #111;
  color: #fff;
}

/* CARD */
.admin-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* CARD HEADER */
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.add-btn1 {
  background: #f5a623;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
}

/* TABLE */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 13px;
  color: #777;
  padding-bottom: 12px;
}

.admin-table td {
  padding: 14px 0;
  border-top: 1px solid #eee;
  font-size: 14px;
}

/* STATUS */
.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.active {
  background: #e8f5e9;
  color: #2e7d32;
}


/* ADMIN Status Styling */
.status-pill.pending { background:#ffeeba; }
.status-pill.approved { background:#cce5ff; }
.status-pill.completed { background:#d4edda; }
.status-pill.cancelled { background:#f8d7da; }


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;

}


/* ADMIN tabs hidden */
.hidden {
  display: none;
}

/* ADMIN tab booking status */
.status-pill.pending {
  background: #fff3cd;
  color: #856404;
}

.status-pill.confirmed {
  background: #d1ecf1;
  color: #0c5460;
}

.status-pill.completed {
  background: #d4edda;
  color: #155724;
}

.status-pill.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.status-select {
  padding: 6px 8px;
  border-radius: 6px;
}


/* ADMIN cancel button booking */
.cancel-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.status.completed {
  background: #e6f9ef;
  color: #1a7f4d;
  font-weight: 600;
  animation: completedPop 0.4s ease-out;
}

.status.completed::after {
  content: " ✔";
}

@keyframes completedPop {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ADMIN - orders */
.status-pill.pending { background:#fff4cc; color:#8a6d00; }
.status-pill.processing { background:#e0f0ff; color:#004a8f; }
.status-pill.shipped { background:#e6f4ff; color:#005fa3; }
.status-pill.delivered { background:#e6f9ef; color:#1a7f4d; }
.status-pill.cancelled { background:#fde8e8; color:#9b1c1c; }

/* ADMIN - Make stat cards clickable */
.stat-box.clickable {
  cursor: pointer;
}

/* =========================
   STATS MODAL STYLING
========================= */

.stats-modal {
  background: linear-gradient(180deg, #ffffff, #fafafa);
  padding: 22px;
  border-radius: 16px;
  width: 360px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);
  animation: popIn 0.25s ease-out;
}

.stats-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.stats-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f7ee, #d1fae5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stats-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.stat-label {
  color: #444;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-value {
  font-weight: 600;
}

.stat-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 6px 0;
}

.stat-row.total {
  font-weight: 700;
  font-size: 16px;
}

.close-btn {
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.close-btn:hover {
  opacity: 0.9;
}

/* =========================
   ANIMATION
========================= */
@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
  Modern look for Product & Services modal
========================= */
/* =========================
   ADMIN FORM MODAL (FINAL)
========================= */

.admin-form-modal {
  background: #ffffff;
  padding: 28px;
  border-radius: 20px;
  width: 420px;
  max-width: 95%;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

/* Close button */
.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.modal-close:hover {
  color: #000;
}

/* Labels */
.admin-form-modal label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

/* Inputs & textarea */
.admin-form-modal input,
.admin-form-modal textarea,
.admin-form-modal select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
  background: #fafafa;
}

.admin-form-modal textarea {
  resize: none;
  min-height: 70px;
}

.admin-form-modal input:focus,
.admin-form-modal textarea:focus,
.admin-form-modal select:focus {
  border-color: #111;
  background: #fff;
}

/* Two-column row */
.admin-form-modal .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Active switch spacing */
.admin-form-modal .switch {
  margin-top: 6px;
}


/* =====================
   ADMIN FORM UPGRADE
===================== */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-form h4 {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.admin-form label {
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
  display: block;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: #ff7a00;
}

.admin-form textarea {
  min-height: 100px;
  resize: vertical;
}


/* =========================
   UPLOAD MODAL UPGRADE
========================= */

/* Overlay (darker + blur effect) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal container */
.modal-content {
  background: #ffffff;
  padding: 28px;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: modalFade 0.3s ease;
  text-align: center;
}

/* Title */
.modal-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* Upload box */
.upload-box {
  border: 2px dashed #e5e7eb;
  border-radius: 14px;
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fafafa;
  margin-bottom: 15px;
}

/* Hover effect */
.upload-box:hover {
  border-color: #ff7a00;
  background: #fff7f0;
}

/* Drag active (you can toggle with JS later) */
.upload-box.active {
  border-color: #ff7a00;
  background: #fff3e6;
}

/* Upload text */
.upload-box p {
  font-size: 14px;
  color: #555;
}

/* File preview */
#uploadPreview {
  margin-top: 10px;
  text-align: left;
  max-height: 120px;
  overflow-y: auto;
}

#uploadPreview div {
  font-size: 13px;
  padding: 6px 10px;
  background: #f3f4f6;
  border-radius: 8px;
  margin-bottom: 6px;
}

/* Buttons container */
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

/* Upload button */
.primary-btn {
  flex: 1;
  background: linear-gradient(135deg, #ff7a00, #ff9a3c);
  border: none;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.4);
}

/* Cancel button */
#closeUploadModal {
  flex: 1;
  background: #f3f4f6;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

#closeUploadModal:hover {
  background: #e5e7eb;
}

/* Animation */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* =========================================
   ANALYTICS GRID FIX
========================================= */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0 30px;
}

/* Make analytics cards consistent height */
.analytics-grid .stat-card {
  min-height: 92px;
}

/* =========================================
   CHART SECTION FIX
========================================= */
.admin-card canvas {
  width: 100% !important;
  max-width: 100%;
  margin-top: 20px;
}

/* Revenue Chart Card spacing */
.admin-card:has(#revenueChart) {
  margin-bottom: 30px;
}

/* =========================================
   FILTERS STYLING
========================================= */
.chart-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chart-filters select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.chart-filters select:hover {
  border-color: #ff7a00;
}

.chart-filters select:focus {
  outline: none;
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255,122,0,0.15);
}

/* =========================================
   ADMIN TABS SPACING FIX
========================================= */
.admin-tabs {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* =========================================
   BETTER ADMIN SECTION SPACING
========================================= */
.admin-sections {
  margin-top: 10px;
}

/* =========================================
   RESPONSIVE FIXES
========================================= */
@media (max-width: 1100px) {
  .stats-grid,
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .stats-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .chart-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .chart-filters select {
    width: 100%;
  }

  .admin-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-tab {
    width: 100%;
    text-align: center;
  }
}
/* Premium Chart Height */
#revenueChart {
  width: 100% !important;
  height: 420px !important;
}

.status-pill.new {
  background: #e8f0ff;
  color: #004a8f;
}

.status-pill.reviewed {
  background: #fff4cc;
  color: #8a6d00;
}

.status-pill.quote_sent {
  background: #f3e8ff;
  color: #6b21a8;
}

.status-pill.accepted {
  background: #e6f9ef;
  color: #1a7f4d;
}

/* =========================
   SUBMISSION ACTION BUTTONS
========================= */

.view-submission-btn,
.email-submission-btn,
.delete-submission-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  min-width: 120px;

  padding: 8px 14px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 600;

  border: 1px solid transparent;
  cursor: pointer;

  transition: all 0.2s ease;
}

/* VIEW */
.view-submission-btn {
  background: #111;
  color: white;
}

.view-submission-btn:hover {
  background: #222;
}

/* EMAIL */
.email-submission-btn {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  text-decoration: none;
}

.email-submission-btn:hover {
  background: #dbeafe;
}

/* DELETE */
.delete-submission-btn {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.delete-submission-btn:hover {
  background: #fee2e2;
}

/* ACTION COLUMN LAYOUT */
.submission-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.submission-status-select {
  width: 120px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
}

.submission-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.submission-message {
  background: #f8f8f8;
  padding: 14px;
  border-radius: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
}


#submissionFilter {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}


.highlight-order {
  animation: highlightPulse 2.5s ease;
  background: #fff7e6 !important;
}

@keyframes highlightPulse {
  0% { background: #ffe9c7; }
  100% { background: transparent; }
}

.form-grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

/* =========================
   ADMIN ACTION ICON BUTTONS
========================= */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  width: 34px;
  height: 34px;

  border: 1px solid #d1d5db;
  background: #fff;

  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  font-size: 14px;
  color: #374151;

  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.icon-btn.danger {
  color: #dc2626;
}

.icon-btn.danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.edit-material-btn {
  color: #f97316;
}

/* =========================
   MATERIAL QTY STYLING
========================= */
.availability-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.qty-badge {
  font-size: 12px;
  font-weight: 600;

  color: #64748b;
  background: #f8fafc;

  border: 1px solid #e2e8f0;
  border-radius: 999px;

  padding: 4px 10px;

  line-height: 1;
}




.action-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.material-reservation-status-select {
  min-width: 130px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.material-reservation-status-select:hover {
  border-color: #ff7a00;
}

.reservation-message-btn {
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  white-space: nowrap;
}

.reservation-message-btn:hover {
  background: #ff7a00;
  transform: translateY(-1px);
}


.cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff7a00;
  color: white;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 50%;
}
/* =========================================
   MOBILE NAVBAR
========================================= */

.menu-toggle{
  display:none;
}

@media (max-width:768px){

  .navbar{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:999;
  }

  .navbar .container{
    height:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 20px;

    flex-wrap:wrap;
  }

  .logo-text small{
    display:none;
  }

  .menu-toggle{
    display:block;
    font-size:32px;
    color:white;
    cursor:pointer;
  }

  nav{
    width:100%;
    display:none;

    background:#0f1a2c;

    margin-top:20px;
    padding:20px 0;

    border-radius:14px;
  }

  nav.active{
    display:block;
  }

  .navbar ul{
    flex-direction:column;
    align-items:center;

    gap:20px;

    margin:0;
  }

  .btn-devis{
    display:none;
  }

}
/* =========================================
   MOBILE HERO
========================================= */

@media (max-width:768px){

  .services-hero{
    height:auto;
    padding:140px 20px 70px;
  }

  .services-hero h1{
    font-size:32px;
    line-height:1.3;
  }

  .hero-desc{
    font-size:15px;
  }

}
/* =========================================
   MOBILE ADMIN LAYOUT
========================================= */

@media (max-width:768px){

  .admin-dashboard{
    margin:30px auto;
    padding:0 14px;
  }

  .admin-card{
    padding:18px;
    border-radius:18px;
  }

  .admin-header h1{
    font-size:26px;
  }

  .admin-header p{
    font-size:14px;
  }

}
/* =========================================
   MOBILE STATS
========================================= */

@media (max-width:768px){

  .stats-grid,
  .analytics-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .stat-card{
    padding:18px;
    border-radius:16px;
  }

  .stat-card h3{
    font-size:22px;
  }

}

/* =========================================
   MOBILE TABLES
========================================= */

@media (max-width:768px){

  .admin-card{
    overflow:hidden;
  }

  .admin-table{
    display:block;
    width:100%;
    overflow-x:auto;
    white-space:nowrap;
  }

  .admin-table thead{
    background:#f8fafc;
  }

  .admin-table th,
  .admin-table td{
    padding:14px 12px;
    font-size:13px;
  }

}
/* =========================================
   MOBILE MODALS
========================================= */

@media (max-width:768px){

  .modal{
    padding:14px;
  }

  .modal-content,
  .admin-form-modal{
    width:100%;
    max-width:100%;

    max-height:90vh;

    border-radius:18px;

    padding:20px;
  }

  .modal-header h3{
    font-size:18px;
  }

}
/* =========================================
   MOBILE FORMS
========================================= */

@media (max-width:768px){

  .form-grid,
  .form-grid-2,
  .row,
  .form-row{
    grid-template-columns:1fr !important;
  }

  .admin-form input,
  .admin-form textarea,
  .admin-form select,
  .admin-form-modal input,
  .admin-form-modal textarea,
  .admin-form-modal select{
    font-size:16px;
  }

}
/* =========================================
   MOBILE ACTION BUTTONS
========================================= */

@media (max-width:768px){

  .action-buttons,
  .action-cell,
  .submission-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .icon-btn,
  .reservation-message-btn,
  .material-reservation-status-select,
  .submission-status-select{
    width:100%;
  }

}
/* =========================================
   MOBILE CHART
========================================= */

@media (max-width:768px){

  #revenueChart{
    height:300px !important;
  }

}
/* =========================================
   MOBILE ADMIN TABS
========================================= */

@media (max-width:768px){

  .admin-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .admin-tab{
    width:100%;
    padding:14px 12px;

    border-radius:14px;

    font-size:13px;
    font-weight:600;

    text-align:center;
  }

}