/* Modern Soft UI Design Tokens & Theme */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Subtle Gradient Background */
.bg-ambient {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.03) 0px, transparent 50%);
}

/* Soft Card Aesthetics */
.soft-card {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease-in-out;
}

.soft-card:hover {
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

/* Radial Gauge Circular Progress */
.gauge-circle-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 8;
}

.gauge-circle-val {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

/* Formula Presentation Box */
.formula-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.875rem;
  padding: 1.25rem;
  color: #e2e8f0;
}

/* Wire Cross-Section Interactive Hover */
.conduit-wire-circle {
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.conduit-wire-circle:hover circle {
  filter: brightness(1.15) drop-shadow(0 0 4px rgba(99, 102, 241, 0.6));
}

/* Scrollbar Styling for Tables */
.overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print Styles for Jobsite Field PDF Reports */
@media print {
  .no-print, header, footer, .action-buttons, .support-section, nav, #add-conductor-btn, .delete-row-btn {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  
  .soft-card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1rem !important;
  }
  
  .calc-grid {
    display: block !important;
  }
  
  .calc-column {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }
}
