.tabs {
  display: flex;
  padding-bottom: 8px; /* 👈 Adds spacing below the button row */
}

.tab-button {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 3px 8px;         /* Reduced padding */
  font-size: 11.5px;        /* Slightly smaller font */
  color: #343a40;
  cursor: pointer;
  margin-right: 4px;        /* Smaller gap between buttons */
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}


.tab-button:hover {
  background-color: #dee2e6;
}

.tab-button.active {
  background-color: #6c757d;
  color: white;
  font-weight: 500;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
  #warning-message {
    display: none;
    color: red;
    font-weight: bold;
    padding: 10px;
    background-color: #ffecec;
    border: 1px solid #ff8585;
  }
  #close-button {
    background-color: #ccc;
    color: #fff;
    border: none;
    padding: 5px;
    margin-left: 5px;
    cursor: pointer;
  }

#fullScreenContainer {
  display: none; /* Initially hide the container */
  position: fixed; /* Use fixed positioning to keep it in place */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999; /* Set a high z-index to ensure it appears above other elements */
}

#parent-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-top: 5px;
}

#left-container,
#middle-container,
#right-container {
  display: inline-block;
  vertical-align: top;
}

#left-container {
  width: 25%;
  margin-left: 10px;
}

#middle-container {
  position: relative;
}


.audio-flyout {
  position: fixed;
  top: 60px; /* adjust based on your header */
  right: 0;
  width: 320px;
  height: calc(100vh - 60px);
  background-color: #ffffff;
  border-left: 1px solid #ccc;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  padding: 10px;
  overflow-y: auto;

  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.grid-slot.drop-target--active {
  outline: 2px solid var(--accent, #f87666);
  outline-offset: -2px;
}

.audio-flyout.visible {
  transform: translateX(0);
}

.flyout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
}

#fullscreen-overlay {
  /* border: 2px solid #8be055; -- used for testing positioning */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the overlay */
  width: 960px;
  height: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#dynamic-content-container {
  /* border: 2px solid #8be055; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the overlay */
  width: 960px;
  height: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#grid-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  width: 960px;
  height: 540px;
  z-index: 10;

  background-image:
    /* Light vertical lines */
    linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    /* Light horizontal lines */
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    /* Darker vertical lines every 100px */
    linear-gradient(to right, rgba(0, 0, 0, 0.3) 1px, transparent 1px),
    /* Darker horizontal lines every 100px */
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 1px, transparent 1px);

  background-size:
    20px 20px,  /* spacing for light vertical */
    20px 20px,  /* spacing for light horizontal */
    100px 100px,/* spacing for dark vertical */
    100px 100px;/* spacing for dark horizontal */
}

#grid-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  width: 960px;
  height: 540px;
  z-index: 10;

  background-image:
    /* Light vertical lines */
    linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    /* Light horizontal lines */
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    /* Darker vertical lines every 100px */
    linear-gradient(to right, rgba(0, 0, 0, 0.3) 1px, transparent 1px),
    /* Darker horizontal lines every 100px */
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 1px, transparent 1px);

  background-size:
    20px 20px,  /* spacing for light vertical */
    20px 20px,  /* spacing for light horizontal */
    100px 100px,/* spacing for dark vertical */
    100px 100px;/* spacing for dark horizontal */
}

#grid-overlay.halfway {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  width: 960px;
  height: 540px;
  z-index: 10;

  background-image:
    /* Center vertical line */
    linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    /* Center horizontal line */
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);

  background-size:
    480px 270px, /* vertical midpoint (480px) */
    480px 270px; /* horizontal midpoint (270px) */
}


#iconGuideBox {
  position: absolute;
  width: 540px;
  height: 540px;
  top: 0px; /* adjust based on alignment */
  left: 210px; /* centered inside 960px */
  border: 2px dashed #00aaff;
  z-index: 1;
  pointer-events: none;
  display: none;
  box-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
}

#fullscreen-text {
  margin-bottom: 10px; /* Adjust as needed */
  color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#middle-container {
  width: 70%;
}

#right-container {
  width: 0%;
}

form {
  display: flex;
  flex-direction: column;
}

input[type=text] {
  width: 150px;
  text-align: center;
}

input[type=text].narrow {
  width: 100px;
  text-align: center;
}

button[type=button].narrow {
  width: 100px;
}

button[type=button].small-padding {
  margin-top: 2px;
  margin-bottom: 2px;
}

input[type=text].double {
  width: 300px;
  height: 39px;
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

input[type=text].triple {
  width: 345px;
  height: 39px;
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

input[type=text].wide {
  width: 625px;
  height: 39px;
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

input[type=text].wideModal {
  width: 500px;
  height: 39px;
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

.custom-textbox {
  width: 300px;
  height: 125px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

.custom-textbox-full {
  width: 100%;
  height: 125px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

.custom-textbox2 {
  width: 600px;
  height: 20px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 10px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

.custom-textbox3 {
  width: 300px;
  height: 100px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

.custom-textbox4 {
  width: 310px;
  height: 100px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}
.custom-textbox5 {
  width: 450px;
  height: 100px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}
.custom-textbox6 {
  width: 515px;
  height: 75px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}
button[type=button] {
  width: 150px;
  padding: 5px 5px;
  margin-top: 0px;
  margin-bottom: 10px;
}

button[type=button].btn-wider {
  width: 200px;
}

button.delete-button {
    width: auto;
}

.input-box {
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
}

.input-box-narrow {
  padding: 10px; /* Adjust the padding value as desired */
  width: 50px;
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
}

.input-box-medium {
  padding: 10px; /* Adjust the padding value as desired */
  width: 100px;
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
}

.input-box-wide {
  padding: 10px; /* Adjust the padding value as desired */
  width: 150px;
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
}

.dropdown .btn {
  font-size: 16px; /* Adjust the font size as desired */
  background-color: #007bff;
}

/* Custom CSS to make the dropdown scrollable */
.scrollable-dropdown {
  max-height: 150px; /* Set the maximum height for the dropdown */
  overflow-y: auto; /* Enable vertical scrolling */
}

.btn-secondary {
  font-size: 16px; /* Adjust the font size as desired */
  background-color: #007bff;
}

.btn-tertiary {
  width: 100px;
}

.btn-wide {
 width: 150px;
}

.btn-wider {
 width: 200px;
}

.btn-narrow {
 width: 100px;
}

.btn-thin {
 height: 35px;
}

.textbox-narrow {
  width: 100px;
  height: 35px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

.textbox-wide {
  width: 150px;
  height: 35px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

.textbox-very-wide {
  width: 300px;
  height: 35px;
  padding: 10px; /* Adjust the padding value as desired */
  position: relative;
  left: 0px; /* Adjust the left value to move the input box horizontally */
  top: 0px; /* Adjust the top value to move the input box vertically */
  border: 1px solid lightgrey; /* Add a light grey border */
  border-radius: 5px; /* Add rounded corners */
}

.ORIGimage-thumbnail {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    height: 151px;
}

#image-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

#file-manager-image-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
  margin-top: 0.5rem; /* Tailwind ml-2 equivalent */
  margin-left: 0.5rem; /* Tailwind ml-2 equivalent */
  margin-right: 0.5rem; /* Tailwind ml-2 equivalent */
}

.thumb-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.image-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;     /* keeps consistent height */
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: block;
}

.image-thumbnail:hover { transform: scale(1.05); box-shadow: … }

.thumb-caption {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;       /* ellipsis for long names */
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    gap: 0.25rem;
}

.thumb-select-checkbox {
    margin: 0;
    cursor: pointer;

    margin-left: 0.5rem; /* Tailwind ml-2 equivalent */
}

.thumb-actions {
    display: flex;
    gap: 0.25rem;
}

.thumb-icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.15rem;
    line-height: 1;
    border-radius: 4px;
}

.thumb-icon-btn:hover {
    background: rgba(0,0,0,0.05);
}

.thumb-media-link {
    display: block;
}

canvas {
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
}

.drawBox {
  width: 640px;
  height: 360px;
  border: 2px solid red;
  position: relative; /* Change to absolute */
  pointer-events: none;
  display: block; /* or display: inline-block; */
}

.text-box {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 10px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  width: 400px;
}

.text-box-container {
  margin: 20px;
}

#nametagOverlay {
  position: absolute;
  pointer-events: none; /* Ensure the overlay doesn't interfere with canvas interaction */
  /* Set additional styles as needed, such as font, color, etc. */
}

#dialogOverlay {
  position: absolute;
  pointer-events: none; /* Ensure the overlay doesn't interfere with canvas interaction */
  /* Set additional styles as needed, such as font, color, etc. */
}

/* the following two css are just used to adjust the text of button label that is to big */
.condition-text .stats-text{
  font-size: 14px; /* Font size for "Condition" */
}

.optional-text {
  font-size: 11px; /* Font size for "(Optional)" */
}

#fullScreenNametagOverlay,
#fullScreenDialogOverlay {
  position: absolute;
  pointer-events: none;
  /* Set other styles as needed */
}

#fullScreenImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#transformCanvas {
  width: 640px;
  height: 360px;
  border: 1px solid #ccc;
}

.custom-checkbox {
  margin-left: 1px;
}

.custom-spacing {
  margin-left: 15px;
}

#scene-images .modal-content ul li {
  cursor: pointer;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Add this class to hide the loading screen initially */
  display: none;
}

#loading-screen-for-games {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* Ensures it spans the full viewport width */
  height: 100vh; /* Ensures it spans the full viewport height */
  display: flex;
  flex-direction: column; /* Stack the spinner and text */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it's above everything */
  display: none; /* Initially hidden */
}

.loading-screen-dark {
  background-color: rgba(0, 0, 0, 1); /* Darker background */
}

.loading-screen-lighter {
  background-color: rgba(0, 0, 0, 0.8); /* Darker background */
}


.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

.loader-for-games {
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top: 6px solid #ffffff; /* White spinner */
  border-radius: 50%;
  width: 50px; /* Bigger spinner */
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-screen p {
  color: #fff;
  margin-top: 10px;
}

#loading-screen-for-games p {
  color: #ffffff;
  margin-top: 10px;
  font-size: 18px; /* Slightly larger text */
}

.form-select.custom-dropdown-narrow {
    color: white; /* Text color */
    border: 1px solid #ced4da; /* Optional: Set the border color */
    width: 100px;
}

/* Style for hover effect */
.form-select.custom-dropdown:hover,
.form-select.custom-dropdown:focus {
    background-color: #f8f9fa; /* A light gray color when hovered or focused */
    color: black;
    border-color: #80bdff; /* Optional: Change border color on hover/focus */
}

/* Overwrite styles for options */
.form-select.custom-dropdown option {
    background-color: white;
    color: #000; /* Text color */
}

/* Hover effect for options */
.form-select.custom-dropdown option:hover,
.form-select.custom-dropdown option:focus {
    background-color: #f8f9fa; /* A light gray color when hovered or focused */
}

/* Overwrite styles for the form-select dropdown */
.form-select.custom-dropdown {
    color: white; /* Text color */
    border: 1px solid #ced4da; /* Optional: Set the border color */
    width: 150px;
}

/* custom-dropdown-auto does not assign width which is great for btn-block */
/* Hover and focus styles */
.form-select.custom-dropdown-auto:hover,
.form-select.custom-dropdown-auto:focus {
    background-color: #f8f9fa;
    color: black;
    border-color: #80bdff;
}

/* Option styles */
.form-select.custom-dropdown-auto option {
    background-color: white;
    color: #000;
}

.form-select.custom-dropdown-auto option:hover,
.form-select.custom-dropdown-auto option:focus {
    background-color: #f8f9fa;
}

/* Base select styling with no fixed width */
.form-select.custom-dropdown-auto {
    color: white;
    border: 1px solid #ced4da;
    width: auto; /* Allow it to expand based on content or parent */
    min-width: 100px; /* Optional: prevent collapse */
    max-width: 100%;  /* Optional: respect container limits */
}


.form-select.full-width {
   width: 100%;
}

/* Style for hover effect */
.form-select.custom-dropdown-narrow:hover,
.form-select.custom-dropdown-narrow:focus {
    background-color: #f8f9fa; /* A light gray color when hovered or focused */
    color: black;
    border-color: #80bdff; /* Optional: Change border color on hover/focus */
}

/* Overwrite styles for options */
.form-select.custom-dropdown-narrow option {
    background-color: white;
    color: #000; /* Text color */
}

/* Hover effect for options */
.form-select.custom-dropdown-narrow option:hover,
.form-select.custom-dropdown-narrow option:focus {
    background-color: #f8f9fa; /* A light gray color when hovered or focused */
}

/* Base look – similar to Bootstrap btn-outline-secondary */
.form-select.custom-dropdown-secondary {
  background-color: transparent;
  color: #6c757d; /* Bootstrap's .text-secondary color */
  border: 1px solid #6c757d;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  width: 150px;
  height: 37px;
  appearance: none;
  cursor: pointer;
}

/* Hover and focus */
.form-select.custom-dropdown-secondary:hover,
.form-select.custom-dropdown-secondary:focus {
  background-color: #6c757d;
  color: #fff;
  border-color: #6c757d;
  box-shadow: none;
}

/* Dropdown options */
.form-select.custom-dropdown-secondary option {
  background-color: #fff;
  color: #000;
}

/* Hover effect inside dropdown list */
.form-select.custom-dropdown-secondary option:hover,
.form-select.custom-dropdown-secondary option:focus {
  background-color: #f1f1f1;
}

/* Optional full width variant */
.form-select.custom-dropdown-secondary.w-100 {
  width: 100%;
}


.grid-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.styled-table {
  width: 90%;
  border-collapse: collapse;
  margin: 25px 0;
  margin-left: 20px;
  font-size: 18px;
  text-align: left;
}

.styled-table thead tr {
  background-color: #009879;
  color: #ffffff;
  text-align: left;
}

.styled-table th, .styled-table td {
  padding: 12px 15px;
}

.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid #009879;
}

.styled-table tbody tr:hover {
  background-color: #f1f1f1;
}

#dialogTable {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
}

#dialogTable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

#dialogTable th,
#dialogTable td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}

#dialogTable thead th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  text-align: left;
}

#dialogTable tbody tr:hover {
  background-color: #f1f1f1;
}

#dialogTable td[contenteditable="true"] {
  background-color: #fffef6;
  border: 1px dashed #ccc;
  border-radius: 4px;
  cursor: text;
}

#dialogTable td[contenteditable="true"]:focus {
  outline: none;
  border-color: #007bff;
  background-color: #fff;
}

#dialogTable .btn-danger {
  padding: 4px 8px;
  font-size: 0.85rem;
  line-height: 1;
}

#dialogTable .btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

@keyframes flashUpdated {
  0%   { background-color: #d4edda; } /* light green */
  100% { background-color: transparent; }
}

.dialog-updated-animation {
  animation: flashUpdated 1s ease-out;
}


.delete-button {
    background: none;
    color: red;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
}

.delete-column {
    width: 50px;
}

.custom-select-wide {
    width: 175px;
}

.custom-select-full {
    width: 100%;
}

.custom-select-scrollable {
    width: auto;
    min-width: 100%;
}

.scrollable-select-container {
    width: 100%; /* or any fixed width */
    overflow-x: auto; /* Enables horizontal scrolling */
    border: 1px solid #ccc;  Optional, for visual structure */
}

.custom-select-150 {
    width: 150px;
}

.tooltip-button {
  position: relative;
  display: inline-block;
}

.tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the text */
  left: 50%;
  margin-left: -110px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-button:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.select-container {
    position: relative;
}

/* Tooltip container for design elements */
.design-element-tooltip-container {
    position: relative;
    display: inline-block;
}

/* Tooltip text for design elements */
.design-element-tooltip {
    visibility: hidden;
    width: 180px; /* Adjust width as needed */
    background-color: Grey;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -90px; /* Half of width to center */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Tooltip arrow for design elements */
.design-element-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

/* Show the tooltip text when hovering over the container */
.design-element-tooltip-container:hover .design-element-tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltiptext-menus {
  visibility: hidden;
  width: 700px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the text */
  right: 0%; /* This positions the tooltip to the left of the button */
  margin-left: 0; /* No need for a negative margin now */
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltiptext-select-menus {
  visibility: hidden;
  width: 250px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the text */
  right: 0%; /* This positions the tooltip to the left of the button */
  margin-left: 0; /* No need for a negative margin now */
  opacity: 0;
  transition: opacity 0.3s;
}


.tooltip-button:hover .tooltiptext-menus {
  visibility: visible;
  opacity: 1;
}

.select-container:hover .tooltiptext-select-menus {
    visibility: visible;
    opacity: 1;
}

#saveMenuSelections #mainMenuOverlay #loadGameMenuOverlay:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.fixed-width-dropdown {
    width: 150px; /* or any desired width */
    overflow: hidden; /* to ensure it doesn't expand based on content */
    text-overflow: ellipsis; /* show ellipsis when the content is too long */
    white-space: nowrap; /* prevent wrapping inside the select box */
}

.narrow-width-dropdown {
    width: 100px; /* or any desired width */
    overflow: hidden; /* to ensure it doesn't expand based on content */
    text-overflow: ellipsis; /* show ellipsis when the content is too long */
    white-space: nowrap; /* prevent wrapping inside the select box */
}

/* Basic styling for the combobox input */
.categoryCombobox {
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
    appearance: none; /* Remove browser-specific styling */
}

/* Hover effect for combobox */
.categoryCombobox:hover {
    border-color: #888;
}

/* Focus effect for combobox */
.categoryCombobox:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Optionally style the options in the datalist (not all browsers support this) */
datalist > option {
    padding: 6px 10px;
    cursor: pointer;
}

#current-location {
    font-weight: bold;
}

.small-button-font {
    font-size: 14px; /* or any other size */
    height: 35px;
}

.small-label-font {
    font-size: 14px; /* or any other size */
}

.strikethrough {
    text-decoration: line-through;
}

input[type=range] {
    width: 200px;
    vertical-align: middle;
}

input[type="range"].input-box-wide {
  width: 150px;
}


/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* The switch container */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .toggle-label {
    background-color: #2196F3;
}

input:checked + .toggle-label:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.toggle-label {
    border-radius: 34px;
}

.toggle-label:before {
    border-radius: 50%;
}

.explanatory-section {
    background-color: #f4f4f8; /* Light background to highlight the section */
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px; /* Spacing from previous content */
}

.explanatory-icon {
    margin-right: 5px;
}

.explanatory-text {
    font-size: 0.95rem; /* Slightly smaller font size for subtlety */
    color: #333; /* Dark text for readability */
    line-height: 1.4;
}

.highlight-div-display {
  background-color: #f2f4f8; /* Light grey background */
  border-left: 4px solid #007bff; /* Blue accent border on the left */
  padding: 10px 15px; /* Padding inside the div */
  margin: 10px 0; /* Margin around the div */
  color: #333; /* Text color */
  font-family: Arial, sans-serif; /* Font family */
  font-size: 16px; /* Text size */
  border-radius: 5px; /* Rounded corners */
}

.highlight-div-display span {
  font-weight: bold; /* Make the value bold */
}

.highlight-div-display-smaller {
  background-color: #f2f4f8; /* Light grey background */
  border-left: 4px solid #007bff; /* Blue accent border on the left */
  padding: 8px 12px; /* Slightly reduced padding */
  margin: 5px 0; /* Reduced margin for less vertical space */
  color: #333; /* Text color remains the same */
  font-family: Arial, sans-serif; /* Consistent font family */
  font-size: 14px; /* Smaller font size for compactness */
  line-height: 1.3; /* Tighter line height for less space between lines */
  border-radius: 5px; /* Rounded corners for aesthetics */
}

.highlight-div-display-smaller span {
  font-weight: bold; /* Bold for emphasis */
}

.highlight-div-display-smaller.success {
    border-color: green; /* Green border on success */
}

.label-success {
    color: green;
}

.label-failure {
    color: red;
}

#audio-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align items to the start of the container */
    align-items: flex-start; /* Align items to the start of the line */
    padding: 10px;
}

.audio-player {
    background-color: #f2f2f2; /* Light grey background */
    border: 1px solid #ccc; /* Grey border */
    padding: 10px; /* Padding around the content */
    margin: 10px; /* Space between each audio player */
    border-radius: 5px; /* Rounded corners */
    width: 270px; /* Fixed width for each audio player */
    height: 150px; /* Fixed width for each audio player */
    overflow-y: auto; /* Enable vertical scrolling */
}

.audio-player h3 {
    color: #333;  /* Dark grey color for text, good for readability */
    margin: 0 0 10px 0;  /* Spacing below the title */
    font-size: 16px;  /* Smaller than default h3, adjust as needed */
    font-weight: bold;  /* Makes the text stand out a bit more */
    line-height: 1.2;  /* Adjust line height for better text spacing */
    text-transform: uppercase;  /* Optional: makes it look more label-like */
    font-family: 'Arial', sans-serif;  /* Optional: modern, readable font */
}


.audio-player button {
    position: relative; /* Essential for positioning children absolutely within it */
    background-color: #4CAF50; /* Green background */
    border: none; /* No border */
    padding: 0; /* Adjust padding to 0 or a smaller value */
    width: 32px; /* Set a fixed width */
    height: 32px; /* Set a fixed height */
    display: inline-flex; /* Use flex to center contents */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    text-align: center; /* Center text */
    text-decoration: none; /* No underline */
    margin: 4px 2px; /* Margin between buttons */
    cursor: pointer; /* Cursor indicates clickable */
    border-radius: 5px; /* Rounded corners on buttons */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    background-size: 60%; /* Adjust the size of the SVG within the button */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat;
}

.audio-player button:hover {
    background-color: #45a049; /* Slightly darker green when hovered */
}


.audio-player p {
    color: #666; /* Medium grey color */
    font-size: 14px; /* Standard font size for paragraphs */
}


.audio-progress-bar {
    width: 100%;
    height: 5px;
    background-color: #ccc;
    margin-top: 5px;
}

.audio-progress-indicator {
    height: 100%;
    background-color: #4CAF50; /* Green color */
    width: 0%; /* Initial width of 0% */
}

.play-icon {
    background-image: url('https://storage.googleapis.com/storycraft-webapp-public/static/svg/play_icon.svg');
    background-size: cover;
    width: 32px;
    height: 32px;
}

.pause-icon {
    background-image: url('https://storage.googleapis.com/storycraft-webapp-public/static/svg/pause_icon.svg');
    background-size: cover;
    width: 32px;
    height: 32px;
}

.stop-icon {
    background-image: url('https://storage.googleapis.com/storycraft-webapp-public/static/svg/stop_icon.svg');
    background-size: cover;
    width: 32px;
    height: 32px;
}

.add-to-story-icon {
    position: relative;  /* Establishes a new positioning context for ::after */
    background-image: url('https://storage.googleapis.com/storycraft-webapp-public/static/svg/add.svg');
    background-size: cover;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;  /* Indicates the button is interactive */
}

.add-to-story-icon:hover::after {
    content: "Add to Story";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: black;
    color: white;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 100;  /* Increase z-index to ensure it's on top */
    display: block;  /* Ensure it's set to display */
}

.attribution {
    width: 100%;
    position: relative;
    display: inline-block;
}

.attributionUnderline {
    border-bottom: 1px dotted black;
    cursor: pointer;
}

.tooltip {
    visibility: hidden;
    font-size: 10px;
    width: 250px;
    background-color: black;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.6s;
    overflow: visible;
}


.attribution:hover .tooltip {
    visibility: visible;
    opacity: 1;
}


.simple-audio-player {
    background-color: #f2f2f2; /* Light grey background */
    border: 1px solid #ccc; /* Grey border */
    padding: 10px; /* Padding around the content */
    margin: 10px; /* Space between each audio player */
    border-radius: 5px; /* Rounded corners */
    width: 90%; /* Fixed width for each audio player */
    overflow-y: auto; /* Enable vertical scrolling */
}

.simple-audio-player h3 {
    color: #333;  /* Dark grey color for text, good for readability */
    margin: 0 0 10px 0;  /* Spacing below the title */
    font-size: 16px;  /* Smaller than default h3, adjust as needed */
    font-weight: bold;  /* Makes the text stand out a bit more */
    line-height: 1.2;  /* Adjust line height for better text spacing */
    text-transform: uppercase;  /* Optional: makes it look more label-like */
    font-family: 'Arial', sans-serif;  /* Optional: modern, readable font */
}

.simple-audio-player button {
    position: relative; /* Essential for positioning children absolutely within it */
    background-color: #4CAF50; /* Green background */
    border: none; /* No border */
    padding: 0; /* Adjust padding to 0 or a smaller value */
    width: 32px; /* Set a fixed width */
    height: 32px; /* Set a fixed height */
    display: inline-flex; /* Use flex to center contents */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    text-align: center; /* Center text */
    text-decoration: none; /* No underline */
    margin: 4px 2px; /* Margin between buttons */
    cursor: pointer; /* Cursor indicates clickable */
    border-radius: 5px; /* Rounded corners on buttons */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    background-size: 60%; /* Adjust the size of the SVG within the button */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat;
}

.simple-audio-player button:hover {
    background-color: #45a049; /* Slightly darker green when hovered */
}

.simple-audio-player p {
    color: #666; /* Medium grey color */
    font-size: 14px; /* Standard font size for paragraphs */
}


.simple-audio-progress-bar {
    width: 100%;
    height: 5px;
    background-color: #ccc;
    margin-top: 5px;
}

.simple-audio-progress-indicator {
    height: 100%;
    background-color: #4CAF50; /* Green color */
    width: 0%; /* Initial width of 0% */
}

/* Style for the Fabric.js container */
.canvas-container {
    display: block; /* Ensures the container is displayed properly */
    border: 1px solid #d3d3d3; /* Matches your original border style */
    width: 960px; /* Explicit width */
    height: 540px; /* Explicit height */
}

.canvas-container {
    margin: 0 auto; /* Center horizontally */
    position: relative;
    display: block;
}

#fabricCanvas {
    margin: 0 auto;
}

#thumbnail-title-font-dropdown {
    position: relative;
    width: 150px;
    font-size: 16px;
    cursor: pointer;
}

#details-title-font-dropdown {
    position: relative;
    width: 150px;
    font-size: 16px;
    cursor: pointer;
}

.dropdown-selected {
    padding: 10px;
    border: 1px solid #007BFF;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Make it span the full width of the parent */
    box-sizing: border-box; /* Include padding in the width */
    cursor: pointer; /* Ensure the pointer cursor applies to the entire element */
}


.dropdown-options {
    display: none;
    position: absolute;
    width: 100%;
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 5px; /* Rounded corners for the dropdown */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Dropdown shadow for depth */
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f0f0f0; /* Light gray hover effect */
}

.dropdown-active .dropdown-options {
    display: block;
}

/* Add a downward arrow icon to the dropdown-selected element */
.dropdown-selected::after {
    content: '▼'; /* Downward arrow */
    font-size: 12px;
    margin-left: 10px;
    color: white; /* Match text color */
}

#contextMenu button {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 5px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    border-radius: 3px;
}

#contextMenu button:hover {
    background: #ddd;
}

.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}

.subtabs-small-mb {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}

.subtab-button {
  background-color: #f2f4f8;
  border: 1px solid #ccc;
  border-radius: 5px 5px 0 0;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 12px;
  color: #333;
}

.subtab-button.active {
    background-color: #007bff;
    color: white;
    border-bottom: 1px solid white; /* Blend with content area */
}

.subtab-content {
    background-color: white;
    display: none;
}

.subtab-content h3 {
    margin-top: 0;
}

.subsubtabs {
    display: flex;
    justify-content: start;
    margin-bottom: 15px;
    padding-left: 10px;
}

.subsubtab-button {
    background-color: #e9ecf1;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 11px;
    margin-right: 5px;
    color: #444;
    transition: background-color 0.2s ease;
}

.subsubtab-button:hover {
    background-color: #d4d9e0;
}

.subsubtab-button.active {
    background-color: #6c8efb;
    color: white;
    border-color: #6c8efb;
}

/* Container for selected tags */
#selected-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

/* Individual tag display */
.selected-tag {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* Remove button */
.remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

/* Tag suggestion dropdown */
#tag-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: calc(100% - 2px);
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}

.tag-suggestion {
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
}

.tag-suggestion:hover {
    background-color: #007bff;
    color: white;
}

.toggle-text {
    cursor: pointer;
    font-weight: bold;
    color: #007bff; /* Blue color */
    margin: 0;
}

.div-multiselect-container {
  overflow-y: auto;
  max-height: 150px;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  border: 1px solid #ccc;
  padding: 5px;
}

.subtab-button.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.col-md-1-5 {
  flex: 0 0 12.5%;  /* 1.5 / 12 = 12.5% */
  max-width: 12.5%;
}

.input-error {
  border: 2px solid red;
}

.craft-success {
  box-shadow: 0 0 0 3px rgba(0, 200, 0, 0.6) inset, 0 0 8px rgba(0, 200, 0, 0.6);
  transition: box-shadow 250ms ease;
}

.grid-slot { position: relative; }
.grid-slot.has-item { cursor: grab; }
.grid-slot.has-item:active { cursor: grabbing; }

#gridContainerOverlay, #craftingContainerOverlay, .grid-slot {
  touch-action: none;
}

/* Small labels above inputs inside data cells */
.data-cell .cell-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.data-cell .cell-label {
  font-size: 0.75rem;
  line-height: 1;
  color: #6c757d; /* muted */
  user-select: none;
}
.data-cell.empty {
  opacity: 0.5;    /* optional: hint it's intentionally blank */
}

.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .15rem rgba(220,53,69,.15);
}

#applied-list .applied-pill{
  background:#eef5ff; border:1px solid #cfe2ff; border-radius:999px;
  padding:2px 10px; font-size:12px; display:inline-flex; align-items:center; gap:6px;
  box-shadow:0 1px 0 rgba(0,0,0,.05);
}
#applied-list .applied-pill .dot{
  width:6px; height:6px; border-radius:50%; background:#0d6efd; display:inline-block;
}
.pill-fade-in{ animation:fadeIn 1s ease-in; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(-3px);} to{opacity:1; transform:none;} }

/* Subtle flash to draw the eye to the new row */
@keyframes recipe-row-highlight {
  0%   { background-color: rgba(255, 241, 150, 0.9); }
  100% { background-color: transparent; }
}

tr.recipe-row-animation {
  animation: recipe-row-highlight 700ms ease-out;
}

/* Row background tints */
tr.branch-success {
  background-color: #f3fbf5; /* very soft green */
}

tr.branch-failure {
  background-color: #fff7f7; /* very soft red */
}

tr.branch-unknown {
  background-color: #f7f7f7; /* neutral grey */
}

/* Little pill badges in the Branch column */
.branch-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.branch-pill-success {
  color: #1b7f3b;
  border-color: #b9e4c3;
  background-color: #e8f7ec;
}

.branch-pill-failure {
  color: #b12b2b;
  border-color: #f0b7b7;
  background-color: #fdecec;
}

.branch-pill-unknown {
  color: #555;
  border-color: #ccc;
  background-color: #f2f2f2;
}

.table-scroll-wrapper {
  overflow-x: auto;        /* enables horizontal scroll */
  overflow-y: hidden;      /* remove vertical scroll if not needed */
  white-space: nowrap;     /* keep columns on one line */
}

.table-scroll-wrapper table {
  width: max-content;      /* ensures table expands normally */
}

.disabled-dropdown {
    opacity: 0.6;
    cursor: not-allowed;
}

.image-cycle-status {
  font-size: 0.85rem;
  color: #198754;            /* bootstrap-ish success green */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-cycle-status.visible {
  opacity: 1;
}

/* Use Item editor cues */
.useitem-success-mode {
  border-color: #198754 !important;          /* bootstrap green */
  box-shadow: 0 0 0 0.15rem rgba(25,135,84,.15);
}

.useitem-failure-mode {
  border-color: #6c757d !important;          /* bootstrap gray */
  box-shadow: 0 0 0 0.15rem rgba(108,117,125,.15);
}

/* Optional: make context bar background subtly tinted */
#useItemContextBar.useitem-success-mode { background: rgba(25,135,84,.08); }
#useItemContextBar.useitem-failure-mode { background: rgba(108,117,125,.08); }

.hand-ghost { opacity: 0.9; }

.use-item-action-panel {
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 12px;
}

.use-item-action-block {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 6px;
}

.use-item-action-block.success {
  background: #eaf7ea;
  border-left: 4px solid #4caf50;
}

.use-item-action-block.failure {
  background: #fff7e6;
  border-left: 4px solid #ff9800;
}

.use-item-action-block.fallback {
  background: #f5f5f5;
  border-left: 4px solid #9e9e9e;
}

.use-item-action-label {
  font-weight: 600;
  margin-bottom: 4px;
}

.use-item-action-help {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.use-item-fallback--set {
  opacity: 0.75;
}
.use-item-fallback--set .use-item-action-label::after {
  content: " ✅ Set";
  font-weight: 600;
  margin-left: 8px;
}

.branch-pill-fallback {
  background: rgba(0,0,0,0.08);
}

.uniform-label {
  min-height: 3em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sc-context-menu {
  position: fixed;
  z-index: 2147483645;
  min-width: 170px;
  padding: 6px;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sc-context-menu__item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sc-context-menu__item:disabled {
  opacity: .6;
  cursor: default;
}

.condition-row--child td:first-child {
  padding-left: 1.5rem; /* indentation */
}

/* --- Retro arcade loading animation --- */
.arcade-runner {
  width: min(520px, 80vw);
  height: 42px;
  position: relative;
}

.arcade-track {
  position: relative;
  width: 100%;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35);
}

/* Dots scroll left */
.arcade-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.85) 2px, transparent 3px);
  background-size: 22px 22px;
  background-position: 0 50%;
  opacity: 0.85;
  animation: arcadeDots 0.8s linear infinite;
  z-index: 1;
}

/* Pac-Man SVG runner */
.arcade-pac {
  position: absolute;
  top: 50%;
  left: -42px;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  animation: arcadeMove 3s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255,208,0,0.25));
  z-index: 2;
}

.pac-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pac-body {
  fill: #ffd000;
}

/* Mouth “cuts out” by matching track background color */
.pac-mouth {
  opacity: 0.96;
  fill: rgba(0,0,0,0.35);
  animation: pacMouth 0.4s steps(1) infinite;
  transform-origin: 50px 50px;
}

@keyframes pacMouth {
  0%, 100% { transform: scaleY(0.55); }
  50%      { transform: scaleY(1.05); }
}

@keyframes arcadeMove {
  0%   { left: -42px; }
  100% { left: calc(100% + 42px); }
}

@keyframes arcadeDots {
  0%   { background-position: 0 50%; }
  100% { background-position: -22px 50%; }
}
