* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
}

.beta-tag {
  background: rgba(66, 133, 244, 0.12);
  color: #4285f4;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Top Navigation Bar */
.nav {
  width: 100%;
  height: 48px;
  background-color: #070707;
  border-bottom: 1px solid #3f3f46;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  user-select: none;
  flex-shrink: 0;
  /* prevent shrinking */
}

/* Main Content Area (fills rest below nav) */
.workable {
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;

  z-index: 0;
}

.session_manager_container {
  position: absolute;
  top: 0px;
  right: 0px;

  width: 100%;
  height: 100%;
  margin: 0 auto;
  background: #252526;
  border: 1px solid #3e3e42;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;

  transition: 0.3s all;

  opacity: 1;

  z-index: 2;
}

.session_manager_container.collapsed {
  height: 0px;
  opacity: 0;
}

.canvas-options {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 100%;
  height: 100%;

  z-index: 2;
  pointer-events: none;
}

.canvas-options.hidden {
  display: none;
}

.beta-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  background: #31353b;
  border-radius: 4px;
  color: #84a8bd;
  display: inline-block;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  width: 100%;
}

.company-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

/* Base Layout */
.software-nav-container {
  display: flex;
  align-items: center;
  color: #e0e0e0;
  font-size: 14px;
  padding: 0 10px;
  user-select: none;
  height: 100%;
  width: 100%;
  justify-content: space-between;
}

/* 1. The Info/Tooltip Panel (Left Side) */
.nav-info-panel {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #555;

  width: 220px;
  /* fixed width (instead of min-width) */
  flex-shrink: 0;
  /* prevent it from shrinking */
  white-space: nowrap;
  /* prevent line breaks */
  overflow: hidden;
  /* hide overflow */
  text-overflow: ellipsis;
  /* show ... when overflow */

  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;

  opacity: 0.5;
  transition: opacity 0.2s;
}

.nav-info-panel.active {
  opacity: 1;
}

.nav-info-heading {
  font-weight: bold;
  font-size: 11px;
  color: #86b0da;
  /* Accent color */
  line-height: 1.2;
}

.nav-info-desc {
  font-size: 10px;
  color: #aaa;
  line-height: 1.2;
}

/* 2. Menu Triggers (File, Edit, etc) */
.menu-trigger {
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;

  /* Prevent line break + enable ellipsis */
  white-space: nowrap;
  text-overflow: ellipsis;

  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-trigger:hover,
.menu-trigger.active {
  background-color: #444;
}

/* 3. Dropdowns */
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  min-width: 220px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #444;
  z-index: 1000;
  padding: 5px 0;
}

.menu-trigger.active .menu-dropdown {
  display: block;
}

/* 4. Menu Items */
.menu-item {
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.menu-item:hover {
  background-color: #007acc;
  /* VS Code blue */
  color: white;
}

.menu-item-shortcut {
  font-size: 12px;
  opacity: 0.7;
}

.menu-separator {
  height: 1px;
  background-color: #555;
  margin: 4px 0;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgb(0, 0, 0);
  height: 100vh;
  overflow: hidden;
}

.feature-list {
  text-align: left;
  display: inline-block;
}

.feature-item {
  display: flex;
  align-items: center;
  margin: 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  /* readable on dark */
}

.feature-item::before {
  content: "✓";
  display: inline-flex;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  background: #fff;
  /* white checkmark background */
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #111;
  /* dark checkmark inside white circle */
  font-weight: bold;
  font-size: 12px;
}

/* --- Stats Sidebar --- */
.stats-sidebar {
  position: absolute;
  top: 0;
  right: 0%;
  /* sits just left of chat panel */
  width: 320px;
  height: 100vh;
  background: #1a1a1a;
  color: #eee;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.4);
  transform: translateX(50vw);
  transition: transform 0.3s ease-in-out;
  z-index: 1;
  /* above canvas */
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.stats-sidebar.open {
  transform: translateX(0);
  pointer-events: all;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 15px 20px;
  border-bottom: 1px solid #333;
}

.stats-header h2 {
  margin: 0;
  font-size: 18px;
}

.stats-header button {
  background: none;
  border: none;
  color: #eee;
  font-size: 20px;
  cursor: pointer;
}

.stats-content {
  padding: 0px;
  overflow-y: auto;
  padding-bottom: 25vh;
}

/* --- Toggle Button --- */
.stats-toggle-btn {
  position: absolute;
  top: 20px;
  right: 10px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  border: 0.1px solid rgb(120, 120, 120);
  /* above sidebar */
  transition: background 0.2s;
  pointer-events: all;
}

.stats-toggle-btn.focus {
  right: 65px;
}

.stats-toggle-btn:hover {
  background: #555 !important;
}

.stats-toggle-btn.active {
  color: #2f2f2f;
  background: #f0f0f0;
}

.stats-toggle-btn.active:hover {
  background: #ffffff !important;
}

/* --- Dark Transparent Scrollbar --- */
.stats-content::-webkit-scrollbar {
  width: 6px;
  /* small and sleek */
}

.stats-content::-webkit-scrollbar-track {
  background: transparent;
  /* invisible track */
}

.stats-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  /* faint white */
  border-radius: 10px;
}

.stats-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
  /* brighter on hover */
}

/* Firefox (scrollbar styling) */
.stats-content {
  scrollbar-width: thin;
  /* small width */
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* GENERAL BUTTON STYLING */
button {
  width: 100%;
  padding: 10px;
  background: #fff;
  /* white button */
  border: 1px solid #444;
  /* subtle border */
  color: #111;
  /* dark text */
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover:not(:disabled) {
  background: #f0f0f0;
  /* light hover */
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #555;
  /* darker disabled button */
  color: #aaa;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* OPTION BUTTONS — Black & White, Square */
.option-btn {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  /* very thin white */
  border-radius: 3px;
  /* square-ish */
  background: #0f0f0f;
  cursor: pointer;

  font-size: 13px;
  font-weight: 500;
  color: #eee;
  text-align: left;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

/* Hover */
.option-btn:hover:not(:disabled) {
  border-color: #fff;
  background: #1a1a1a;
  transform: translateX(2px);
  /* very subtle */
}

/* Active / Selected */
.option-btn.active {
  border-color: #fff;
  background: #000;
  color: #fff;
}

/* Disabled */
.option-btn:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  background: #111;
  color: #777;
  cursor: not-allowed;
}

/* Description text */
.option-btn .desc {
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.3;
  color: #9a9a9a;
}

/* Coming soon label — muted, no color noise */
.option-btn.coming-soon::after {
  content: "COMING SOON";
  display: block;
  margin-top: 4px;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #666;
}

/* MESSAGES & CONTAINERS */
.chat-panel {
  display: flex;
  flex-direction: column;
  width: 30vw;
  height: 100%;

  background: #111;
  border-left: 1px solid #333;
  color: #eee;
  z-index: 2;
  opacity: 1;
  transition: 0.7s all;
}

/* When collapsed */
.chat-panel.collapsed {
  width: 0px;
  opacity: 0;
}

/* .chat-panel.collapsed .chat-header {
            display: none;
        }


        .chat-panel.collapsed .messages-container {
            display: none;
        } */

.chat-header {
  background: rgba(0, 0, 0, 0.6);
  /* semi-transparent black */
  color: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  /* glass blur effect */
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.chat-header p {
  font-size: 12px;
  opacity: 0.8;
}

.messages-container {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 20px 20vh 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;

  background-color: #141414;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%232a2f2e' stroke-width='0.5' fill='none' opacity='1'%3E%3Ccircle cx='20' cy='20' r='8' /%3E%3Ccircle cx='90' cy='30' r='6' /%3E%3Cpath d='M10 90 Q20 80 30 90 T50 90' /%3E%3Cpath d='M70 70 l15 -10 l5 20 z' /%3E%3Cpath d='M40 40 l10 -10 l10 10 l-10 10 z' /%3E%3Cpath d='M80 95 l10 10' /%3E%3Cpath d='M95 60 a8 8 0 0 1 -16 0 a8 8 0 0 1 16 0' /%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  background-repeat: repeat;
}

/* --- Dark Transparent Scrollbar --- */
.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.message {
  display: flex;
  gap: 8px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-message {
  justify-content: flex-start;
 
}

.ai-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #fff;
  /* avatar white background */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  /* dark text */
  font-weight: bold;
  font-size: 14px;
}



.ai-text {
  background: #222;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #333;
  color: #eee;
}

.ai-text strong {
  color: #fff;
}

/* ACTION CONTAINERS */
.action-container {
  width: 110%;
  background: #222;
  padding: 12px;
  /* border-radius: 12px; */
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Number input inside action container */
.action-container input[type="number"] {
  background: #111;
  color: #e5e7eb;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

/* Remove arrows – Chrome, Edge, Safari */
.action-container input[type="number"]::-webkit-outer-spin-button,
.action-container input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove arrows – Firefox */
.action-container input[type="number"] {
  -moz-appearance: textfield;
}

/* Hover (very subtle) */
.action-container input[type="number"]:hover {
  border-color: #333;
}

/* Focus (soft, not glowing) */
.action-container input[type="number"]:focus {
  border-color: #444;
  background: #0f0f0f;
}

/* Disabled state */
.action-container input[type="number"]:disabled {
  background: #1a1a1a;
  color: #6b7280;
  border-color: #2a2a2a;
  cursor: not-allowed;
}


.error-message {
  background: linear-gradient(180deg, #2a0000 0%, #1a0000 100%);
  border: 1px solid #552222;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff4c4c;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(255, 0, 0, 0.05);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  justify-content: center;
}

.success-message {
  background: linear-gradient(180deg, #001a00 0%, #000f00 100%);
  border: 1px solid #1e4422;
  padding: 10px 14px;
  font-size: 13px;
  color: #4cff4c;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0, 255, 0, 0.05);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  justify-content: center;
}

.error-message::before {
  content: "⚠";
  color: #ff5555;
  font-size: 14px;
}

#canvas {
  flex: 1;
  background: #1a1a1a;
}

#sidebar {
  width: 350px;
  background: #1a1a1a;
  border-left: 1px solid #333;
  overflow-y: auto;
  padding: 20px;
}

.upload-area {
  border: 2px dashed #666;
  /* lighter gray dashed border */
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #111;
  /* dark background */
  color: #eee;
  /* light text */
}

.upload-area:hover {
  border-color: #fff;
  /* white border on hover */
  background: #222;
  /* slightly lighter dark bg */
}

.upload-area.dragover {
  border-color: #2196f3;
  /* highlight when dragging */
  background: #0d2f52;
  /* deep blue overlay */
  color: #fff;
  /* ensure text remains visible */
}

.upload-area p {
  margin: 0;
  font-size: 14px;
  color: inherit;
  /* inherit text color */
}


.file-upload-container {
  border: 2px dashed #888;
  /* soft gray border for dark theme */
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #111;
  /* dark background */
  color: #eee;
  /* light text */
}

.file-upload-container:hover {
  border-color: #fff;
  /* white border on hover */
  background: #222;
  /* slightly lighter dark bg */
}

.file-upload-container.dragover {
  border-color: #2196f3;
  /* blue highlight on drag */
  background: #0d2f52;
  /* deep blue overlay */
  color: #fff;
  /* ensure text remains visible */
}

.file-upload-label {
  font-size: 12px;
  color: #fff;
  /* white label for dark theme */
  font-weight: 500;
  margin-bottom: 8px;
}

.file-upload-text {
  font-size: 11px;
  color: #aaa;
  /* soft gray for secondary text */
  margin-top: 4px;
}

#fileInput {
  display: none;
}

/* .progress-container {
            display: none;
            margin-bottom: 5px;
        }

        .progress-container.active {
            display: block;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: #333;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: #2196f3;
            width: 0%;
            transition: width 0.3s;
        }

        .progress-text {
            font-size: 11px;
            color: #999;
            margin: 6px 10px 0px 10px;
        } */

/* --- DARK AI PROGRESS OVERLAY --- */

/* Overlay container */
.progress-overlay {
  /* width: 50px; */
  position: fixed;
  left: 50%;
  bottom: 56px;
  /* offset from bottom */
  transform: translateX(-50%);
  z-index: 99999;
  pointer-events: none;

}

/* Card */
.progress-card {

  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(18, 18, 18, 0.92);
  /* translucent dark background */
  backdrop-filter: blur(10px) saturate(140%);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: 320px;
  min-width: 280px;
  pointer-events: auto;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(8px) translateX(-50%);
}

/* Active (visible) state */
.progress-overlay.active .progress-card {
  opacity: 1;
  transform: translateY(0) translateX(-50%);
}


.stats-grid {
  display: grid;
  gap: 15px;
}

.stat-group {
  background: #222;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
}

.stat-group h3 {
  font-size: 12px;
  margin-bottom: 8px;
  color: #2196f3;
}

.stat-group p {
  line-height: 1.6;
  color: #bbb;
  font-size: 12px;
  margin: 0;
  padding: 0;
}

.stat-group .sub {
  color: #999;
  margin-top: 6px;
}

.stat-group .indent {
  margin-left: 12px;
}

/* ===== Bottom Navigation Bar ===== */
.bottom-nav {
  position: absolute;
  bottom: 0px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  background: rgba(15, 15, 15, 0.95);
  z-index: 3;
  pointer-events: all;
  border-top: 0.1px solid rgb(51, 51, 51);
  width: 100%;
  padding: 0px 8px;
  height: 35px;
}

/* Group for Model / Config */
.bottom-nav-group {
  display: flex;
  width: max-content;
  background: rgb(37, 37, 37);
  padding: 0px 5px;
  gap: 3px;
  height: 100%;
}

/* Buttons */
.bottom-nav .nav-btn {
  background: transparent;
  border: none;
  color: #cfcfcf;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0px !important;
  white-space: nowrap;
  width: max-content;
  letter-spacing: 0.5px;
  font-weight: 400;
  height: 100%;
}

/* Hover ONLY for non-active buttons */
.bottom-nav .nav-btn:not(.active):hover {
  background: rgba(97, 97, 97, 0.568);
  color: #ffffff;
}

/* Active tab */
.bottom-nav .nav-btn.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

/* Visibility button */
.bottom-nav .visibility-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 500;
}

.bottom-nav .visibility-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.visibility-panel {
  width: max-content;
  height: 100%;
}

/* Header (always visible) */
.visibility-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 212, 255, 0.15);
  padding: 0px 10px;
  height: 100%;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.visibility-header h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: #00d4ff;
}

/* The toggle button inside header */
#toggleVisibilityBtn {
  background: transparent;
  color: #00d4ff;
  border: none;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

/* Expandable content */
.visibility-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform-origin: bottom;
  transition: all 0.25s ease;
  background-color: rgb(17, 17, 17);
  transform: translateY(calc(-50% - 40px));
}

/* Expanded state */
.visibility-panel.expanded .visibility-content {
  max-height: 350px;
  opacity: 1;
  transform: translateY(calc(-100% - 40px));
}

/* Flip arrow when expanded */
.visibility-panel.expanded #toggleVisibilityBtn {
  transform: rotate(180deg);
}

/* Checkbox layout */
.visibility-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.visibility-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
  padding: 5px;
}

.visibility-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.visibility-item input[type="checkbox"] {
  accent-color: #00d4ff;
  transform: scale(0.85);
  cursor: pointer;
}

.visibility-item label {
  flex: 1;
  margin-left: 6px;
  cursor: pointer;
  font-size: 12px;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 8px;
  flex-shrink: 0;
}

.loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #667eea;
}

.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid #667eea;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.stat-message {
  max-width: 420px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px;


}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: #eaeaea;
  /* border: 1px solid red; */
}

.stat-grid-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
  
}

.stat-item-small .label {
  font-size: 11px;
  opacity: 0.8;
}

.stat-item-small .value {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.stat-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn.small {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ddd;
  cursor: pointer;
}

.btn.small:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.stat-message {
  background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
  border-radius: 16px;
  padding: 20px;
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 15px;
  color: #cccccc;
}

.stat-header strong {
  font-size: 17px;
  color: #ffffff;
  font-weight: 600;
}

.stat-header .ts {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #bbbbbb;
}
.message-content {
  width: 75%;
  max-width: 100%;   /* ❗ remove 75% */
  box-sizing: border-box;
}
/* Adaptive responsive grid */
/* .stat-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  font-size: 14px;
  border: 1px solid red;
} */

.stat-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}
.stat-card {
  width: 100%;
  box-sizing: border-box;
  background: #1a1a1a;
  border: 0.5px solid #302f2f;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-card.stat-pop {
  animation: popAnimation 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popAnimation {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.stat-icon {
  font-size: 26px;
  color: #9ca3af;
  /* muted gray-blue */
  min-width: 40px;
  text-align: center;
}

.stat-details {
  flex: 1;
  
}

.parking-card {
  background: linear-gradient(135deg, #2a2a2a, #212121);
}

.driveway-card {
  background: linear-gradient(135deg, #2d2d2d, #1f1f1f);
}

/* .session_manager_container {
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            background: #252526;
            border: 1px solid #3e3e42;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            height: 100%;
        } */

.session_manager_container .header {
  background: #2d2d30;
  border-bottom: 1px solid #3e3e42;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.session_manager_container .header .header-title {
  font-size: 16px;
  font-weight: 600;
  color: #cccccc;
  letter-spacing: 0.5px;
}

.session_manager_container .header .header-actions {
  display: flex;
  gap: 8px;
}

.session_manager_container .btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #3e3e42;
  background: #3c3c3c;
  color: #cccccc;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 2px;
  width: auto;
}

.session_manager_container .btn:hover {
  background: #505050;
  border-color: #505050;
}

.session_manager_container .btn-primary {
  background: #0e639c;
  border-color: #0e639c;
  color: white;
}

.session_manager_container .btn-primary:hover {
  background: #1177bb;
  border-color: #1177bb;
}

.session_manager_container .btn-danger {
  background: #c82333;
  border-color: #c82333;
  color: white;
}

.session_manager_container .btn-danger:hover {
  background: #e04b59;
  border-color: #e04b59;
}

.session_manager_container .table-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;

  width: 100%;
  height: 100%;
  padding: 0px 0px 15vh 0px;
}

/* For Chrome, Edge, Safari */
.session_manager_container .table-wrapper::-webkit-scrollbar {
  height: 6px;
  /* small horizontal scrollbar */
  width: 6px;
  /* small vertical scrollbar (if needed) */
}

.session_manager_container .table-wrapper::-webkit-scrollbar-track {
  background: transparent;
  /* fully transparent track */
}

.session_manager_container .table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(80, 80, 80, 0.6);
  /* dark semi-transparent thumb */
  border-radius: 4px;
}

.session_manager_container .table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.8);
  /* slightly lighter on hover */
}

/* For Firefox */
.session_manager_container .table-wrapper {
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 80, 80, 0.6) transparent;
}

.session_manager_container .table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.session_manager_container .table-wrapper table thead {
  background: #2d2d30;
  border-bottom: 2px solid #3e3e42;
  position: sticky;
  top: 0;
  z-index: 10;
}

.session_manager_container .table-wrapper table thead tr th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #cccccc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #3e3e42;
}

/* Add hover background for rows (no smooth transition) */
.session_manager_container .table-wrapper table thead tr th:hover {
  background-color: #262628;
  /* slightly darker than #2d2d30 */
}

.session_manager_container .table-wrapper table tbody tr {
  border-bottom: 1px solid #2d2d30;
  transition: background 0.1s;
}

.session_manager_container .table-wrapper table tbody tr:hover {
  background: #2a2d2e;
}

.session_manager_container .table-wrapper table tbody tr.expanded {
  background: #2a2d2e;
}

.session_manager_container .table-wrapper table tbody tr td {
  padding: 10px 12px;
  color: #d4d4d4;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* subtle soft border */
}

.session_manager_container .table-wrapper table tbody tr td .session-id {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 11px;
  color: #9cdcfe;
}

.session_manager_container .table-wrapper table tbody tr td .session-id {
  cursor: pointer;
  position: relative;
}

/* Optional fade animation when copied */
.session_manager_container .table-wrapper table tbody tr td .session-id.copied {
  color: #4caf50;
  /* green flash */
  transition: color 0.1s;
}

.session_manager_container .table-wrapper table tbody tr td .filename {
  font-weight: 500;
  color: #dcdcaa;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session_manager_container .table-wrapper table tbody tr td .filename-editable {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.session_manager_container
  .table-wrapper
  table
  tbody
  tr
  td
  .filename-editable:hover {
  color: #f0e68c;
}

.session_manager_container .table-wrapper table tbody tr td .edit-icon {
  opacity: 0;
  font-size: 10px;
  transition: opacity 0.2s;
}

.session_manager_container
  .table-wrapper
  table
  tbody
  tr
  td
  .filename-editable:hover
  .edit-icon {
  opacity: 1;
}

.session_manager_container .table-wrapper table tbody tr td .availability {
  display: flex;
  gap: 4px;
  align-items: center;
}

.session_manager_container .table-wrapper table tbody tr td .availability-box {
  width: 20px;
  height: 12px;
  border: 1px solid #3e3e42;
  background: #1e1e1e;
  border-radius: 2px;
  position: relative;
}

.session_manager_container
  .table-wrapper
  table
  tbody
  tr
  td
  .availability-box.active {
  background: #4ec9b0;
  border-color: #4ec9b0;
}

.session_manager_container
  .table-wrapper
  table
  tbody
  tr
  td
  .availability-box.partial {
  background: #ce9178;
  border-color: #ce9178;
}

.session_manager_container .table-wrapper table tbody tr td .timestamp {
  font-size: 12px;
  color: #858585;
}

.session_manager_container .actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.session_manager_container .btn-icon {
  padding: 5px 10px;
  font-size: 11px;
  min-width: auto;
}

.session_manager_container .details-row {
  display: none;
}

.session_manager_container .details-row.show {
  display: table-row;
}

.session_manager_container .details-cell {
  padding: 0 !important;
  background: #1e1e1e;
  border-top: 1px solid #3e3e42;
  border-bottom: 2px solid #3e3e42;
}

.session_manager_container .details-content {
  padding: 16px 20px;
}

.session_manager_container .details-title {
  font-size: 12px;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session_manager_container .settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.session_manager_container .setting-item {
  background: #252526;
  padding: 10px 12px;
  border: 1px solid #3e3e42;
  border-radius: 2px;
}

.session_manager_container .setting-label {
  font-size: 10px;
  color: #858585;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.session_manager_container .setting-value {
  font-size: 12px;
  color: #dcdcaa;
  font-family: "Consolas", "Monaco", monospace;
}

.session_manager_container .empty-state {
  padding: 60px 20px;
  text-align: center;
  color: #858585;
}

.session_manager_container .empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.session_manager_container .spinner {
  border: 2px solid #3e3e42;
  border-top: 2px solid #0e639c;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: session_manager_container_spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes session_manager_container_spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.session_manager_container .loading {
  padding: 40px;
  text-align: center;
  display: table-cell !important;
}

.session_manager_container .loading .loading-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Expand/Collapse icon */
.session_manager_container .expand-icon {
  cursor: pointer;
  user-select: none;
  color: #858585;
  transition: transform 0.2s;
  display: inline-block;
  width: 16px;
}

.session_manager_container .expand-icon.expanded {
  transform: rotate(90deg);
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #3e3e42;
  color: #d4d4d4;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 4px;
  z-index: 100;
}



/* =========================================================
   PROGRESS / AI STATUS — COMPACT DARK
========================================================= */

/* Body */
.progress-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
  overflow: hidden;
}

/* Main message */
.progress-message {
  font-size: 13px;
  font-weight: 600;
  color: #f3f4f6;
  letter-spacing: 0.15px;
  line-height: 1.25;

  /* Auto handle long text */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sub row */
.progress-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 14px;
}

/* =========================================================
   AI Dots — subtle + fun
========================================================= */

.ai-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ai-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5e7eb;
  opacity: 0.25;
  animation: aiPulse 1.15s infinite ease-in-out;
}

.ai-dots span:nth-child(1) { animation-delay: 0s; }
.ai-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiPulse {
  0%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-3px);
  }
}

/* =========================================================
   Percent
========================================================= */

.progress-percent {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  min-width: 38px;
  text-align: right;
  white-space: nowrap;
}

/* =========================================================
   Close button
========================================================= */

.progress-close {
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  border-radius: 50%;
  opacity: 0.6;
  width: 32px;
  height: 32px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.progress-close:hover {
  opacity: 1;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* =========================================================
   Hidden
========================================================= */

.progress-overlay[hidden] {
  display: none;
}

/* =========================================================
   Small screens
========================================================= */

@media (max-width: 420px) {
  .progress-message {
    font-size: 12px;
  }

  .progress-percent {
    font-size: 10.5px;
  }
}
