@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #475569 0%, #334155 50%, #1e293b 100%);
  --panel-bg: rgba(15, 23, 42, 0.45);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --primary: #a78bfa;
  --primary-glow: rgba(167, 139, 250, 0.3);
  --accent-cyan: #22d3ee;
  --accent-cyan-glow: rgba(34, 211, 238, 0.3);
  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.3);
  --warning: #fbbf24;
  --warning-glow: rgba(251, 191, 36, 0.3);
  --danger: #f87171;
  --danger-glow: rgba(248, 113, 113, 0.3);
  --gold: #fbbf24;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sidebar Tab System */
.sidebar-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 240px;
  flex-shrink: 0;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transform: translateX(4px);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--accent-cyan-glow);
}

/* Layout */
.main-container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Workspace Panels */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

/* Grids & Tables */
.search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

input, select, textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-cyan-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--panel-border);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

#btn-bill-quotation {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 100%);
}

#btn-bill-receipt {
  background: linear-gradient(135deg, var(--success) 0%, #065f46 100%);
  border-color: transparent;
}

.table-container {
  overflow-x: auto;
  width: 100%;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--panel-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
}

#analytics-history-body td {
  font-size: 0.78rem !important;
  padding: 10px 6px !important;
}

.table-container th {
  padding: 10px 6px !important;
  font-size: 0.8rem !important;
}

/* Database Info Result Box */
.info-result-box {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Checklist Details */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.inspection-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inspection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.inspection-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.status-selectors {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px;
  border-radius: 8px;
}

.status-badge-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.status-badge-btn[data-status="OK"].active {
  background: var(--success);
  color: white;
}

.status-badge-btn[data-status="CAUTION"].active {
  background: var(--warning);
  color: black;
}

.status-badge-btn[data-status="DANGER"].active {
  background: var(--danger);
  color: white;
}

.image-upload-area {
  height: 100px;
  border: 1.5px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
}

.image-upload-area:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.03);
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Sliders */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.helper-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-gold { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Alert Banner */
.alert-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f87171;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sub-nav */
.sub-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.sub-btn {
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.sub-btn.active {
  background: var(--accent-cyan);
  color: black;
  font-weight: 700;
}

/* PDF PRINT LAYOUT */
.print-only, .print-voucher-only {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 8mm 10mm 8mm 10mm;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .main-screen {
    display: none !important;
  }
  .print-only {
    display: block !important;
    padding: 0 !important;
    background: white;
  }
  .print-voucher-only {
    display: none;
    padding: 0 !important;
    background: white;
  }
  .print-invoice-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: #1f2937;
    font-size: 0.75rem;
  }
  .print-header h1 {
    font-size: 1.4rem !important;
    margin: 0 !important;
  }
  .print-header h2 {
    font-size: 1.1rem !important;
    margin: 0 0 2px 0 !important;
  }
  .print-header p {
    margin: 1px 0 !important;
    font-size: 0.7rem !important;
  }
  .print-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 8px;
  }
  .print-grid-2 h4 {
    margin: 0 0 2px 0 !important;
    font-size: 0.8rem !important;
  }
  .print-grid-2 p {
    margin: 2px 0 !important;
    font-size: 0.75rem !important;
  }
  .print-table th {
    color: #374151 !important;
    border-bottom: 2px solid #d1d5db !important;
    background: #f3f4f6 !important;
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }
  .print-table td {
    padding: 5px 8px !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    font-size: 0.75rem !important;
  }
  hr {
    margin: 6px 0 !important;
  }
}

.version-tag {
  margin-top: auto;
  padding: 15px 0 5px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
  font-weight: 500;
}

}

/* Custom job parts inputs styling */
#job-parts-table input {
  width: 100%;
  padding: 4px 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: white;
  font-size: 0.75rem;
}

#job-parts-table input:focus {
  border-color: var(--accent-cyan);
  outline: none;
  background: rgba(34, 211, 238, 0.05);
}

/* --- RESPONSIVE TABLET & MOBILE DESIGNS --- */

/* Tablets & Medium Screens (max-width: 992px) */
@media (max-width: 992px) {
  .main-container {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .sidebar-tabs {
    width: 200px;
  }
  .tab-btn {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}

/* Mobile Devices & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .version-tag {
    display: none !important;
  }
  header {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo-text .logo-title-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .main-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1.25rem;
  }

  .sidebar-tabs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--panel-border);
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .tab-btn:hover {
    transform: none;
  }

  .search-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tab-content#tab-insurance .card > div {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Extra Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .card {
    padding: 1rem;
    border-radius: 16px;
  }

  .card-title {
    font-size: 1rem;
  }

  input, select, textarea, .btn-primary, .btn-secondary {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .tab-content#tab-insurance input {
    font-size: 0.85rem;
  }
  
  .tab-content#tab-insurance .grid-template-columns {
    grid-template-columns: 1fr !important;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sub-nav {
    flex-direction: column;
    gap: 4px;
  }

  .sub-btn {
    width: 100%;
    text-align: center;
  }

  /* Restock item form layouts */
  #tab-stock .card:last-child > div {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Prevent browsers/dark-modes from stripping colors from images, video, and canvas */
img, video, canvas {
  filter: none !important;
  -webkit-filter: none !important;
}

/* ==========================================================================
   THEME STYLES (BRIGHT & SUPERBRIGHT OVERRIDES)
   ========================================================================== */

/* Bright Theme */
body.theme-bright {
  --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(0, 0, 0, 0.12);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.2);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.2);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #d97706;
  --warning-glow: rgba(217, 119, 6, 0.2);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.2);
  --gold: #d97706;
}

body.theme-bright header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
body.theme-bright .logo-text h1 {
  background: linear-gradient(to right, #0f172a, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.theme-bright input, body.theme-bright select, body.theme-bright textarea {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.3) !important;
}
body.theme-bright .card-title {
  color: #0f172a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body.theme-bright .tab-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
}
body.theme-bright .tab-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}
body.theme-bright .tab-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 100%);
  color: white;
}
body.theme-bright .btn-secondary {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}
body.theme-bright .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1) !important;
}
body.theme-bright #user-welcome-info {
  color: #475569 !important;
}
body.theme-bright .logo-icon {
  color: white !important;
}
body.theme-bright table th {
  color: #0f172a !important;
}
body.theme-bright table td {
  color: #334155 !important;
}
body.theme-bright .info-value {
  color: #0f172a !important;
}
body.theme-bright label {
  color: #475569 !important;
}
body.theme-bright .info-label {
  color: #475569 !important;
}

/* Superbright Theme */
body.theme-superbright {
  --bg-gradient: #ffffff;
  --panel-bg: #ffffff;
  --panel-border: #000000;
  --text-primary: #000000;
  --text-secondary: #000000;
  --primary: #000000;
  --primary-glow: rgba(0, 0, 0, 0.1);
  --accent-cyan: #000000;
  --accent-cyan-glow: rgba(0, 0, 0, 0.1);
  --success: #008000;
  --success-glow: rgba(0, 128, 0, 0.1);
  --warning: #d97706;
  --warning-glow: rgba(217, 119, 6, 0.2);
  --danger: #ff0000;
  --danger-glow: rgba(255, 0, 0, 0.1);
  --gold: #000000;
}

body.theme-superbright header {
  background: #ffffff;
  border-bottom: 2px solid #000000;
}
body.theme-superbright .logo-text h1 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #000000;
  color: #000000;
}
body.theme-superbright input, body.theme-superbright select, body.theme-superbright textarea {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
body.theme-superbright .card-title {
  color: #000000;
  border-bottom: 2px solid #000000;
}
body.theme-superbright .tab-btn {
  background: #ffffff;
  border: 2px solid #000000;
  color: #000000;
}
body.theme-superbright .tab-btn:hover {
  background: #eeeeee;
  color: #000000;
}
body.theme-superbright .tab-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: none;
}
body.theme-superbright .btn-primary {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  background-image: none !important;
}
body.theme-superbright .btn-secondary {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  background-image: none !important;
}
body.theme-superbright table th {
  color: #000000 !important;
  border-bottom: 2px solid #000000 !important;
}
body.theme-superbright table td {
  color: #000000 !important;
  border-bottom: 1px solid #000000 !important;
}
body.theme-superbright #user-welcome-info {
  color: #000000 !important;
}
body.theme-superbright .logo-icon {
  color: #000000 !important;
  background: #ffffff !important;
  border: 2px solid #000000 !important;
}
body.theme-superbright .info-value {
  color: #000000 !important;
}
body.theme-superbright label {
  color: #000000 !important;
}
body.theme-superbright .info-label {
  color: #000000 !important;
}
body.theme-superbright .helper-badge {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
body.theme-superbright .status-badge {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
body.theme-superbright .card {
  box-shadow: none !important;
  border: 2px solid #000000 !important;
  background: #ffffff !important;
}

/* Theme adjustments for sub-nav buttons */
body.theme-bright .sub-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #475569 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.theme-bright .sub-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
}
body.theme-bright .sub-btn.active {
  background: var(--accent-cyan) !important;
  color: white !important;
  border-color: var(--accent-cyan) !important;
}

body.theme-superbright .sub-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
body.theme-superbright .sub-btn:hover {
  background: #eeeeee !important;
}
body.theme-superbright .sub-btn.active {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* Colorful Action Buttons in Transaction Table (Consistent across all themes) */
.action-btn-print {
  padding: 5px 8px !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
  border: 1px solid #06b6d4 !important;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
  color: white !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 4px rgba(6, 182, 212, 0.15) !important;
}
.action-btn-print:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

.action-btn-convert {
  padding: 5px 8px !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
  border: 1px solid #10b981 !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15) !important;
}
.action-btn-convert:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

.action-btn-delete {
  padding: 5px 8px !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.action-btn-delete:hover {
  background: #ef4444 !important;
  color: white !important;
  border-color: #ef4444 !important;
}


/* ==========================================================================
   RodDede Ecosystem Navigation Bar & AutoLube Enhancements
   ========================================================================== */

.ecosystem-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 101;
}

.eco-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.eco-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.eco-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eco-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.eco-link-pill:hover, .eco-link-pill.active {
  color: #fff;
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

/* ==========================================================================
   Frontend Embedded Oil & Filter Finder Widget (Elementor / Gutenberg)
   ========================================================================== */

.roddede-autolube-widget-container {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-sizing: border-box;
}

.roddede-autolube-widget-header {
  text-align: center;
  margin-bottom: 24px;
}

.roddede-autolube-widget-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.roddede-autolube-widget-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roddede-autolube-widget-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.roddede-autolube-widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 120px auto;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}

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

.roddede-autolube-field-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.roddede-autolube-input-select, .roddede-autolube-input-text {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.roddede-autolube-input-select:focus, .roddede-autolube-input-text:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.25);
}

.roddede-autolube-btn-search {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 100%);
  color: #0b0f19;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
  height: 42px;
}

.roddede-autolube-btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.45);
}

.roddede-autolube-result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.roddede-autolube-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .roddede-autolube-spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.roddede-autolube-spec-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.roddede-autolube-spec-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.roddede-autolube-spec-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.roddede-autolube-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
