:root{--pg:#f2f5f9;--card:#fff;--card2:#f6fafd;--brd:rgba(200,220,240,.6);--brd2:rgba(170,200,225,.8);--txt:#1a2e3d;--txt2:#2e4e66;--txt3:#496f89;--txt4:#6a8faa;--th:#1f3d51;--th-t:#fff;--even:#f5fafd;--hvr:#e8f4fd;--tr-b:rgba(200,220,240,.5);--pill:#dceef9;--pill-t:#0c5278;--pill-b:#aacfe8;--info:#e8f3fa;--info-b:#3d7ca3;--info-t:#0d3f5a;--warn:#fef9ec;--warn-b:#e6a017;--warn-t:#5f3f0e;--ok:#e8faf2;--ok-b:#1a9c5a;--ok-t:#0b4a28;--danger:#fde8e8;--danger-b:#d64545;--danger-t:#7a1f1f;--h1:linear-gradient(145deg,#0e3050,#1a527a);--sh:0 20px 40px -15px rgba(0,32,60,.18);--plug-body:#ffffff;--plug-stroke:#1a2e3d;--plug-slot:#1a2e3d;--plug-accent:#d64545;}
[data-theme="dark"]{--pg:#0b1826;--card:#0f2035;--card2:#132843;--brd:rgba(255,255,255,.08);--brd2:rgba(255,255,255,.15);--txt:#ddeaf8;--txt2:#8fb8d8;--txt3:#5a8aaa;--txt4:#3d6a88;--th:#091b2c;--th-t:#7dc4f0;--even:#0d1e30;--hvr:#112540;--tr-b:rgba(255,255,255,.06);--pill:rgba(59,130,246,.18);--pill-t:#93c5fd;--pill-b:rgba(59,130,246,.35);--info:rgba(59,130,246,.1);--info-b:#3b82f6;--info-t:#bfdbfe;--warn:rgba(245,158,11,.1);--warn-b:#f59e0b;--warn-t:#fcd34d;--ok:rgba(16,185,129,.1);--ok-b:#10b981;--ok-t:#6ee7b7;--danger:rgba(239,68,68,.12);--danger-b:#ef4444;--danger-t:#fca5a5;--h1:linear-gradient(135deg,#2c7be5,#0ea5e9);--sh:0 20px 40px -15px rgba(0,0,0,.5);--plug-body:#1a2e44;--plug-stroke:#8fb8d8;--plug-slot:#ddeaf8;--plug-accent:#f87171;}

*{margin:0;padding:0;box-sizing:border-box;}
body{background:var(--pg);font-family:'Inter',system-ui,sans-serif;color:var(--txt);min-height:100vh;}
.container{max-width:1300px;width:100%;background:var(--card);border-radius:1.8rem;box-shadow:var(--sh);padding:2.5rem 2.3rem;border:1px solid var(--brd);margin:0 auto;}

/* Shared table styles */
table{width:100%;border-collapse:collapse;font-size:.95rem;}
thead th{background:var(--th);color:var(--th-t);font-weight:700;font-size:.85rem;letter-spacing:.4px;text-transform:uppercase;padding:1rem 1.2rem;text-align:left;white-space:nowrap;}
tbody td{padding:.9rem 1.2rem;border-bottom:1px solid var(--tr-b);vertical-align:middle;color:var(--txt2);}
tbody tr:last-child td{border-bottom:none;}
tbody tr:hover td,tbody tr:hover{background:var(--hvr);}
tbody tr:nth-child(even) td{background:var(--even);}
tbody tr:nth-child(even):hover td{background:var(--hvr);}
.table-responsive{border-radius:1rem;overflow:hidden;border:1px solid var(--brd);overflow-x:auto;margin-bottom:2rem;}

/* Title section (same as dcc.php) */
.title-section{margin-bottom:2rem;}
.title-section h1{font-size:clamp(1.4rem,3vw,2.2rem);font-weight:800;background:var(--h1);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.power-range{background:var(--pill);padding:.35rem 1.1rem;border-radius:60px;font-size:1rem;font-weight:700;color:var(--pill-t);border:1px solid var(--pill-b);white-space:nowrap;-webkit-text-fill-color:var(--pill-t);}
.subhead{font-size:1rem;color:var(--txt2);margin-top:.6rem;font-weight:400;border-left:4px solid var(--info-b);padding:.4rem 1.2rem;background:var(--info);border-radius:0 8px 8px 0;width:fit-content;max-width:100%;}

/* Section heading */
.section-heading{margin:2.5rem 0 1.2rem;display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;}
.section-heading h2{font-size:clamp(1.15rem,2vw,1.55rem);font-weight:700;color:var(--txt);letter-spacing:-.01em;}
.section-heading .sec-nr{font-family:'JetBrains Mono',monospace;font-size:.8rem;color:var(--info-b);background:var(--info);padding:.25rem .7rem;border-radius:30px;border:1px solid var(--pill-b);font-weight:600;}
.section-sub{font-size:.92rem;color:var(--txt3);margin-bottom:1rem;max-width:900px;}

/* Badges */
.power{font-weight:700;color:var(--pill-t);background:var(--pill);padding:.2rem .7rem;border-radius:40px;display:inline-block;font-size:.9rem;border:1px solid var(--pill-b);-webkit-text-fill-color:var(--pill-t);}
.voltage-badge{font-family:'JetBrains Mono',monospace;background:var(--card2);padding:.2rem .7rem;border-radius:30px;font-size:.85rem;font-weight:600;color:var(--txt);display:inline-block;border:1px solid var(--brd);}
.current-badge{font-family:'JetBrains Mono',monospace;background:var(--card2);padding:.2rem .7rem;border-radius:30px;font-size:.85rem;font-weight:600;color:var(--txt2);display:inline-block;border:1px solid var(--brd);}
.freq-badge{font-family:'JetBrains Mono',monospace;background:var(--ok);padding:.2rem .7rem;border-radius:30px;font-size:.85rem;font-weight:600;color:var(--ok-t);display:inline-block;border:1px solid var(--ok-b);}
.category{font-weight:700;color:var(--txt);font-size:.95rem;}
.usage{font-size:.9rem;color:var(--txt2);line-height:1.3;}

/* Plug type cell */
.type-cell{text-align:center;min-width:80px;}
.type-letter{font-weight:800;font-size:2rem;background:var(--h1);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1;letter-spacing:-.04em;}
.type-sub{font-family:'JetBrains Mono',monospace;font-size:.7rem;color:var(--txt3);letter-spacing:.06em;margin-top:.25rem;text-transform:uppercase;}

/* SVG plug visual */
.svg-cell{text-align:center;min-width:90px;padding:.6rem !important;}
.plug-svg{width:62px;height:62px;display:block;margin:0 auto;transition:transform .3s ease;}
tbody tr:hover .plug-svg{transform:scale(1.12) rotate(-4deg);}
.plug-svg .p-body{fill:var(--plug-body);stroke:var(--plug-stroke);stroke-width:2.2;}
.plug-svg .p-slot{fill:var(--plug-slot);}
.plug-svg .p-outline{fill:none;stroke:var(--plug-stroke);stroke-width:1;opacity:.35;}
.plug-svg .p-accent{fill:var(--plug-accent);}

/* Country primary/secondary */
.country-primary{font-weight:700;color:var(--txt);}
.country-secondary{color:var(--txt3);font-size:.88rem;display:block;margin-top:.15rem;}

/* Highlight row (Turkey) */
tr.highlight-tr td{background:var(--info) !important;border-left:3px solid var(--info-b);}
tr.highlight-tr:hover td{background:var(--info) !important;filter:brightness(1.05);}

/* Regional standards grid */
.regions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-bottom:2rem;}
.region-card{background:var(--card2);border:1px solid var(--brd);border-radius:1rem;padding:1.3rem 1.2rem;transition:all .25s ease;position:relative;overflow:hidden;}
.region-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--info-b);}
.region-card:hover{transform:translateY(-3px);border-color:var(--info-b);box-shadow:0 8px 20px -8px rgba(0,50,100,.2);}
.region-flag{font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.14em;color:var(--info-b);text-transform:uppercase;font-weight:600;margin-bottom:.35rem;}
.region-card h3{font-size:1.05rem;font-weight:700;color:var(--txt);margin-bottom:.5rem;line-height:1.25;}
.region-card p{font-size:.88rem;color:var(--txt2);line-height:1.4;margin-bottom:.8rem;}
.region-specs{font-family:'JetBrains Mono',monospace;font-size:.85rem;color:var(--txt3);padding-top:.6rem;border-top:1px dashed var(--brd2);}
.region-specs strong{color:var(--pill-t);font-weight:700;}

/* Color chip for IEC table */
.color-chip{display:inline-flex;align-items:center;gap:.55rem;font-weight:700;color:var(--txt);}
.color-dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--brd2);flex-shrink:0;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.dot-blue{background:#1976D2;}
.dot-red{background:#D32F2F;}
.dot-yellow{background:#FBC02D;}
.dot-black{background:#212121;}
.dot-green{background:#388E3C;}

/* Notes grid */
.notes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:1.5rem;}
.note-card{background:var(--warn);border:1px solid var(--warn-b);border-left:4px solid var(--warn-b);border-radius:.8rem;padding:1.1rem 1.2rem;}
.note-card.info{background:var(--info);border-color:var(--info-b);border-left-color:var(--info-b);}
.note-card.ok{background:var(--ok);border-color:var(--ok-b);border-left-color:var(--ok-b);}
.note-card h4{font-size:1rem;font-weight:700;color:var(--warn-t);margin-bottom:.4rem;}
.note-card.info h4{color:var(--info-t);}
.note-card.ok h4{color:var(--ok-t);}
.note-card p{font-size:.88rem;color:var(--txt2);line-height:1.5;}
.note-card strong{color:var(--txt);}

/* Voltage column highlight */
.volt-main{font-family:'JetBrains Mono',monospace;font-weight:700;color:var(--danger-b);font-size:1rem;}
.volt-alt{font-family:'JetBrains Mono',monospace;font-size:.72rem;color:var(--txt3);display:block;margin-top:.15rem;}

/* Stat callout strip */
.stats-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0;background:var(--card2);border:1px solid var(--brd);border-radius:1rem;overflow:hidden;margin-bottom:2rem;}
.stat-item{padding:1.1rem 1rem;text-align:center;border-right:1px solid var(--brd);}
.stat-item:last-child{border-right:none;}
.stat-num{font-size:1.7rem;font-weight:800;background:var(--h1);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1;letter-spacing:-.02em;}
.stat-label{font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--txt3);margin-top:.35rem;}

/* ===== Industrial plug SVGs (IEC 60309 / CEE) ===== */
.ind-svg{width:60px;height:60px;display:block;margin:0 auto;transition:transform .3s ease;filter:drop-shadow(0 2px 4px rgba(0,0,0,.18));}
tbody tr:hover .ind-svg{transform:scale(1.15) rotate(-6deg);}
.ind-svg .ibody-blue{fill:#1976D2;stroke:#0D47A1;stroke-width:2.5;}
.ind-svg .ibody-red{fill:#D32F2F;stroke:#7F1010;stroke-width:2.5;}
.ind-svg .ibody-yellow{fill:#FBC02D;stroke:#8B6914;stroke-width:2.5;}
.ind-svg .ibody-black{fill:#2c2c2c;stroke:#000;stroke-width:2.5;}
.ind-svg .ibody-green{fill:#388E3C;stroke:#1B5E20;stroke-width:2.5;}
.ind-svg .iinner-blue{fill:#0D47A1;opacity:.85;}
.ind-svg .iinner-red{fill:#8B0000;opacity:.85;}
.ind-svg .iinner-yellow{fill:#B8860B;opacity:.85;}
.ind-svg .iinner-black{fill:#0a0a0a;opacity:.9;}
.ind-svg .iinner-green{fill:#1B5E20;opacity:.85;}
.ind-svg .ipin{fill:#0a0a0a;}
.ind-svg .ipin-y{fill:#1a1a1a;}
.ind-svg .ikey{fill:rgba(255,255,255,.35);}

/* NEMA plug SVGs */
.nema-svg{width:60px;height:60px;display:block;margin:0 auto;transition:transform .3s ease;}
tbody tr:hover .nema-svg{transform:scale(1.12) rotate(-4deg);}
.nema-svg .n-body{fill:var(--plug-body);stroke:var(--plug-stroke);stroke-width:2.2;}
.nema-svg .n-slot{fill:var(--plug-slot);}

/* IEC 60320 device plugs */
.dev-svg{width:64px;height:48px;display:block;margin:0 auto;transition:transform .3s ease;}
tbody tr:hover .dev-svg{transform:scale(1.12);}
.dev-svg .d-body{fill:var(--plug-body);stroke:var(--plug-stroke);stroke-width:2;}
.dev-svg .d-slot{fill:var(--plug-slot);}

/* Amper big badge for industrial rows */
.amp-xl{display:inline-block;font-family:'JetBrains Mono',monospace;font-weight:800;font-size:1.05rem;padding:.3rem .85rem;border-radius:40px;background:var(--warn);color:var(--warn-t);border:1px solid var(--warn-b);-webkit-text-fill-color:var(--warn-t);letter-spacing:-.02em;}

/* Small color chip (inline for tables) */
.color-chip-sm{display:inline-flex;align-items:center;gap:.45rem;font-weight:600;color:var(--txt);font-size:.88rem;white-space:nowrap;}
.color-dot-sm{width:14px;height:14px;border-radius:50%;border:1.5px solid var(--brd2);flex-shrink:0;box-shadow:inset 0 1px 2px rgba(0,0,0,.2);}

/* Pin count badge */
.pin-badge{font-family:'JetBrains Mono',monospace;font-size:.78rem;font-weight:600;color:var(--txt3);background:var(--card2);padding:.2rem .55rem;border-radius:20px;border:1px solid var(--brd);display:inline-block;white-space:nowrap;}

@media(max-width:900px){
  .stat-item{border-right:none;border-bottom:1px solid var(--brd);}
  .stat-item:last-child{border-bottom:none;}
}
@media(max-width:700px){
  .container{padding:1.5rem 1rem;}
  .title-section h1{font-size:1.6rem;}
  .type-letter{font-size:1.5rem;}
  .plug-svg{width:50px;height:50px;}
  thead th,tbody td{padding:.65rem .7rem;font-size:.82rem;}
}
