/* Lactation Curve Intelligence - WordPress Plugin Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --lci-jersey: #D4A017;
  --lci-jersey-light: #F5E6B8;
  --lci-jersey-dark: #8B6914;
  --lci-holstein: #1A1A2E;
  --lci-holstein-light: #A8B8D8;
  --lci-bg: #FEFCF6;
  --lci-card: #FFFFFF;
  --lci-text: #2D2A24;
  --lci-muted: #8A8578;
  --lci-accent: #C45B28;
  --lci-grid: #E8E4DB;
  --lci-L1: #E07B39;
  --lci-L2: #4A90D9;
  --lci-L3: #2EAF6C;
  --lci-herd: #9B59B6;
  --lci-predict: #E74C3C;
}

.lci-wrap { font-family: 'DM Sans', sans-serif; background: var(--lci-bg); color: var(--lci-text); max-width: 1140px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.lci-wrap * { box-sizing: border-box; }

/* Header */
.lci-header { background: linear-gradient(135deg, #0F0F1B 0%, #2D2A24 50%, #8B6914 100%); padding: 32px 28px 22px; color: #fff; }
.lci-header h2 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 24px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; }
.lci-header h2 span { font-size: 26px; margin-right: 8px; }
.lci-header p { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; max-width: 700px; line-height: 1.5; }

/* Nav Tabs */
.lci-nav { background: var(--lci-card); border-bottom: 1px solid var(--lci-grid); display: flex; gap: 2px; padding: 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lci-nav::-webkit-scrollbar { height: 0; }
.lci-tab { padding: 12px 14px; border: none; border-bottom: 3px solid transparent; background: transparent; color: var(--lci-muted); font-family: 'Libre Baskerville', Georgia, serif; font-size: 12px; font-weight: 400; cursor: pointer; transition: all 0.3s; white-space: nowrap; letter-spacing: 0.02em; }
.lci-tab:hover { color: var(--lci-text); }
.lci-tab.active { color: var(--lci-text); font-weight: 700; border-bottom-color: var(--lci-accent); }
.lci-tab[data-tab="herdavg"].active { border-bottom-color: var(--lci-herd); }
.lci-tab[data-tab="predictor"].active { border-bottom-color: var(--lci-predict); }
.lci-tab[data-tab="myherd"].active { border-bottom-color: #2E86AB; }
.lci-tab[data-tab="compcurves"].active { border-bottom-color: #E8963E; }

/* Content Area */
.lci-content { padding: 24px 24px 40px; }
.lci-panel { display: none; }
.lci-panel.active { display: block; }

/* Controls Row */
.lci-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

/* Lactation Toggle */
.lci-lac-toggle { display: flex; gap: 5px; background: #F3F0E8; border-radius: 8px; padding: 3px; }
.lci-lac-btn { padding: 6px 16px; border: none; border-radius: 6px; background: transparent; color: var(--lci-muted); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400; cursor: pointer; transition: all 0.2s; }
.lci-lac-btn.active { background: var(--lci-card); color: var(--lci-text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Checkboxes */
.lci-checks { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lci-checks label { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--lci-muted); cursor: pointer; }
.lci-checks input[type="checkbox"] { accent-color: var(--lci-accent); }

/* Stat Cards */
.lci-stats { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.lci-stat { background: var(--lci-card); border: 1px solid var(--lci-grid); border-radius: 6px; padding: 12px 16px; flex: 1; min-width: 130px; border-left: 4px solid var(--lci-accent); }
.lci-stat-label { font-size: 10px; color: var(--lci-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.lci-stat-value { font-size: 22px; font-weight: 700; margin-top: 2px; }
.lci-stat-value .unit { font-size: 11px; font-weight: 400; color: var(--lci-muted); margin-left: 3px; }
.lci-stat-sub { font-size: 10px; color: var(--lci-muted); margin-top: 2px; }

/* Chart Card */
.lci-chart-card { background: var(--lci-card); border: 1px solid var(--lci-grid); border-radius: 10px; padding: 20px 16px 12px; margin-bottom: 16px; }
.lci-chart-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.lci-chart-sub { font-size: 12px; color: var(--lci-muted); margin-bottom: 14px; line-height: 1.4; }
.lci-chart-wrap { position: relative; width: 100%; }
.lci-chart-wrap canvas { width: 100% !important; }

/* Insight Box */
.lci-insight { padding: 14px 18px; border-radius: 8px; font-size: 13px; line-height: 1.6; margin-top: 16px; }
.lci-insight.orange { background: #FFF8EE; border: 1px solid #F0DFC0; color: #6B5A3E; }
.lci-insight.green { background: #F5FFF5; border: 1px solid #C0E8C0; color: #3B5A3B; }
.lci-insight.purple { background: #F5F0FA; border: 1px solid #D8CCE8; color: #5B3E7B; }
.lci-insight.red { background: #FFF0F0; border: 1px solid #F0C0C0; color: #7B3E3E; }
.lci-insight.blue { background: #F0F4FF; border: 1px solid #D0DAFA; color: #3B4A6B; }
.lci-insight strong { font-weight: 700; }
.lci-insight strong.accent { color: var(--lci-accent); }

/* Slider Controls */
.lci-slider-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.lci-slider-group { flex: 1; min-width: 120px; }
.lci-slider-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.lci-slider-label { font-size: 10px; color: var(--lci-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lci-slider-val { font-size: 13px; font-weight: 600; color: var(--lci-text); }
.lci-slider-group input[type="range"] { width: 100%; accent-color: var(--lci-accent); }

/* Number Input */
.lci-input-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.lci-input-group { display: flex; flex-direction: column; gap: 3px; }
.lci-input-group label { font-size: 10px; color: var(--lci-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lci-input-group input[type="number"] { width: 80px; padding: 7px 9px; border: 1px solid var(--lci-grid); border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--lci-text); background: var(--lci-card); outline: none; font-family: 'DM Sans', sans-serif; }
.lci-input-group input[type="number"]:focus { border-color: var(--lci-accent); }
.lci-input-unit { font-size: 11px; color: var(--lci-muted); }

/* Breed Toggle */
.lci-breed-toggle { display: flex; gap: 6px; }
.lci-breed-btn { padding: 8px 16px; border: 2px solid var(--lci-grid); border-radius: 6px; background: transparent; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--lci-muted); transition: all 0.2s; }
.lci-breed-btn.active-h { border-color: var(--lci-holstein); background: var(--lci-holstein-light); color: var(--lci-text); }
.lci-breed-btn.active-j { border-color: var(--lci-jersey); background: var(--lci-jersey-light); color: var(--lci-text); }

/* Footer */
.lci-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--lci-grid); font-size: 11px; color: var(--lci-muted); line-height: 1.7; }

/* Legend Badge */
.lci-legend-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; }
.lci-legend-item { display: flex; align-items: center; gap: 5px; }
.lci-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.lci-legend-line { width: 20px; height: 3px; border-radius: 2px; }

/* Responsive */
@media (max-width: 768px) {
  .lci-content { padding: 16px 14px 32px; }
  .lci-header { padding: 24px 16px 18px; }
  .lci-header h2 { font-size: 20px; }
  .lci-stats { flex-direction: column; }
  .lci-stat { min-width: unset; }
  .lci-nav { padding: 0 10px; }
  .lci-tab { padding: 10px 10px; font-size: 11px; }
  .lci-slider-row { flex-direction: column; }
}
