/* Electricity Calculator — style.css v1.0 */
.elec-wrap { max-width:660px; margin:0 auto; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; color:#1a1a1a; }
.elec-header { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.elec-icon { font-size:34px; color:#F59E0B; line-height:1; }
.elec-title { font-size:22px !important; font-weight:600 !important; margin:0 0 3px !important; padding:0 !important; border:none !important; color:#1a1a1a !important; }
.elec-sub { font-size:13px; color:#666; margin:0; }

/* Settings */
.elec-settings-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; background:#fffbeb; border:1px solid #fde68a; border-radius:12px; padding:14px 16px; margin-bottom:12px; }
@media(max-width:500px){ .elec-settings-row { grid-template-columns:1fr 1fr; } }
.elec-lbl { display:block; font-size:12px; font-weight:500; color:#555; margin-bottom:5px; }
.elec-iw { position:relative; }
.elec-iw input { width:100%; box-sizing:border-box; padding:7px 32px 7px 24px; border:1px solid #d0d0d0; border-radius:7px; font-size:13px; color:#1a1a1a; background:#fff; outline:none; transition:border-color .15s; -moz-appearance:textfield; }
.elec-iw input::-webkit-inner-spin-button,.elec-iw input::-webkit-outer-spin-button { -webkit-appearance:none; }
.elec-iw input:focus { border-color:#F59E0B; box-shadow:0 0 0 3px rgba(245,158,11,.1); }
.elec-pre { position:absolute; left:7px; top:50%; transform:translateY(-50%); font-size:12px; color:#999; pointer-events:none; }
.elec-suf { position:absolute; right:5px; top:50%; transform:translateY(-50%); font-size:10px; color:#999; pointer-events:none; white-space:nowrap; }

/* Presets */
.elec-presets-row { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-bottom:16px; }
.elec-presets-lbl { font-size:12px; color:#888; }
.elec-preset-btn { padding:5px 11px; font-size:12px; border:1px solid #d0d0d0; border-radius:7px; background:#fff; color:#555; cursor:pointer; transition:background .13s; }
.elec-preset-btn:hover { background:#fffbeb; border-color:#fcd34d; color:#92400E; }

/* Section label */
.elec-section-lbl { font-size:11px; font-weight:700; color:#999; text-transform:uppercase; letter-spacing:.6px; margin-bottom:8px; }

/* Appliance table */
.elec-table-wrap { margin-bottom:4px; }
.elec-row-head { display:grid; grid-template-columns:1fr 80px 80px 80px 90px 28px; gap:7px; padding-bottom:5px; margin-bottom:5px; font-size:11px; font-weight:700; color:#999; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid #e8e8e8; }
.elec-appliance-row { display:grid; grid-template-columns:1fr 80px 80px 80px 90px 28px; gap:7px; margin-bottom:6px; align-items:center; }
@media(max-width:540px){ .elec-row-head,.elec-appliance-row { grid-template-columns:1fr 65px 65px 65px 80px 26px; } }
@media(max-width:420px){ .elec-row-head,.elec-appliance-row { grid-template-columns:1fr 60px 60px 28px; }
  .elec-row-head span:nth-child(4),.elec-row-head span:nth-child(5),.elec-appliance-row .elec-kwh-cell,.elec-appliance-row .elec-cost-cell { display:none; } }
.elec-appliance-row input[type="text"],.elec-appliance-row input[type="number"] { width:100%; box-sizing:border-box; padding:7px 8px; border:1px solid #d0d0d0; border-radius:7px; font-size:13px; color:#1a1a1a; background:#fff; outline:none; transition:border-color .15s; -moz-appearance:textfield; text-align:center; font-family:inherit; }
.elec-appliance-row input:first-child { text-align:left; padding-left:10px; }
.elec-appliance-row input::-webkit-inner-spin-button,.elec-appliance-row input::-webkit-outer-spin-button { -webkit-appearance:none; }
.elec-appliance-row input:focus { border-color:#F59E0B; box-shadow:0 0 0 3px rgba(245,158,11,.1); }
.elec-kwh-cell,.elec-cost-cell { font-size:13px; font-weight:600; font-family:monospace; text-align:center; padding:7px 4px; border:1px solid #fde68a; border-radius:7px; background:#fffbeb; }
.elec-kwh-cell { color:#92400E; }
.elec-cost-cell { color:#D97706; }
.elec-rm-btn { width:26px; height:26px; border-radius:6px; border:1px solid #e8e8e8; background:#fff; color:#bbb; font-size:12px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .13s,color .13s; flex-shrink:0; }
.elec-rm-btn:hover { background:#fee2e2; color:#b91c1c; border-color:#fca5a5; }
.elec-table-actions { display:flex; gap:8px; margin:8px 0 14px; flex-wrap:wrap; }
.elec-add-btn { font-size:12.5px; color:#92400E; background:none; border:1px dashed #fcd34d; border-radius:7px; padding:7px 14px; cursor:pointer; transition:background .13s; }
.elec-add-btn:hover { background:#fffbeb; }

/* Summary cards */
.elec-summary-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:18px; animation:elec-in .22s ease; }
@media(max-width:480px){ .elec-summary-cards { grid-template-columns:repeat(2,1fr); } }
@keyframes elec-in { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
.elec-sum-card { border-radius:11px; padding:12px 10px; text-align:center; border:1px solid; }
.elec-card-kwh    { background:#fffbeb; border-color:#fde68a; }
.elec-card-daily  { background:#fef3c7; border-color:#fde047; }
.elec-card-monthly{ background:#fef9c3; border-color:#fbbf24; }
.elec-card-yearly { background:#fefce8; border-color:#f59e0b; }
.elec-sum-val { font-size:20px; font-weight:700; margin-bottom:3px; font-family:monospace; }
.elec-sum-lbl { font-size:11px; color:#78350F; }
.elec-card-kwh .elec-sum-val { color:#92400E; }
.elec-card-daily  .elec-sum-val { color:#B45309; }
.elec-card-monthly .elec-sum-val { color:#D97706; }
.elec-card-yearly .elec-sum-val { color:#F59E0B; }

/* Bars */
.elec-bar-item { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.elec-bar-name { font-size:12px; color:#555; width:130px; flex-shrink:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.elec-bar-track { flex:1; height:10px; background:#fef3c7; border-radius:5px; overflow:hidden; }
.elec-bar-fill { height:100%; border-radius:5px; background:linear-gradient(90deg,#F59E0B,#D97706); transition:width .5s ease; }
.elec-bar-val { font-size:12px; font-weight:600; color:#92400E; font-family:monospace; width:80px; text-align:right; flex-shrink:0; }

/* Bill breakdown */
.elec-bill-card { background:#fffbeb; border:1px solid #fde68a; border-radius:11px; padding:14px 16px; margin-bottom:14px; }
.elec-bill-row { display:flex; justify-content:space-between; padding:6px 0; font-size:13px; border-bottom:1px solid #fde68a; }
.elec-bill-row:last-child { border-bottom:none; font-weight:700; font-size:15px; }
.elec-bill-lbl { color:#78350F; }
.elec-bill-val { color:#92400E; font-family:monospace; font-weight:600; }

/* Disclaimer */
.elec-disclaimer { font-size:11px; color:#bbb; text-align:center; margin-top:10px; }
.elec-reset-btn { display:block; width:100%; margin-top:10px; padding:9px; font-size:13px; color:#999; background:none; border:1px solid #e8e8e8; border-radius:8px; cursor:pointer; transition:background .13s; }
.elec-reset-btn:hover { background:#f5f5f5; color:#333; }
