/* 🔷 Base Styles */
:root {
  --bg-dark: #1c1e22;
  --bg-medium: #2c2f34;
  --bg-light: #1f2227;
  --text: #e0e0e0;
  --accent: #0d6efd;
  --border: #444;
  --selected-bg: #0d6efd;
  --selected-text: #ffffff;
}

/* 🌤 Light Mode Overrides */
.light-mode {
  --bg-dark: #f5f5f5;
  --bg-medium: #ffffff;
  --bg-light: #f0f0f0;
  --text: #333;
  --accent: #0d6efd;
  --border: #ccc;
  --selected-bg: #0d6efd;
  --selected-text: #ffffff;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark); /* Default background */
  color: var(--text);
  scroll-behavior: smooth;
}

/* ✅ Background image for login page */
body.login-page {
  background: url('image/refinery.jpg') no-repeat center center fixed;
  background-size: cover;
}


/* 🔐 Login Page */
.login-container {
  width: 320px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px 25px;
  background-color: transparent; /* fully transparent */
  backdrop-filter: blur(10px); /* glass effect */
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  text-align: center;
}

/* Heading inside login form */
.login-container h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 20px;
}

/* Input fields */
.login-container input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Login button */
.login-container button {
  width: 100%;
  padding: 10px;
  background-color: var(--accent);
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}

.login-container button:hover {
  background-color: #0b5ed7;
}

/* Error message */
.error {
  color: red;
  margin-top: 10px;
}

/* 🧩 Dashboard Layout */
.dashboard {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.top-bar {
  position: sticky;
  top: 0;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  z-index: 999;
}
.container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* 📂 Sidebar */
.sidebar {
  width: 25%;
  background: var(--bg-medium);
  border-right: 1px solid var(--border);
  padding: 15px;
  overflow-y: auto;
}
.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.sidebar li {
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: var(--text);
}
sidebar li:hover > a {
  background-color: var(--accent);
  color: var(--selected-text);
  font-weight: bold;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: underline; /* ✅ Add this line */
}




.sidebar li.selected {
  background-color: var(--selected-bg) !important;
  color: var(--selected-text);
  font-weight: bold;
}

/* 🔍 Search */
#searchBox {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  background-color: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
}
#searchBox::placeholder {
  color: #888;
}

/* 📄 Main Content */
.content {
  width: 75%;
  padding: 24px;
  background: var(--bg-light);
  overflow-y: auto;
}
.content h3 {
  color: var(--accent);
  font-size: 22px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-top: 0;
}

/* 🧾 Mechanism Info */
.mechanism-info {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-medium);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 📤 Export Buttons */
.export-buttons {
  margin-bottom: 15px;
}
.export-buttons button {
  margin-right: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  background-color: var(--accent);
  color: white;
  cursor: pointer;
}
.export-buttons button:hover {
  background-color: #0b5ed7;
}

/* 🧭 Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.tab-button {
  background-color: var(--bg-medium);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
}
.tab-button.active {
  background-color: var(--accent);
  color: white;
  font-weight: bold;
}
.tab-content {
  display: none;
}
.tab-content.visible {
  display: block;
}

/* ⚙️ Settings Dropdown */
.settings-menu {
  position: relative;
}
#settingsBtn {
  background: none;
  color: #000;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  min-width: 160px;
  z-index: 1000;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.dropdown-content.show {
  display: block;
}
.dropdown-content button {
  padding: 10px 15px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.dropdown-content button:hover {
  background-color: var(--bg-medium);
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar, .content {
    width: 100%;
  }
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tabs {
    flex-direction: column;
  }
}

/* ✅ CRITERIA FORM SECTION (NEW) */
#filterForm {
  background-color: var(--bg-medium);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#filterForm label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: var(--text);
}
#filterForm input,
#filterForm select {
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background-color: var(--bg-light);
  color: var(--text);
}
#filterForm button {
  background-color: var(--accent);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#filterForm button:hover {
  background-color: #0b5ed7;
}

/* 🔍 Result Section for Criteria */
#result {
  background-color: var(--bg-medium);
  padding: 20px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  margin-top: 20px;
  display: none;
  color: var(--text);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#result h3 {
  margin-top: 0;
  color: var(--accent);
}
#result ul {
  margin: 10px 0 0 20px;
  padding: 0;
}
#result li {
  margin-bottom: 6px;
  list-style-type: square;
}
/* Clear any previous highlight styles on <li> */
.sidebar li {
  background-color: transparent;
  color: var(--text);
  font-weight: normal;
}

/* ✅ Highlight only active <a> link */
.sidebar a.active-link {
  background-color: var(--selected-bg);
  color: var(--selected-text);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: underline; /* ✅ Add this line */
}
#selectedMechanismTitle {
  display: none;
} 

/* === Corrosion Rate Dashboard Styles === */
#corrosionFullTab .header {
  background: #0077b6;
  padding: 19px;
  color: #fff;
  text-align: center;
}

#corrosionFullTab .main-content {
  padding: 30px;
}

#corrosionFullTab .form-section label {
  font-weight: 600;
  display: block;
  margin-top: 20px;
}

#corrosionFullTab select,
#corrosionFullTab input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: 0.2s;
}

#corrosionFullTab select:focus,
#corrosionFullTab input:focus {
  outline: none;
  border-color: #0077b6;
  box-shadow: 0 0 5px rgba(0, 119, 182, 0.3);
}

#corrosionFullTab button {
  margin-top: 25px;
  padding: 12px 18px;
  background: #00b4d8;
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: 0.3s ease;
}

#corrosionFullTab button:hover {
  background: #0096c7;
}

#corrosionFullTab .result-section {
  margin-top: 30px;
  padding: 20px;
  background: #f1f1f1;
  border-left: 6px solid #0077b6;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
}

#corrosionFullTab .footer {
  text-align: center;
  background: #f9fafc;
  padding: 15px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #eee;
}

/* ... existing styles ... */

/* Logo style */
.logo {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 15px;
}

/* === 🔻 Global Footer (Sticky Bottom) === */
footer.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-medium);
  color: var(--text);
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  z-index: 999;
}

/* Ensure content area doesn't overlap the footer */
.content {
  padding-bottom: 70px;
}

/* === 🔗 Footer Links & Credit === */
.footer-links {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--accent);
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--selected-bg);
}

.footer-credit {
  color: var(--text);
  opacity: 0.8;
}
/* ✅ Fixed Bottom-Right Logout Button */
.footer-logout {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
}

.footer-logout button {
  padding: 10px 16px;
  background-color: #d9534f;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
}

.footer-logout button:hover {
  background-color: #c9302c;
}
#myChart {
  width: 100%;
  height: 300px !important;  /* Adjust height here */
  max-height: 350px;
}

/* 🌟 Welcome Panel Styles (Paste at the end of style.css) */
.welcome-panel {
  padding: 50px 30px;
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 1s ease-in-out;
}

.top-section {
  margin-bottom: 40px;
}

.tick-icon {
  font-size: 52px;
  animation: bounce 1s infinite alternate;
}

.welcome-panel h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 10px;
}
.welcome-panel h2 span {
  color: #0d47a1;
}
.sub {
  font-size: 16px;
  color: #444;
}

.info-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.info-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 25px 20px;
  width: 280px;
  text-align: left;
  border: 1px solid #d7e9f7;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-card .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.info-card h3 {
  margin: 0 0 10px;
  color: #1565c0;
  font-size: 20px;
}

.info-card p {
  color: #333;
  font-size: 15px;
}

.welcome-img {
  max-width: 450px;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.welcome-img:hover {
  transform: scale(1.03);
}

/* Animations */
@keyframes bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ✅ Main fluid section container alignment */
#fluidSelectorTab .container {
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* ✅ Heading spacing fix */
#fluidSelectorTab h3 {
  margin-bottom: 15px;
}

/* ✅ Fluid Group Label + Dropdown aligned properly */
#materialFilter {
  width: 100%;
  max-width: 500px;
  font-size: 15px;
  margin: 10px 0;
}

/* ✅ Ensure Select2 input adjusts full width */
.select2-container {
  width: 100% !important;
  max-width: 500px;
  margin-bottom: 10px;
}

/* ✅ Table wrapper to force horizontal scroll */
#fluidTable {
  width: 100%;
  overflow-x: auto;
  display: block;
  margin-top: 10px;
}

/* ✅ Table cell styling */
#fluidTable th,
#fluidTable td {
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
  background-color: #fff;
}

/* ✅ "No Data" message styling */
.no-data {
  margin-top: 15px;
  color: #888;
  font-style: italic;
  text-align: center;
  font-size: 16px;
}

/* ✅ Mobile-specific improvements */
@media (max-width: 768px) {
  #fluidSelectorTab .container {
    padding: 10px;
  }

  #materialFilter {
    font-size: 16px;
    width: 100% !important;
  }

  .select2-container {
    width: 100% !important;
  }

  #fluidTable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ✅ Inventory CSS */

#inventoryTab {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  margin: 0;
  padding: 0;
}

#inventoryTab .container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

/* Sidebar */
#inventoryTab .sidebar {
  width: 250px;
  background-color: #fff;
  padding: 20px;
  border-right: 1px solid #ccc;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}

#inventoryTab .sidebar h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

#inventoryTab .sidebar a {
  display: block;
  color: #007bff;
  text-decoration: none;
  margin: 6px 0;
}

#inventoryTab .sidebar a:hover {
  text-decoration: underline;
}

/* Main Content */
#inventoryTab .main-content {
  flex-grow: 1;
  padding: 30px;
  background: #f2f2f2;
}

#inventoryTab .form-section {
  background: white;
  padding: 25px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  max-width: 700px;
  width: 100%;
}

/* Labels and Inputs */
#inventoryTab label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
  color: #333;
}

#inventoryTab input[type="number"],
#inventoryTab select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

#inventoryTab input[type="number"]:focus,
#inventoryTab select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 3px #aad4ff;
}

/* Aligned Checkboxes */
#inventoryTab .checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 10px;
}

#inventoryTab .checkbox-row input[type="checkbox"] {
  transform: scale(1.2);
  margin: 0;
  cursor: pointer;
}

#inventoryTab .checkbox-row label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}

/* Disabled style */
#inventoryTab input[disabled],
#inventoryTab select[disabled] {
  background-color: #eee;
  cursor: not-allowed;
}

/* Button */
#inventoryTab button {
  padding: 10px 20px;
  font-size: 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

#inventoryTab button:hover {
  background: #0056b3;
}

/* Result */
#inventoryTab #inventoryResult {
  background: #e7f3ff;
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
  color: #003366;
  font-size: 15px;
}

/* Chart */
#inventoryTab canvas#volumeChart {
  max-width: 300px;
  margin: 20px auto;
  display: block;
}

/* Optional Footnote */
#inventoryTab .footnote {
  font-size: 12px;
  color: #555;
  margin-top: 10px;
  display: none;
}

#inventoryTab .footnote.active {
  display: block;
}

/* Hide Elements */
#inventoryTab .hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  #inventoryTab .container {
    flex-direction: column;
  }

  #inventoryTab .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #ccc;
    position: relative;
  }

  #inventoryTab .main-content {
    padding: 20px;
  }

  #inventoryTab .form-section {
    padding: 20px;
    margin-top: 10px;
    box-shadow: none;
    border-radius: 8px;
  }

  #inventoryTab input,
  #inventoryTab select {
    font-size: 13px;
    padding: 8px;
  }

  #inventoryTab button {
    width: 100%;
    padding: 10px;
  }
}

/* bulk Inventory Upload*/
#bulkModal {
  display: none;
  position: fixed;
  top: 5%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  background: #fff;
  border: 1px solid #aaa;
  padding: 20px;
  box-shadow: 0 0 12px #aaa;
  z-index: 999;
  overflow: auto;
  max-height: 90vh;
}
#bulkModal.show {
  display: block;
}
#bulkResultsTable table {
  width: 100%;
  border-collapse: collapse;
}
#bulkResultsTable th, #bulkResultsTable td {
  border: 1px solid #888;
  padding: 6px;
  text-align: center;
}
#closeBtnBulk {
  float: right;
  background: crimson;
  color: white;
  border: none;
  padding: 5px 10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Representative Fluids*/

/* ✅ Frosted Glass Note Section */
#noteSection {
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 4px solid #007bff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow-x: auto;
  white-space: nowrap; /* ✅ Prevent wrap */
}

/* ✅ Note Heading */
#noteSection strong {
  font-weight: bold;
  margin-right: 15px;
  font-size: 0.92rem;
  color: #333;
  display: inline-block;
}

/* ✅ Inline Note List */
#noteSection ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
  display: inline;
}

#noteSection li {
  display: inline;
  margin-right: 25px;
  font-size: 0.85rem;
  color: #444;
}

/* 👇 B31.3 style.css */
/* 🌐 GLOBAL STYLES */
body {
  font-family: Arial, sans-serif;
  background-color: #f7f9fb;
  color: #333;
  margin: 0;
  padding: 0;
}

/* 🎯 ASME B31.3 Calculator Container - FULL SCREEN */
#ASMEB31_3Tab {
  width: 100%;
  max-width: 100%; /* ✅ full width */
  margin: 0;       /* ✅ no centering restriction */
  padding: 25px;
  background: white;
  border-radius: 0; /* ✅ flat edges for full screen */
  box-shadow: none; /* ✅ no boxed shadow, flat design */
  border-top: 4px solid #2980b9;
  box-sizing: border-box;
}

/* Heading */
#ASMEB31_3Tab h2 {
  font-size: 22px;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
  font-weight: bold;
}

/* Labels */
#ASMEB31_3Tab label {
  font-weight: 600;
  font-size: 14px;
  color: #444;
  margin-bottom: 3px;
  display: block;
}

/* Inputs & Selects */
#ASMEB31_3Tab input[type="number"],
#ASMEB31_3Tab select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fdfdfd;
}

/* Focus state */
#ASMEB31_3Tab input[type="number"]:focus,
#ASMEB31_3Tab select:focus {
  border-color: #2980b9;
  outline: none;
  box-shadow: 0 0 4px rgba(41, 128, 185, 0.4);
}

/* ✅ Rows Layout */
.b313-row {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.b313-row .b313-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ✅ Calculate Button */
#ASMEB31_3Tab button.calculate-btn {
  background-color: #2980b9;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 16px;
  margin-top: 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 200px;
  transition: background 0.3s ease, transform 0.2s ease;
  display: block;
}

#ASMEB31_3Tab button.calculate-btn:hover {
  background-color: #1c5980;
  transform: scale(1.03);
}

/* ✅ Result Panel */
#ASMEB31_3Tab .result {
  margin-top: 20px;
  background: #ecf0f1;
  padding: 15px;
  border-left: 5px solid #3498db;
  border-radius: 4px;
  font-size: 16px;
}

/* ✅ Final Result Box */
#b313_resultBox {
  background: #e9f7ef;
  border-left: 5px solid #27ae60;
  padding: 12px;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 4px;
  margin-top: 15px;
  transition: opacity 0.3s ease;
}

/* ✅ High-Temp Weld Factor Section */
#ASMEB31_3Tab .hidden {
  display: none;
}

/* ✅ Responsive Design */
@media (max-width: 768px) {
  #ASMEB31_3Tab {
    padding: 15px;
  }

  .b313-row {
    flex-direction: column; /* ✅ stack for mobile */
  }

  #ASMEB31_3Tab button.calculate-btn {
    width: 100%;
  }
}

/* ✅ Spinner Hidden */
.b313-hidden {
  display: none;
}

/* ✅ Unique Loader Style */
.b313-loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: b313-spin 1s linear infinite;
  margin: 10px auto;
}

/* ✅ Unique Spin Animation */
@keyframes b313-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#b313_spinner {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #3498db;
}
/* ✅ Gray style for read-only auto fields */
.readonly-field[readonly] {
  background-color: #f0f0f0 !important;
  color: #555 !important;
  border: 1px solid #ccc !important;
  cursor: not-allowed;
}



