/* ==========================================================================
   TulBD - Land Measurement Calculator in Bangladesh Suite
   Advanced, Responsive, High-Precision Styling for Land Calculation
   ========================================================================== */

.lmc-suite-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 30px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  font-family: inherit;
  transition: all 0.25s ease;
}

/* Header & Banner */
.lmc-header {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  color: #ffffff;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.lmc-header::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lmc-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  text-align: center;
}

.lmc-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.lmc-icon-badge {
  font-size: 32px;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 auto;
}

.lmc-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-align: center;
}

.lmc-header p {
  margin: 4px auto 0;
  font-size: 13.5px;
  color: #d1fae5;
  font-weight: 500;
  text-align: center;
  max-width: 750px;
}

.lmc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

/* Preset Quick Test Bar */
.lmc-preset-bar {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lmc-preset-label {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lmc-preset-btn {
  background: #ffffff;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lmc-preset-btn:hover {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.2);
}

/* Tabs Navigation */
.lmc-tabs-nav {
  display: flex;
  align-items: stretch;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 6px 16px 0;
  gap: 6px;
}

.lmc-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.lmc-tab-btn:hover {
  color: #065f46;
  background: rgba(16, 185, 129, 0.06);
}

.lmc-tab-btn.active {
  color: #047857;
  background: #ffffff;
  border-bottom-color: #059669;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
}

.lmc-tab-icon {
  font-size: 16px;
}

/* Tab Panels */
.lmc-content-body {
  padding: 24px;
}

.lmc-tab-pane {
  display: none;
  animation: lmcFadeIn 0.25s ease-in-out;
}

.lmc-tab-pane.active {
  display: block;
}

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

/* Form Layout */
.lmc-grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .lmc-grid-2col {
    grid-template-columns: 1fr;
  }
}

.lmc-card-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.lmc-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.lmc-unit-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
}

.lmc-unit-selector-row label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.lmc-select {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.lmc-select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Input Fields Grid */
.lmc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lmc-field-full {
  grid-column: span 2;
}

.lmc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lmc-label-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lmc-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lmc-dir-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
}

.lmc-dir-badge.north { background: #dbeafe; color: #1d4ed8; }
.lmc-dir-badge.south { background: #fef3c7; color: #b45309; }
.lmc-dir-badge.east { background: #dcfce7; color: #15803d; }
.lmc-dir-badge.west { background: #fce7f3; color: #be185d; }
.lmc-dir-badge.diag { background: #ede9fe; color: #6d28d9; }

.lmc-dual-input {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lmc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lmc-input {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.lmc-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.lmc-input-unit {
  position: absolute;
  right: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  pointer-events: none;
}

/* Callout Note */
.lmc-note {
  margin-top: 14px;
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: #065f46;
  line-height: 1.5;
}

.lmc-note strong {
  font-weight: 700;
}

.lmc-note.warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}

/* Action Buttons */
.lmc-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.lmc-btn {
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.lmc-btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.lmc-btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.lmc-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.lmc-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lmc-btn-accent {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.lmc-btn-accent:hover {
  background: #0284c7;
  color: #ffffff;
}

/* Canvas / Visualizer Card */
.lmc-canvas-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  position: relative;
}

.lmc-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lmc-canvas-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lmc-svg-container {
  width: 100%;
  height: 270px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lmc-svg-container svg {
  width: 100%;
  height: 100%;
}

.lmc-canvas-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}

/* Results Master Dashboard */
.lmc-results-wrapper {
  margin-top: 28px;
  border-top: 2px dashed #e2e8f0;
  padding-top: 24px;
}

.lmc-results-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.lmc-results-title-bar h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lmc-results-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Primary Highlight Cards */
.lmc-hero-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 800px) {
  .lmc-hero-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lmc-hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lmc-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.lmc-hero-card.highlight {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #86efac;
}

.lmc-hero-card.featured {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-color: #047857;
}

.lmc-hero-card.featured .lmc-hero-label {
  color: #d1fae5;
}

.lmc-hero-card.featured .lmc-hero-val {
  color: #ffffff;
}

.lmc-hero-card.featured .lmc-hero-sub {
  color: #a7f3d0;
}

.lmc-hero-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.lmc-hero-val {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  word-break: break-all;
}

.lmc-hero-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}

/* Secondary Units Grid */
.lmc-all-units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.lmc-unit-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.lmc-unit-pill:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.lmc-upill-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}

.lmc-upill-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
}

/* Comparison Card (Amin vs Heron) */
.lmc-compare-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05);
}

.lmc-compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.lmc-compare-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #c2410c;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.lmc-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .lmc-compare-grid {
    grid-template-columns: 1fr;
  }
}

.lmc-citem {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.lmc-citem.exact {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.lmc-citem-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.lmc-citem.exact .lmc-citem-label { color: #15803d; }

.lmc-citem-val {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.lmc-citem.exact .lmc-citem-val { color: #047857; }

.lmc-citem-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Traditional units breakdown: আনা, গন্ডা, কড়া, ক্রান্তি, তিল */
.lmc-traditional-box {
  background: #fdf4ff;
  border: 1px solid #f0abfc;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.lmc-trad-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #86198f;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lmc-trad-items {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lmc-trad-tag {
  background: #ffffff;
  border: 1px solid #e879f9;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #701a75;
}

/* Inheritance / Partition Tab Styles */
.lmc-heir-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
}

.lmc-heir-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
}

.lmc-heir-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.lmc-heir-row input {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.lmc-btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
}

/* Official Survey Report Modal / Print View */
.lmc-report-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lmc-report-modal.active {
  display: flex;
}

.lmc-report-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #cbd5e1;
  position: relative;
}

.lmc-report-header {
  padding: 18px 24px;
  background: #065f46;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lmc-report-header h3 {
  margin: 0;
  font-size: 17px;
  color: #ffffff;
}

.lmc-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.lmc-report-body {
  padding: 28px 32px;
  color: #0f172a;
}

.lmc-report-pad-head {
  text-align: center;
  border-bottom: 2px solid #065f46;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.lmc-report-pad-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #065f46;
  font-weight: 800;
}

.lmc-report-pad-head p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.lmc-report-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 13px;
}

.lmc-report-meta-item strong {
  color: #334155;
  margin-right: 6px;
}

.lmc-report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 13.5px;
}

.lmc-report-table th,
.lmc-report-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  text-align: left;
}

.lmc-report-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e293b;
}

.lmc-report-sign-row {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 10px;
}

.lmc-sign-box {
  width: 200px;
  border-top: 1px dashed #64748b;
  text-align: center;
  font-size: 12px;
  color: #475569;
  padding-top: 6px;
}

.lmc-report-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Toast Message */
.lmc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.lmc-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .lmc-header {
    padding: 16px 14px;
  }
  .lmc-title-group h2 {
    font-size: 1.25rem;
  }
  .lmc-content-body {
    padding: 14px 10px;
  }
  .lmc-card-section {
    padding: 14px 10px;
  }
  .lmc-tabs-nav {
    padding: 4px 6px 0;
  }
  .lmc-tab-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  .lmc-inputs-grid {
    grid-template-columns: 1fr;
  }
  .lmc-field-full {
    grid-column: span 1;
  }
  .lmc-hero-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .lmc-all-units-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lmc-compare-grid {
    grid-template-columns: 1fr;
  }
  .lmc-actions-bar {
    flex-direction: column;
  }
  .lmc-actions-bar .lmc-btn {
    width: 100%;
    justify-content: center;
  }
  .lmc-unit-selector-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .lmc-hero-results-grid {
    grid-template-columns: 1fr;
  }
  .lmc-all-units-grid {
    grid-template-columns: 1fr;
  }
  .lmc-preset-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   Dark Mode Styles for Land Measurement Calculator
   Matches TulBD Theme System ([data-theme="dark"] & .dark-theme)
   ========================================================================== */

[data-theme="dark"] .lmc-suite-wrap,
.dark-theme .lmc-suite-wrap,
body.dark-theme .lmc-suite-wrap {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .lmc-preset-bar,
.dark-theme .lmc-preset-bar,
body.dark-theme .lmc-preset-bar {
  background: #0f172a !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .lmc-preset-label,
.dark-theme .lmc-preset-label,
body.dark-theme .lmc-preset-label {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .lmc-preset-btn,
.dark-theme .lmc-preset-btn,
body.dark-theme .lmc-preset-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .lmc-preset-btn:hover,
.dark-theme .lmc-preset-btn:hover,
body.dark-theme .lmc-preset-btn:hover {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .lmc-tabs-nav,
.dark-theme .lmc-tabs-nav,
body.dark-theme .lmc-tabs-nav {
  background: #0f172a !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .lmc-tab-btn,
.dark-theme .lmc-tab-btn,
body.dark-theme .lmc-tab-btn {
  color: #94a3b8 !important;
}

[data-theme="dark"] .lmc-tab-btn:hover,
.dark-theme .lmc-tab-btn:hover,
body.dark-theme .lmc-tab-btn:hover {
  color: #f8fafc !important;
  background: #1e293b !important;
}

[data-theme="dark"] .lmc-tab-btn.active,
.dark-theme .lmc-tab-btn.active,
body.dark-theme .lmc-tab-btn.active {
  color: #34d399 !important;
  background: #1e293b !important;
  border-bottom-color: #10b981 !important;
}

[data-theme="dark"] .lmc-card-section,
.dark-theme .lmc-card-section,
body.dark-theme .lmc-card-section {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .lmc-section-title,
.dark-theme .lmc-section-title,
body.dark-theme .lmc-section-title {
  color: #f8fafc !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .lmc-label,
.dark-theme .lmc-label,
body.dark-theme .lmc-label,
[data-theme="dark"] .lmc-field-group label,
.dark-theme .lmc-field-group label,
body.dark-theme .lmc-field-group label {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .lmc-input,
.dark-theme .lmc-input,
body.dark-theme .lmc-input,
[data-theme="dark"] .lmc-select,
.dark-theme .lmc-select,
body.dark-theme .lmc-select {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .lmc-select option,
.dark-theme .lmc-select option,
body.dark-theme .lmc-select option {
  background: #0f172a !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .lmc-input:focus,
.dark-theme .lmc-input:focus,
[data-theme="dark"] .lmc-select:focus,
.dark-theme .lmc-select:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

[data-theme="dark"] .lmc-input-unit-tag,
.dark-theme .lmc-input-unit-tag,
body.dark-theme .lmc-input-unit-tag {
  background: #334155 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

/* Results & Hero Cards in Dark Mode */
[data-theme="dark"] .lmc-hero-result-card,
.dark-theme .lmc-hero-result-card,
body.dark-theme .lmc-hero-result-card {
  background: #0f172a !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .lmc-hero-res-val,
.dark-theme .lmc-hero-res-val,
body.dark-theme .lmc-hero-res-val {
  color: #34d399 !important;
}

[data-theme="dark"] .lmc-hero-res-label,
.dark-theme .lmc-hero-res-label,
body.dark-theme .lmc-hero-res-label {
  color: #94a3b8 !important;
}

[data-theme="dark"] .lmc-unit-box,
.dark-theme .lmc-unit-box,
body.dark-theme .lmc-unit-box {
  background: #0f172a !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .lmc-unit-box-val,
.dark-theme .lmc-unit-box-val,
body.dark-theme .lmc-unit-box-val {
  color: #f8fafc !important;
}

[data-theme="dark"] .lmc-unit-box-name,
.dark-theme .lmc-unit-box-name,
body.dark-theme .lmc-unit-box-name {
  color: #94a3b8 !important;
}

[data-theme="dark"] .lmc-compare-card,
.dark-theme .lmc-compare-card,
body.dark-theme .lmc-compare-card {
  background: #0f172a !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .lmc-compare-card h4,
.dark-theme .lmc-compare-card h4,
body.dark-theme .lmc-compare-card h4 {
  color: #34d399 !important;
}

[data-theme="dark"] .lmc-compare-row,
.dark-theme .lmc-compare-row,
body.dark-theme .lmc-compare-row {
  border-bottom-color: #334155 !important;
  color: #cbd5e1 !important;
}

/* Tables in Dark Mode */
[data-theme="dark"] .lmc-table,
.dark-theme .lmc-table,
body.dark-theme .lmc-table,
[data-theme="dark"] .lmc-khatian-table,
.dark-theme .lmc-khatian-table,
body.dark-theme .lmc-khatian-table,
[data-theme="dark"] .lmc-share-table,
.dark-theme .lmc-share-table,
body.dark-theme .lmc-share-table {
  background: #0f172a !important;
}

[data-theme="dark"] .lmc-table th,
.dark-theme .lmc-table th,
body.dark-theme .lmc-table th,
[data-theme="dark"] .lmc-khatian-table th,
.dark-theme .lmc-khatian-table th,
body.dark-theme .lmc-khatian-table th,
[data-theme="dark"] .lmc-share-table th,
.dark-theme .lmc-share-table th,
body.dark-theme .lmc-share-table th {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .lmc-table td,
.dark-theme .lmc-table td,
body.dark-theme .lmc-table td,
[data-theme="dark"] .lmc-khatian-table td,
.dark-theme .lmc-khatian-table td,
body.dark-theme .lmc-khatian-table td,
[data-theme="dark"] .lmc-share-table td,
.dark-theme .lmc-share-table td,
body.dark-theme .lmc-share-table td {
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .lmc-btn-secondary,
.dark-theme .lmc-btn-secondary,
body.dark-theme .lmc-btn-secondary {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .lmc-btn-secondary:hover,
.dark-theme .lmc-btn-secondary:hover,
body.dark-theme .lmc-btn-secondary:hover {
  background: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .lmc-report-modal,
.dark-theme .lmc-report-modal,
body.dark-theme .lmc-report-modal {
  background: rgba(15, 23, 42, 0.8) !important;
}

[data-theme="dark"] .lmc-report-content,
.dark-theme .lmc-report-content,
body.dark-theme .lmc-report-content {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .lmc-report-content,
  .lmc-report-content * {
    visibility: visible;
  }
  .lmc-report-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
  }
  .lmc-report-header,
  .lmc-report-footer-actions {
    display: none !important;
  }
}
