/* ========================= */
/*  BRAND COLORS             */
/* ========================= */



/* ========================= */
/*  GLOBAL + BASE            */
/* ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========================= */
/*  FORGECORE GLOBAL NAV     */
/* ========================= */

.forgecore-global-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: radial-gradient(circle at top, #1b1b1f 0%, #050608 55%, #000000 100%);
    border-bottom: 1px solid rgba(255, 191, 73, 0.35);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
}

.fc-logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
    text-shadow: 0 0 12px rgba(255, 191, 73, 0.7);
}

.forgecore-global-nav nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.forgecore-global-nav nav a {
    color: var(--amber);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.18s ease-out;
}

/* ============================================================
   FORGECORE — QUANTUMSELL LAYOUT SYSTEM
   ============================================================ */

/* GLOBAL */
body {
  background: #0A0A0A;
  color: #E6E6E6;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

/* MAIN CONTENT COLUMN (Fixes off-center KeyMaker) */
.qs-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

/* HERO */
.qs-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.qs-hero-inner {
  text-align: center;
}

.qs-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FFB000;
  margin-top: 0.5rem;
}

.qs-subtitle {
  font-size: 1rem;
  opacity: 0.8;
}

/* ============================================================
   KEYMAKER BLOCK — CENTERED + BRAND COLORS
   ============================================================ */

.qs-keymaker-box {
  background: #0A0A0A;
  border: 1px solid #FF6A00;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto;
  text-align: center;
  max-width: 600px;
}

.qs-keymaker-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #E6E6E6;
}

.qs-keymaker-desc {
  font-size: 0.9rem;
  color: #E6E6E6;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.qs-keymaker-input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
}

.qs-keymaker-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #0A0A0A;
  border: 1px solid #FF6A00;
  border-radius: 8px;
  color: #E6E6E6;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.qs-keymaker-input:focus {
  border-color: #FFB000;
}

.qs-keymaker-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FFB000, #FF6A00);
  border: none;
  border-radius: 8px;
  color: #0A0A0A;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.qs-keymaker-btn:hover {
  opacity: 0.9;
}

.qs-keymaker-status {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 1.2rem;
}

.qs-key-error {
  color: #FF6A00;
}

.qs-key-success {
  color: #FFB000;
}

.qs-key-loading {
  color: #E6E6E6;
}

/* ============================================================
   ENGINE GRID — CENTERED + FORGECORE STYLE
   ============================================================ */

.qs-engine-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.qs-engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 2rem;
  max-width: 1100px;
}

.qs-engine-card {
  background: #0A0A0A;
  border: 1px solid #FF6A00;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: #E6E6E6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qs-engine-card:hover {
  border-color: #FFB000;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.4);
  transform: translateY(-3px);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .qs-main {
    padding: 0 0.5rem;
  }

  .qs-keymaker-box {
    margin: 1.5rem 0.5rem;
  }

  .qs-keymaker-input-group {
    flex-direction: column;
  }

  .qs-keymaker-btn {
    width: 100%;
  }

  .qs-engine-grid {
    grid-template-columns: 1fr;
  }
}

.qs-logo {
    max-width: 1200px;
    height: auto;
    filter:
        drop-shadow(0 0 18px rgba(255, 191, 73, 0.9))
        drop-shadow(0 0 40px rgba(255, 140, 0, 0.6));
}
.qs-logo {
    max-width: 800px;
    height: auto;
}

.qs-title {
    font-size: 2.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    text-shadow:
        0 0 18px rgba(255, 191, 73, 0.9),
        0 0 40px rgba(255, 140, 0, 0.6);
    margin-bottom: 8px;
}

.qs-subtitle {
    font-size: 1rem;
    color: var(--amber);
    opacity: 0.85;
    margin-bottom: 26px;
}

/* ========================= */
/*  ENGINE GRID (Centered)   */
/* ========================= */

.qs-engine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    justify-items: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.qs-engine-card {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 191, 73, 0.55);
    background: linear-gradient(135deg, rgba(10, 10, 14, 0.95), rgba(20, 16, 8, 0.95));
    color: var(--amber);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow:
        0 0 16px rgba(255, 191, 73, 0.45),
        inset 0 0 12px rgba(0, 0, 0, 0.8);
    text-align: center;
}
/* Uniform 3×3 Engine Grid */
.qs-engine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    justify-items: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Uniform Engine Cards */
.qs-engine-card {
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 191, 73, 0.55);
    background: linear-gradient(135deg, rgba(10, 10, 14, 0.95), rgba(20, 16, 8, 0.95));
    color: var(--amber);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow:
        0 0 18px rgba(255, 191, 73, 0.55),
        inset 0 0 12px rgba(0, 0, 0, 0.8);
    text-align: center;
    transition: all 0.18s ease-out;
}

.qs-engine-card:hover {
    box-shadow:
        0 0 22px rgba(255, 191, 73, 0.75),
        inset 0 0 14px rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 191, 73, 0.85);
}

/* ========================= */
/*  QUANTUMSELL SHELL        */
/* ========================= */

.qs-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    position: relative;
    top: 0;
}



/* ========================= */
/*  SIDEBAR UPGRADE          */
/* ========================= */

.qs-sidebar {
    border-right: 1px solid rgba(255, 191, 73, 0.35);
    background:
        linear-gradient(180deg, #050608 0%, #020203 100%),
        radial-gradient(circle at top, rgba(255, 191, 73, 0.12) 0%, transparent 55%);
    padding: 28px 22px;
    position: relative;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.8);
}

/* Circuit grid overlay */
.qs-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(255, 191, 73, 0.08) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.35;
    pointer-events: none;
}

.qs-sidebar-title {
    font-size: 1.2rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 24px;
    text-shadow: 0 0 14px rgba(255, 191, 73, 0.7);
}

.qs-sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.qs-sidebar-menu li {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--amber);
    cursor: pointer;
    border: 1px solid rgba(255, 191, 73, 0.25);
    background: rgba(255, 191, 73, 0.03);
    transition: all 0.18s ease-out;
    letter-spacing: 0.04em;
}

/* Hover glow */
.qs-sidebar-menu li:hover {
    border-color: rgba(255, 191, 73, 0.55);
    background: rgba(255, 191, 73, 0.12);
    box-shadow:
        0 0 14px rgba(255, 191, 73, 0.45),
        inset 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Active state */
.qs-sidebar-menu li.active {
    border-color: rgba(255, 191, 73, 0.85);
    background: rgba(255, 191, 73, 0.22);
    color: var(--amber);
    font-weight: 600;
    box-shadow:
        0 0 18px rgba(255, 191, 73, 0.75),
        inset 0 0 6px rgba(0, 0, 0, 0.6);
}

/* ========================= */
/*  MAIN PANEL UPGRADE       */
/* ========================= */

.qs-main-panel {
  .qs-dashboard-right-panel, .qs-right-panel {
    border-left: 1px solid rgba(212, 168, 87, 0.4) !important; /* Uses your amber accent color */
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3) !important; /* Soft shadow to separate it from the center panel */
}


#qs-module-frame {
    width: 100%;
    height: calc(100vh - 260px);
    border-radius: 16px;
    border: 1px solid rgba(255, 191, 73, 0.45);
    background: linear-gradient(135deg, #0b0b0f, #1a140a);
    box-shadow:
        0 0 28px rgba(255, 191, 73, 0.35),
        inset 0 0 18px rgba(0, 0, 0, 0.9);
}
/* ========================= */
/*  CORE LAYOUT FIX          */
/* ========================= */

/* 1. Global Flex Layout Wrapper */
.qs-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Stops horizontal page stretching */
}

/* 2. Left Navigation Sidebar */
#qs-left, .qs-sidebar-left {
    width: 220px;       /* Set explicit width for left nav */
    flex-shrink: 0;     /* Keeps left nav fixed */
    box-sizing: border-box;
}

/* 3. Center Panel */
#qs-center {
    flex: 1 0 820px;   /* Prevent shrinking below 900px */
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}


/* 4. Right Sidebar */
.qs-dashboard-right-panel, .qs-right-panel {
    position: fixed !important;
    top: 0 !important;
    right: 45px !important; /* Moves it slightly left so the window scrollbar stays visible */
    width: 285px !important;  /* Adjusted slightly to maintain clean proportions */
    height: 100vh !important;
    z-index: 999 !important;
    background-color: #0b0b0b !important;
    border-left: 1px solid rgba(212, 168, 87, 0.4) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

/* Ensure the main page shell leaves proper breathing room on the right */
.qs-shell {
    padding-right: 300px !important;
    box-sizing: border-box !important;
}

/* Ensure the main shell leaves room on the right so content doesn't go under the panel */
.qs-shell {
    padding-right: 310px !important;
    box-sizing: border-box !important;
}

/* Prevent the center panel content from stretching too far into the right panel */
#qs-center, .qs-main-panel {
    box-sizing: border-box !important;
}
}

/* 5. Automatic Card & Button Grids (Dashboard & Dynamic Pages) */
.qs-card-grid, 
#qs-center .grid, 
#qs-center div[class*="grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important; /* SINGLE COLUMN */
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* 6. Enforce inner element constraints */
#qs-center * {
    max-width: 100%;
    box-sizing: border-box;
}

/* 3. Fixed Right Panel */
#qs-right {
    width: 360px;
    flex-shrink: 0; /* Ensures right panel stays fixed at 360px */
    box-sizing: border-box;
}


.qs-module-body {
    flex: 1;
    max-width: calc(100% - 300px);
    overflow-x: hidden;
}

.qs-dashboard-right-panel {
    position: fixed;
    top: 30px;
    right: 0;
    width: 270px;
    height: calc(100vh - 30px); /* Restricts panel to full viewport height minus top offset */
    overflow-y: auto;          /* Enables scrollbar when content exceeds panel height */
    box-sizing: border-box;    /* Ensures padding doesn't push width out */
}
.qs-right-section {
    margin-bottom: 22px;
}

.qs-right-header {
    font-size: 1.1rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,191,73,0.4);
}

.qs-right-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.qs-right-card:hover {
    box-shadow: 0 0 12px rgba(255,191,73,0.5);
    transform: translateY(-2px);
}
/* ========================= */
/*  GLOBAL SCROLL & BODY FIX */
/* ========================= */

html, body {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}



/* ========================= */
/*  MODULE PAGE STYLES       */
/* ========================= */

.qs-module-body {
    padding: 24px;
    background: var(--bg-panel);
    color: var(--amber);
}

.qs-module-title {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: var(--amber);
}

.qs-module-desc {
    font-size: 0.95rem;
    color: var(--amber);
    opacity: 0.85;
    margin-bottom: 20px;
}

.qs-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.qs-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 191, 73, 0.55);
    background: linear-gradient(135deg, #0b0b0f, #1a140a);
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow:
        0 0 16px rgba(255, 191, 73, 0.45),
        inset 0 0 12px rgba(0, 0, 0, 0.8);
}
.qs-card {
    width: 85%;
    justify-self: start;
}

/* ========================= */
/*  QUANTUMSELL ENGINE CORE  */
/* ========================= */

.qs-engine-core {
    padding: 30px;
    background: linear-gradient(135deg, #0b0b0f, #1a140a);
    border: 1px solid rgba(255,191,73,0.4);
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: 0 0 22px rgba(255,191,73,0.35);
}

.qs-engine-core-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber);
    margin-bottom: 6px;
}

.qs-engine-core-sub {
    font-size: 0.95rem;
    opacity: 0.85;
    color: var(--amber);
    margin-bottom: 22px;
}

.qs-engine-core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.qs-engine-core-item {
    padding: 14px;
    border-radius: 10px;
    background: #111;
    border: 1px solid rgba(255,191,73,0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qs-engine-label {
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qs-engine-status {
    font-weight: bold;
    text-transform: uppercase;
}

/* Pulse Animations */
.pulse-green { color: #4cff8a; animation: pulse 1.8s infinite; }
.pulse-blue { color: #4cbaff; animation: pulse 1.8s infinite; }
.pulse-yellow { color: #ffdd4c; animation: pulse 1.8s infinite; }
.pulse-orange { color: #ff9a4c; animation: pulse 1.8s infinite; }
.pulse-red { color: #ff4c4c; animation: pulse 1.8s infinite; }
.pulse-purple { color: #c04cff; animation: pulse 1.8s infinite; }

@keyframes pulse {
    0% { opacity: 0.55; }
    50% { opacity: 1; }
    100% { opacity: 0.55; }
}

/* ========================= */
/*  SETTINGS OVERLAY         */
/* ========================= */

.qs-settings-float {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 20;
}

.qs-settings-button {
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 191, 73, 0.12);
    border: 1px solid rgba(255, 191, 73, 0.55);
    color: var(--amber);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease-out;
    box-shadow:
        0 0 14px rgba(255, 191, 73, 0.45),
        inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.qs-settings-button:hover {
    background: rgba(255, 191, 73, 0.22);
    border-color: rgba(255, 191, 73, 0.85);
    box-shadow:
        0 0 18px rgba(255, 191, 73, 0.75),
        inset 0 0 12px rgba(0, 0, 0, 0.9);
}
/* ========================= */
/*  SMALL BUTTONS (Edit/Delete) */
/* ========================= */

.qs-btn-small {
    padding: 6px 10px;
    background: rgba(15, 17, 21, 0.85); /* ForgeCore black */
    border: 1px solid rgba(255, 191, 73, 0.35); /* amber stroke */
    color: var(--amber);
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.qs-btn-small:hover {
    background: rgba(255, 191, 73, 0.25); /* amber glow */
}

/* ========================= */
/*  SETTINGS TAB BUTTONS     */
/* ========================= */

.qs-settings-page .qs-settings-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.qs-settings-page .qs-tab-btn {
    background: rgba(255, 191, 73, 0.08);
    color: var(--amber);
    border: 1px solid rgba(255, 191, 73, 0.45);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.18s ease-out;
    box-shadow:
        0 0 12px rgba(255, 191, 73, 0.25),
        inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.qs-settings-page .qs-tab-btn:hover {
    background: rgba(255, 191, 73, 0.18);
    border-color: rgba(255, 191, 73, 0.75);
    box-shadow:
        0 0 16px rgba(255, 191, 73, 0.45),
        inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.qs-settings-page .qs-tab-btn.active {
    background: rgba(255, 191, 73, 0.22);
    border-color: rgba(255, 191, 73, 0.85);
    font-weight: 600;
    box-shadow:
        0 0 18px rgba(255, 191, 73, 0.75),
        inset 0 0 12px rgba(0, 0, 0, 0.8);
}
/* ========================= */
/*  SETTINGS TAB SPACING     */
/* ========================= */

.qs-settings-page .qs-tab-panel.active {
    margin-top: 24px; /* clean spacing */
}
/* Spacing between tab button card-grid and content card-grid */
.qs-settings-page .qs-card-grid + .qs-card-grid {
    margin-top: 24px;
}
/* Move the entire bottom block downward */
.qs-settings-page .qs-card-grid:nth-of-type(3) {
    margin-top: 28px; /* adjust as needed */
}
/* Force spacing under the bottom Settings block */
.qs-settings-bottom-block {
    margin-top: 32px !important;
}
/* Prevent collapse of bottom Settings block */
.qs-settings-bottom {
    min-height: 240px; /* adjust as needed */
}
.qs-settings-bottom {
    min-height: 240px;
    margin-top: 24px;
}
/* Spacing for bottom Settings block */
.qs-settings-bottom-container {
    margin-top: 32px;
    display: block; /* breaks grid collapse */
}
/* ========================= */
/*  ADD PRODUCT FORM         */
/* ========================= */

.qs-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qs-label {
    color: var(--amber);
    font-size: 14px;
    font-weight: bold;
}

.qs-btn {
    padding: 12px;
    background: rgba(255, 191, 73, 0.15);
    border: 1px solid rgba(255, 191, 73, 0.4);
    color: var(--amber);
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.qs-btn:hover {
    background: rgba(255, 191, 73, 0.25);
}
/* ========================= */
/*  FORGECORE INPUT THEME    */
/* ========================= */

.qs-input,
.qs-input:focus,
.qs-input:hover,
textarea.qs-input {
    background: rgba(15, 17, 21, 0.85); /* ForgeCore black */
    border: 1px solid rgba(255, 191, 73, 0.35); /* amber stroke */
    color: var(--amber);
    outline: none;
}

.qs-input::placeholder {
    color: rgba(255, 191, 73, 0.35); /* amber placeholder */
}
/* BRAND FIX FOR DASHBOARD CARDS */
.qs-card {
    background: #000;                 /* Black background */
    border: 2px solid #ff8c00;        /* Amber/orange stroke */
    border-radius: 10px;
    padding: 20px;
    color: #ff8c00;                   /* Brand text color */
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.3);
}

/* Card titles */
.qs-card-title {
    color: #ff8c00;                   /* Amber/orange */
    font-weight: bold;
}

/* Card text */
.qs-card p {
    color: #ccc;                      /* Soft gray for readability */
}
/* ============================
   HYBRID FORGECORE DASHBOARD THEME
   Dark Gray + Amber/Orange + Gold Glow
   ============================ */

/* Dashboard Header */
.qs-module-header {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

/* Dashboard Title */
.qs-module-title {
    color: #ff8c00; /* Amber */
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
}

/* Dashboard Description */
.qs-module-desc {
    color: #ccc;
}

/* Divider */
.qs-module-divider {
    height: 2px;
    background: linear-gradient(to right, #ff8c00, #ff5c00);
    margin-top: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
}

/* ============================
   DASHBOARD CARDS
   ============================ */
.qs-card {
    background: #111; /* Dark gray hybrid background */
    border: 2px solid #ff8c00; /* Amber stroke */
    border-radius: 10px;
    padding: 20px;
    color: #ccc; /* Soft readable text */
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.3);
}

/* Card Titles */
.qs-card-title {
    color: #ff8c00; /* Amber */
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 140, 0, 0.4);
}

/* Card Text */
.qs-card p {
    color: #ccc;
}
/* ============================
   FORGECORE HYBRID BRAND THEME
   Dark Gray + Amber + Orange Stroke + Gold Glow
   ============================ */

/* Page Body */
.qs-module-body {
    background: #0d0d0f; /* Dark graphite */
    color: #ccc;
    padding: 20px;
}

/* Header */
.qs-module-header {
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.qs-module-title {
    color: #ff8c00; /* Amber */
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
}

.qs-module-desc {
    color: #ccc;
    font-size: 14px;
}

.qs-module-divider {
    height: 2px;
    background: linear-gradient(to right, #ff8c00, #ff5c00);
    margin-top: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
}

/* ============================
   DASHBOARD CARDS
   ============================ */

.qs-card {
    background: #111; /* Hybrid dark gray */
    border: 2px solid #ff8c00; /* Amber stroke */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.3);
}

.qs-card-title {
    color: #ff8c00;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 6px rgba(255, 140, 0, 0.4);
}

.qs-card p {
    color: #ccc;
    font-size: 14px;
}

/* ============================
   BUTTONS (Brand Style)
   ============================ */

button {
    background: #111;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover {
    background: #ff8c00;
    color: #000;
}
:root {
    --amber: #d4a857;        /* QuantumSell Gold */
    --amber-soft: #e8c98a;   /* Soft Gold */
    --text-primary: #d4a857; /* Gold text */
    --text-secondary: #e0e0e8;

    --bg-dark: #111118;      /* Original dark gray background */
    --bg-panel: #1b1b1f;     /* Original panel gray */
    
    /* Matching subtle glow opacity using your gold hex */
    --gold-glow: rgba(212, 168, 87, 0.35);
}



/* Muted secondary body text */
p, .subtitle, small, .description {
    color: var(--amber-soft) !important;
}



/* 3. Panel & Card Glow Effects */
button, 
.card, 
.panel, 
.box, 
.dashboard-card,
.nav-item {
    border-color: var(--amber) !important;
    box-shadow: 0 0 8px var(--gold-glow) !important;
}

/* 4. Horizontal Dividers & Lines */
hr, .divider, .separator {
    background-color: var(--amber) !important;
    border-color: var(--amber) !important;
    height: 1px;
    opacity: 0.8;
}
/* Pin Right Panel to Top Right */
.qs-dashboard-right-panel, .qs-right-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important; /* Adjust if your width is slightly different */
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important; /* Allows scrolling only inside the panel if content is long */
    box-sizing: border-box !important;
    z-index: 100 !important;
}


/* Action Buttons inside Right Panel */
.qs-right-btn {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #111118;
    color: var(--amber, #d4a857) !important;
    border: 1px solid var(--amber, #d4a857) !important;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qs-right-btn:hover {
    background-color: var(--amber, #d4a857);
    color: #111118 !important;
    box-shadow: 0 0 8px rgba(212, 168, 87, 0.5);
}
/* 1. Expand Main App Container to make room on the right */
body, .app-container, .main-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 320px !important; /* Creates equal spacing on the right side */
    box-sizing: border-box !important;
}

/* 2. Position Right Panel cleanly outside the header area */
.qs-dashboard-right-panel {
  margin-top: 18px; /* Adjust this value (e.g., 15px–22px) if you need fine-tuning */
  align-self: flex-start; /* Ensures it doesn't auto-stretch to full container height */
}



/* 4. Card Styling */
.qs-right-card {
    background-color: var(--bg-panel, #1b1b1f) !important;
    border: 1px solid var(--amber, #d4a857) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    box-shadow: 0 0 12px rgba(212, 168, 87, 0.25) !important;
}

.qs-right-card .qs-card-title {
    color: var(--amber, #d4a857) !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
}

.qs-right-card p {
    color: var(--amber-soft, #e8c98a) !important;
    font-size: 11px !important;
    margin-bottom: 12px !important;
    text-transform: uppercase;
}

/* Action Buttons */
.qs-right-btn {
    background: #ffb700;
    color: #000;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 10px; /* FIX SPACING */
}
.qs-right-btn {
    background: #ffb700;
    color: #000;
    border: none;
    padding: 10px 18px;
    font-weight: bold;
    font-size: 15px; /* TEXT SIZE FIX */
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 12px; /* spacing improved */
}

.qs-right-btn:hover {
    background-color: var(--amber, #d4a857) !important;
    color: #111118 !important;
    box-shadow: 0 0 8px rgba(212, 168, 87, 0.5) !important;
}
/* Vertical Divider Line - Correct Position */
.qs-dashboard-right-panel::before {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;

    /* ⭐ This is the correct alignment */
    right: 320px !important;

    width: 1px !important;
    background-color: var(--amber, #d4a857) !important;
    box-shadow: 0 0 8px rgba(212, 168, 87, 0.4) !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
    z-index: 99998 !important;
}
/* 1. Expand Main App Container to make room on the right */

    max-width: 200% !important;
    width: 100% !important;
    padding-right: 320px !important; /* Creates equal spacing on the right side */
    box-sizing: border-box !important;
}



/* 3. Outer Divider Line (Positioned cleanly between Header grid & Right Panel) */
body::after {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0px !important;          /* Sits precisely between header buttons & right card */
    width: 1px !important;
    background-color: var(--amber, #d4a857) !important;
    box-shadow: 0 0 8px rgba(212, 168, 87, 0.4) !important;
    opacity: 0.6 !important;
    z-index: 99998 !important;
    pointer-events: none !important;
}

/* 4. Card Styling */
.qs-right-card {
    background-color: var(--bg-panel, #1b1b1f) !important;
    border: 1px solid var(--amber, #d4a857) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    box-shadow: 0 0 12px rgba(212, 168, 87, 0.25) !important;
}

.qs-right-card .qs-card-title {
    color: var(--amber, #d4a857) !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
}

.qs-right-card p {
    color: var(--amber-soft, #e8c98a) !important;
    font-size: 11px !important;
    margin-bottom: 12px !important;
    text-transform: uppercase;
}

/* Action Buttons */
.qs-right-btn {
    display: inline-block !important;
    margin-right: 4px !important;
    margin-bottom: 6px !important;
    padding: 6px 10px !important;
    background-color: #111118 !important;
    color: var(--amber, #d4a857) !important;
    border: 1px solid var(--amber, #d4a857) !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.qs-right-btn:hover {
    background-color: var(--amber, #d4a857) !important;
    color: #111118 !important;
    box-shadow: 0 0 8px rgba(212, 168, 87, 0.5) !important;
}
.qs-module-body,
.dashboard-container,
.qs-card-grid {
    width: 120% !important;
    max-width: none !important;
}
#qs-module-frame {
    width: 100% !important;
    max-width: 100% !important;
}
/* ============================================================
   FORGECORE — FIX SIDEBAR ALIGNMENT UNDER TOP HEADER
   ============================================================ */

.fc-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 64px); /* subtract top header height */
    margin-top: 64px; /* match your top header height */
}

.fc-sidebar {
    width: 240px;
    min-width: 240px;
    max-width: 240px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 24px;
    padding-top: 32px;

    background: #0A0A0A;
    border-right: 1px solid #1A1A1A;

    position: fixed;
    top: 64px; /* EXACT height of your top header */
    left: 0;
    bottom: 0;

    overflow-y: auto;
    z-index: 10;
}

.fc-sidebar * {
    color: #FFB000 !important;
}

.fc-nav-item,
.fc-nav-section-label {
    width: 100%;
    text-align: left;
}
/* Container spacing */
.qs-dalle-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* space between label and textarea */
}

/* Label styling */
.qs-dalle-field label {
    font-size: 14px;
    color: #E6E6E6; /* ForgeCore text */
}

/* Textarea styling */
#qs-dalle-prompt {
    background-color: #13161F;      /* ForgeCore dark surface */
    color: #E6E6E6;                 /* ForgeCore text */
    border: 1px solid #FF6A00;      /* ForgeCore orange stroke */
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    resize: vertical;               /* allow resizing if needed */
    min-height: 120px;              /* ensures non-cramped height */
}

/* Placeholder styling */
#qs-dalle-prompt::placeholder {
    color: #B8B8B8;                 /* soft gray */
    opacity: 1;
}

/* Focus styling */
#qs-dalle-prompt:focus {
    outline: none;
    border-color: #FFB000;          /* ForgeCore amber */
    box-shadow: 0 0 8px #FFB00055;
}
.qs-realism-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qs-realism-field label {
    font-size: 14px;
    color: #E6E6E6;
}

#qs-realism-prompt {
    background-color: #13161F;
    color: #E6E6E6;
    border: 1px solid #FF6A00;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

#qs-realism-prompt::placeholder {
    color: #B8B8B8;
    opacity: 1;
}

#qs-realism-prompt:focus {
    outline: none;
    border-color: #FFB000;
    box-shadow: 0 0 8px #FFB00055;
}
.qs-digitizer-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qs-digitizer-field label {
    font-size: 14px;
    color: #E6E6E6;
}

#qs-digitizer-prompt {
    background-color: #13161F;
    color: #E6E6E6;
    border: 1px solid #FF6A00;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

#qs-digitizer-prompt::placeholder {
    color: #B8B8B8;
    opacity: 1;
}

#qs-digitizer-prompt:focus {
    outline: none;
    border-color: #FFB000;
    box-shadow: 0 0 8px #FFB00055;
}
.qs-embroidery-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qs-embroidery-field label {
    font-size: 14px;
    color: #E6E6E6;
}

#qs-embroidery-prompt {
    background-color: #13161F;
    color: #E6E6E6;
    border: 1px solid #FF6A00;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

#qs-embroidery-prompt::placeholder {
    color: #B8B8B8;
    opacity: 1;
}

#qs-embroidery-prompt:focus {
    outline: none;
    border-color: #FFB000;
    box-shadow: 0 0 8px #FFB00055;
}
.qs-hyperreal-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qs-hyperreal-field label {
    font-size: 14px;
    color: #E6E6E6;
}

#qs-hyperreal-prompt {
    background-color: #13161F;
    color: #E6E6E6;
    border: 1px solid #FF6A00;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

#qs-hyperreal-prompt::placeholder {
    color: #B8B8B8;
    opacity: 1;
}

#qs-hyperreal-prompt:focus {
    outline: none;
    border-color: #FFB000;
    box-shadow: 0 0 8px #FFB00055;
}
.qs-pipeline-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qs-pipeline-field label {
    font-size: 14px;
    color: #E6E6E6;
}

#qs-pipeline-prompt {
    background-color: #13161F;
    color: #E6E6E6;
    border: 1px solid #FF6A00;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

#qs-pipeline-prompt::placeholder {
    color: #B8B8B8;
    opacity: 1;
}

#qs-pipeline-prompt:focus {
    outline: none;
    border-color: #FFB000;
    box-shadow: 0 0 8px #FFB00055;
}
/* QEP Pipeline spacing */
.qs-panel h2 {
    margin-top: 20px;
}
#qs-ai-engine-status {
    font-weight: 600;
    color: #FFB000;
}

.qs-engine-processing {
    color: #FF6A00;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: .4; }
    100% { opacity: 1; }
}
.qs-engine-list span {
  font-weight: 600;
  color: #FFB000;
}

.qs-engine-processing {
  color: #FF6A00 !important;
  animation: qsPulse 1s infinite;
}

@keyframes qsPulse {
  0% { opacity: 1; }
  50% { opacity: .4; }
  100% { opacity: 1; }
}
.qs-engine-list span {
  font-weight: 600;
  color: #FFB000;
}

.qs-engine-processing {
  color: #FF6A00 !important;
  animation: qsPulse 1s infinite;
}

@keyframes qsPulse {
  0% { opacity: 1; }
  50% { opacity: .4; }
  100% { opacity: 1; }
}
.qs-health-list span {
  font-weight: 600;
  color: #FFB000;
}

.qs-health-warning {
  color: #FF6A00 !important;
}

.qs-health-error {
  color: #FF3B3B !important;
}
/* ============================================================
   QUANTUMSELL — MOBILE COMPRESSION MODE (ForgeCore OS)
   ============================================================ */

@media (max-width: 768px) {

  /* GLOBAL COMPRESSION */
  body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    background: #0A0A0A;
  }

  /* MAIN CONTENT COLUMN */
  .qs-main {
    max-width: 100%;
    margin: 0;
    padding: 0 0.75rem;
  }

  /* HERO */
  .qs-hero {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }

  .qs-title {
    font-size: 1.4rem;
  }

  .qs-subtitle {
    font-size: 0.85rem;
  }

  /* KEYMAKER BLOCK */
  #qs-keymaker-section {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .qs-keymaker-box {
    width: 100%;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 10px;
  }

  .qs-keymaker-input-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .qs-keymaker-btn {
    width: 100%;
    padding: 0.85rem;
  }

  /* ENGINE GRID COMPRESSION */
  .qs-engine-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 1.5rem;
  }

  .qs-engine-card {
    padding: 0.85rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  /* SIDEBAR COMPRESSION */
  .qs-sidebar {
    width: 100%;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #FF6A00;
  }

  .qs-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .qs-sidebar li {
    flex: 1 1 45%;
    background: #0A0A0A;
    border: 1px solid #FF6A00;
    padding: 0.5rem;
    text-align: center;
    border-radius: 6px;
    font-size: 0.85rem;
  }

  /* RIGHT STATUS PANEL COMPRESSION */
  .qs-status-panel {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid #FF6A00;
    border-radius: 10px;
  }

  .qs-status-item {
    font-size: 0.85rem;
    padding: 0.35rem 0;
  }

  /* BUTTON TOUCH TARGETS */
  button,
  .qs-engine-card {
    min-height: 48px;
  }
}



