/* AutoReview Pro Corporate Theme */
/* Dark Mode (default) */
:root {
  --color-bg: #1a1e22;
  --color-surface: #2a2f36;
  --color-border: #3d4450;
  --color-accent: #00326B; 
  --color-accent-alt: #005a9e; 
  --color-text: #f5f7fa;
  --color-text-light: #a8b0bc;
  --color-warning: #ff6b4a;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --font-stack: "Segoe UI", Roboto, Arial, sans-serif;
  --transition: 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode */
body.light-mode {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-border: #d6d9de;
  --color-text: #1a1e22;
  --color-text-light: #5a626d;
  --color-warning: #d83b01;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-stack);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  color: var(--color-text);
}
.app-header {
  background: linear-gradient(
    120deg,
    var(--color-accent) 0%,
    var(--color-accent-alt) 70%
  );
  color: #fff;
  padding: 1.25rem 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Right panel height is controlled by flex, not max-content */

.logo-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.header-filter {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

input {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: black;
  font-family: var(--font-stack);
  background: rgba(255, 255, 255, 0.9);
}

.header-filter input::placeholder {
  color: var(--color-text-light);
}

.header-filter input:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: #fff;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-stack);
  background: #fff;
  color: var(--color-accent);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.header-filter button:hover {
  background: rgba(255, 255, 255, 0.9);
}

.header-filter button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.header-spacer {
  flex: 0 0 auto;
  width: 200px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

/* Settings Cog Dropdown */
.settings-container {
  position: relative;
  flex: 0 0 auto;
}

.settings-cog {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-cog:hover {
  background: rgba(255, 255, 255, 0.15);
}

.settings-cog:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.settings-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.settings-dropdown.show {
  display: flex;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: var(--font-stack);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}

.settings-item:hover {
  background: var(--color-bg);
}

.settings-item:focus {
  outline: none;
  background: var(--color-bg);
}

.settings-item i {
  width: 1.25rem;
  text-align: center;
  color: var(--color-text);
}

.settings-toggle {
  position: relative;
  justify-content: flex-start;
}

.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.settings-toggle .toggle-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--color-border);
  border-radius: 10px;
  margin-left: auto;
  transition: var(--transition);
}

.settings-toggle .toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.settings-toggle input:checked + .toggle-slider {
  background: var(--color-accent);
}

.settings-toggle input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.app-header h1 {
  font-size: 1.75rem;
  margin: 0;
  letter-spacing: 0.5px;
}
.tagline {
  margin: 0.25rem 0 0 4.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.app-main {
  flex: 1 1 auto;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  align-items: stretch;
  min-height: 0; /* allow children to shrink for scrolling */
}
.left-panel {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 280px;
  max-width: 420px;
  position: relative; /* allow absolute overlay inside */
}
.right-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0; /* enable flex child overflow */
  overflow: hidden; /* scroll inside children, not the card */
}

.flows-panel {
  flex: 1 1 auto;
  overflow: auto;
}

@media (max-width: 960px) {
  .app-main {
    flex-direction: column;
  }
  .left-panel {
    flex: none;
    max-width: none;
  }
  .tagline {
    margin-left: 0;
  }
}

.upload-panel,
.right-panel,
.flows-panel {
  background: var(--color-surface);
  padding: 1.25rem 1.5rem 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.modal {
  /* Match upload panel theme */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem 1.75rem;
  z-index: 1000;

  /* Fill available vertical space in left panel */
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
#modal-detail {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
#modal-detail pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow-x: auto;
}
.upload-panel h2,
.right-panel h2,
.flows-panel h2 {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

/* Flow list card under upload heading */
.flow-card {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fbfcfd;
}
.flow-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text-light);
}
.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.flow-row {
  display: block;
}
.flow-item {
  width: 100%;
  text-align: left;
  background: #eef3f8;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition), border-color var(--transition),
    transform var(--transition);
}
.flow-item:hover {
  background: #e1ecf5;
  border-color: var(--color-accent);
}
.flow-item:focus {
  outline: 2px solid var(--color-accent);
}
.flow-empty {
  color: var(--color-text-light);
  font-size: 0.85rem;
  padding: 0.25rem 0;
}

.drop-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  background: var(--color-surface);
  transition: border-color var(--transition), background var(--transition);
}
.drop-zone:focus {
  outline: 3px solid var(--color-accent);
}
.drop-zone.drag-over {
  background: var(--color-bg);
  border-color: var(--color-accent);
}
.drop-zone p {
  margin: 0 0 0.75rem;
}
.drop-zone .or {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
}

#zipInput {
  display: block;
  width: 100%;
  margin: 0.5rem auto 1rem;
}
#processBtn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
#processBtn:disabled {
  background: #b9cad8;
  cursor: not-allowed;
}
#processBtn:not(:disabled):hover {
  background: var(--color-accent-alt);
}
#processBtn:not(:disabled):active {
  transform: scale(0.97);
}
.status {
  min-height: 1.25rem;
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}
.status.error {
  color: var(--color-warning);
  font-weight: 600;
}

.tree-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.tree-controls button {
  background: #eef3f8;
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background var(--transition), border-color var(--transition);
}
.tree-controls button:hover {
  background: #e1ecf5;
  border-color: var(--color-accent);
}
.tree-controls input {
  flex: 1;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  background: var(--color-surface);
  color: var(--color-text);
}
.tree-controls input:focus {
  outline: 2px solid var(--color-accent);
}

.file-tree {
  font-size: 0.8rem;
  line-height: 1.4;
  position: relative;
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}
.tree-node {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.35rem 0.2rem 0.2rem;
  border-radius: var(--radius-sm);
  cursor: default;
  user-select: none;
}
.tree-node.folder {
  cursor: pointer;
}
.tree-node:hover {
  background: #f1f5f9;
}
.tree-node.selected,
.tree-node:focus {
  background: #e0f1ff;
  outline: 2px solid var(--color-accent);
}
.toggle {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-light);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}
.folder.collapsed > .tree-node > .toggle {
  background: #fff;
}
.folder.expanded > .tree-node > .toggle {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent-alt);
}
.toggle:hover {
  background: var(--color-accent-alt);
  color: #fff;
}

/* Show/hide children based on folder state */
.folder.collapsed > .children {
  display: none;
}
.folder.expanded > .children {
  display: block;
}
.left-panel .modal {
  /* Overlay within left panel */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;

  /* Match upload panel theme */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem 1.75rem;

  /* Fill available vertical space */
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.left-panel .modal .modal-content {
  display: flex;
  flex-direction: column;
  position: relative; /* position context for close button */
}

.left-panel .modal .close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-light);
}

.left-panel .modal .close:hover {
  color: var(--color-text);
}

.file.match {
  background: #fff7d6;
  border-radius: var(--radius-sm);
}

.app-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.7rem;
  color: var(--color-text-light);
}

/* Tabs in right panel */
.tabs-container {
  display: flex;
  align-items: center;
  margin: -0.25rem -0.5rem 0.75rem;
  padding: 0 0 0.25rem;
  border-bottom: 1px solid var(--color-border);
  width: calc(100% + 1rem); /* Account for negative margins */
  overflow-x: hidden; /* Prevent children from overflowing */
   min-height: 3rem;
}
.tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  flex-shrink: 1;
  min-width: 0;
  min-height: 2.5rem;
  scrollbar-gutter: stable; /* Reserve space for scrollbar */
}
.tabs-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  padding-right: 0.5rem;
  flex-shrink: 0; /* Prevent action buttons from shrinking */
}
.tabs-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.tabs-action-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
}
.tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-light);
  flex-shrink: 0;
  white-space: nowrap;
}
.tab[aria-hidden="true"] {
  display: none;
}
.tab[aria-selected="true"] {
  color: var(--color-text);
  border-color: var(--color-border);
  border-bottom-color: var(--color-surface);
  background: var(--color-surface);
}
.tab:focus {
  outline: 2px solid var(--color-accent);
}

.tab-content {
  display: none;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.tab-content[aria-hidden="false"] {
  display: flex;
}
.solution-body {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}

/* Scrollbars (WebKit) */
.file-tree::-webkit-scrollbar {
  width: 10px;
}
.file-tree::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.file-tree::-webkit-scrollbar-thumb {
  background: #c1ccd6;
  border-radius: 5px;
}
.file-tree::-webkit-scrollbar-thumb:hover {
  background: #9db1c2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #12181f;
    --color-surface: #1e262f;
    --color-border: #2f3b47;
    --color-text: #f1f5f9;
    --color-text-light: #9aa7b4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.02);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.6);
  }
  .upload-panel,
  .right-panel,
  .flows-panel {
    background: var(--color-surface);
  }
  .drop-zone {
    background: var(--color-surface);
  }
  .drop-zone.drag-over {
    background: #17334a;
  }
  .tree-controls button {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
  }
  .tree-controls button:hover {
    background: #314350;
  }
  .tree-controls input {
    background: var(--color-surface);
    color: var(--color-text);
  }
  .tree-node:hover {
    background: #26323e;
  }
  .folder.expanded > .tree-node > .toggle {
    background: var(--color-accent-alt);
  }
  .flow-card {
   background: var(--color-surface);
    border-color: var(--color-border);
  }
  .flow-item {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text);
  }
  .flow-item:hover {
    background: #314350;
  }
}

.table-responsive {
  border: 1px solid #dee2e6;
  width: 100%;   
  table-layout: fixed;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  word-wrap: break-word;
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 95%;
}

.table-responsive th,
.table-responsive td {
  border: 1px solid #dee2e6;
  padding: 5px; /* Add 15px padding to each cell */
}

.table-responsive th {
  background-color: var(--color-accent-alt);
  border-bottom: 2px solid #fff;
  color: white; /* Light grey background for header */
}

/* Webkit browsers (Chrome, Safari, newer Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent-alt);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-alt);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-alt) transparent;
}

.sideBySide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* force 50/50 */
  gap: 12px;
  align-items: start;
}

.sideBySide > * {
  min-width: 0;            /* allow content to shrink within the grid cell */
  max-width: 100%;         /* prevent overflow from stretching the column */
}

.close{
  position:relative;
  top:0;
  right:0;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    padding: 16px;
    padding-left: 20px;
    border-radius: 4px;
    background-color: var(--background-color, #ffffff);
    color: var(--text-color, #333333);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-in-out;
    border: 1px solid var(--border-color, #e0e0e0);
    position: relative;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.toast.success::before {
    background-color: var(--success-color, #4caf50);
}

.toast.information::before {
    background-color: var(--info-color, #00326B);
}

.toast.error::before {
    background-color: var(--error-color, #f44336);
}

.toast.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@media (prefers-color-scheme: dark) {
  .panel {
  
    border-color: var(--border-color-dark, #333);
  }
}

@media (max-width: 768px) {
  .sideBySide {
    grid-template-columns: 1fr;
  }
}

/* Social Icons in Header */
.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icons a {
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.social-icons .link {
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
}

.social-icons .file-input-label {
  background: #fff;
  color: var(--color-accent);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-stack);
  cursor: pointer;
  transition: var(--transition);
}

.social-icons .file-input-label:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Product Modal (Login Modal) */
.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.product-modal.active {
  display: flex;
}

.product-modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.product-modal-content h2 {
  margin-top: 0;
  color: var(--color-accent);
  font-size: 1.5rem;
}

.product-modal-content input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-stack);
  margin: 0.5rem 0;
}

.product-modal-content input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.product-modal-content .file-input-label {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-stack);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.product-modal-content .file-input-label:hover {
  background: var(--color-accent-alt);
}


/* Hero section mobile optimization */
.hero-section {
    padding: 2rem 1rem;
}

.hero-content {
    flex-direction: column;
    gap: 2rem;
}

.hero-text-block {
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;

    text-align: center;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-features-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.hero-features-list li {
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.hero-image-block {
    width: 100%;
    padding-top: 20px;
}

.hero-main-img {
    width: 100%;
    height: auto;
    max-width: 500px;
     display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Product cards mobile optimization */
.product-pricing-cards {
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    align-items: center;
}

.product-card {
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
    font-size: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.product-card .file-input-label {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: var(--transition);
}

.product-card .file-input-label:hover {
    background: var(--color-accent-alt);
}

.product-price {
    font-size: 2rem;
    margin: 1rem 0;
}

.product-features,
.features {
    font-size: 0.9rem;
}

.product-features li,
.features li {
    padding: 0.3rem 0;
}

/* Modal mobile optimization */
.product-modal-content {
    width: 90%;
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
}

.product-modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-modal-content input {
    font-size: 1rem;
    padding: 0.75rem !important;
    margin: 0.75rem 0 !important;
}

.product-modal-content button {
    font-size: 1rem;
    padding: 0.75rem;
    margin-top: 1rem;
}

/* Screenshot sections mobile optimization */
.screenshot-commentary-container {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
}

.commentary {
    text-align: center;
}

.commentary h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.commentary p {
    font-size: 1rem;
    line-height: 1.5;
}
.description{
    padding : 10px;
    width : 100%;
    height : 500px;
}

/* Tablet styles */
@media (min-width: 768px) {
    .top-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-text-block {
        flex: 1;
        text-align: left;
    }
    
    .hero-image-block {
        flex: 1;
        padding-top:20px;
    }
    
    .product-pricing-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
    }
    
    .product-card {
        width: auto;
        flex: 1 1 300px;
        min-width: 280px;
        max-width: 350px;
    }
    
    .screenshot-commentary-container {
        flex-direction: row;
        align-items: center;
    }
    
    .commentary {
        flex: 1;
        text-align: left;
    }
    
    .screenshot {
        flex: 1;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .hero-section {
        padding: 4rem 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .product-pricing-cards {
        padding: 4rem 2rem;
    }
    
    .screenshot-commentary-container {
        padding: 3rem 2rem;
    }
}

.faq-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 10px 0;
  padding: 0;
  background: #fafafa;
  transition: box-shadow 0.2s;
}
.faq-question {
  cursor: pointer;
  padding: 16px;
  font-weight: bold;
  user-select: none;
}
.faq-answer {
  display: none;
  padding: 16px;
  border-top: 1px solid #eee;
  color: #333;
  background: #fff;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-screenshot{
    height:300px;
}
.faq-answer li {
    list-style-type: circle;
}

.screenshot-commentary-container {
  padding: 0px 200px 0px 200px;
  display: flex;
  align-items: stretch; /* Stretch children to same height */
  gap: 24px;
  margin: 24px 0 0 0;
  width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
  justify-content: flex-start;
}

.commentary {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding:10px;
}

.screenshot {
  flex: 2 1 500px;
  min-width: 180px;
  /* Remove any fixed height */
  display: flex;
  align-items: stretch;
}

.screenshot img {
  width: 100%;
  height: 100%; /* Fill parent height */
  object-fit: cover; /* Or 'contain' if you want full image visible */
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

#key-bugs{
  width:fit-content;
  margin-bottom: 10px;
}