/* ITCalcTools.com — Modern Light Theme */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg:       #f8fafc;
  --bg2:      #f1f5f9;
  --bg3:      #e8f0fe;
  --panel:    #ffffff;
  --border:   #e2e8f0;
  --border2:  #c7d7f5;
  --accent:   #2563eb;
  --accent-h: #1d4ed8;
  --accent2:  #059669;
  --accent3:  #dc2626;
  --warn:     #d97706;
  --accent-lt:#eff6ff;
  --accent2-lt:#ecfdf5;
  --text:     #374151;
  --dim:      #94a3b8;
  --bright:   #0f172a;
  --label:    #6b7280;
  --mono:     'DM Mono', monospace;
  --head:     'Syne', sans-serif;
  --body:     'DM Sans', sans-serif;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 16px rgba(37,99,235,0.08), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 32px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.08);
  --focus:      0 0 0 3px rgba(37,99,235,0.18);
  --sidebar:  230px;
  --adside:   180px;
  --radius:   10px;
  --radius-sm:6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
header {
  height: 62px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1600px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 16px;
}
.logo {
  font-family: var(--head);
  font-size: 1.2rem; font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.3px; white-space: nowrap;
}
.logo-hex {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 0.85rem; font-weight: 700;
}
.logo-accent { color: var(--accent2); }
.tagline { font-size: 0.78rem; color: var(--dim); flex: 1; }
.status-bar { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--label); }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 2px rgba(5,150,105,0.2);
  animation: pulse 2.5s infinite;
}
.status-sep { color: var(--border); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* TOP AD */
.ad-top {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 8px 24px; text-align: center; position: relative;
}
.ad-label {
  font-size: 0.6rem; color: var(--dim); letter-spacing: 1.5px;
  text-transform: uppercase; position: absolute; top: 4px; left: 10px;
}
.ad-leaderboard {
  display: inline-flex; align-items: center; justify-content: center;
  background: white; border: 1px dashed var(--border2);
  border-radius: var(--radius-sm); color: var(--dim);
  font-size: 0.72rem; width: min(728px,100%); height: 72px;
}

/* PAGE WRAP */
.page-wrap {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr var(--adside);
  min-height: calc(100vh - 130px);
  max-width: 1600px; margin: 0 auto;
}

/* SIDEBAR */
.sidebar {
  border-right: 1px solid var(--border); background: white;
  position: sticky; top: 62px; height: calc(100vh - 62px);
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.sidebar-inner { padding: 16px 0 32px; }
.nav-section { margin-bottom: 4px; }
.nav-cat {
  font-size: 0.65rem; font-weight: 700; color: var(--dim);
  letter-spacing: 1.5px; text-transform: uppercase; padding: 12px 18px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 18px; text-decoration: none; color: var(--text);
  font-size: 0.85rem; font-weight: 400;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  border-radius: 0 6px 6px 0; margin-right: 8px;
}
.nav-icon { font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; }
.nav-label { flex: 1; line-height: 1.3; }
.nav-item:hover { color: var(--accent); background: var(--accent-lt); border-left-color: var(--accent); }
.nav-item.active { color: var(--accent); background: var(--accent-lt); border-left-color: var(--accent); font-weight: 600; }

/* MAIN CONTENT */
.content { padding: 32px 36px; min-width: 0; background: var(--bg); }

/* AD SIDEBAR */
.ad-sidebar {
  padding: 24px 12px; display: flex; flex-direction: column;
  align-items: center; background: white; border-left: 1px solid var(--border);
}
.ad-label-v { font-size: 0.58rem; color: var(--dim); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.ad-rect {
  background: var(--bg2); border: 1px dashed var(--border2);
  border-radius: var(--radius-sm); color: var(--dim); font-size: 0.65rem;
  width: 155px; height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 2;
}

/* TOOL HEADER */
.tool-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--border); }
.tool-title {
  font-family: var(--head); font-size: 1.5rem; font-weight: 700;
  color: var(--bright); display: flex; align-items: center; gap: 12px; letter-spacing: -0.3px;
}
.tool-icon {
  font-size: 1.3rem; width: 44px; height: 44px;
  background: var(--accent-lt); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tool-desc { font-size: 0.9rem; color: var(--label); margin-top: 6px; }
.tool-seo { font-size: 0.9rem; color: var(--text); margin-top: 10px; line-height: 1.7; max-width: 680px; }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

label, .field-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--bright); margin-bottom: 6px;
}

input[type=text], input[type=number], input[type=password],
input[type=datetime-local], input[type=email], select, textarea {
  width: 100%; background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--bright);
  font-family: var(--body); font-size: 0.95rem; padding: 10px 14px;
  outline: none; transition: border-color .15s, box-shadow .15s; appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: var(--focus);
}
input[type=range] { width: 100%; accent-color: var(--accent); background: transparent; border: none; padding: 4px 0; box-shadow: none; }
input[type=color] { width: 52px; height: 38px; padding: 3px; cursor: pointer; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: white; }
input[type=checkbox] { accent-color: var(--accent); width: auto; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
select option { background: white; }
textarea { resize: vertical; min-height: 90px; }

/* BUTTONS */
.btn {
  background: var(--accent); border: none; border-radius: var(--radius-sm);
  color: white; font-family: var(--body); font-size: 0.85rem; font-weight: 600;
  padding: 10px 22px; cursor: pointer; transition: all .15s ease;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { background: var(--accent-h); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-g { background: var(--accent2); }
.btn-g:hover { background: #047857; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-r { background: white; border: 1.5px solid var(--border); color: var(--label); }
.btn-r:hover { border-color: var(--accent3); color: var(--accent3); background: white; box-shadow: none; transform: none; }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* COPY BUTTON */
.copy-btn {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 4px;
  color: var(--label); font-family: var(--mono); font-size: 0.68rem;
  padding: 3px 9px; cursor: pointer; transition: all .15s;
  vertical-align: middle; margin-left: 8px;
}
.copy-btn:hover { background: var(--accent-lt); border-color: var(--accent); color: var(--accent); }

/* RESULT BOXES */
.result-box {
  background: white; border: 1.5px solid var(--border2);
  border-radius: var(--radius); padding: 20px; margin-top: 20px;
  position: relative; box-shadow: var(--shadow-sm);
}
.result-box::before {
  content: 'RESULT'; font-size: 0.6rem; font-weight: 700;
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  position: absolute; top: -9px; left: 14px;
  background: white; padding: 0 8px;
}
.result-big { font-family: var(--mono); font-size: 1.7rem; color: var(--accent2); font-weight: 500; word-break: break-all; }
.result-sub { font-size: 0.72rem; font-weight: 700; color: var(--dim); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 10px; }
.result-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px; transition: box-shadow .15s;
}
.result-item:hover { box-shadow: var(--shadow-sm); }
.ri-label { font-size: 0.65rem; font-weight: 700; color: var(--label); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.ri-val { font-family: var(--mono); font-size: 0.92rem; color: var(--bright); word-break: break-all; font-weight: 500; }

/* TABLES */
table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 16px;
  background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
th {
  background: var(--bg2); color: var(--label); padding: 10px 14px; text-align: left;
  border-bottom: 2px solid var(--border); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
}
td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); word-break: break-all; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--accent-lt); }

/* CHECKBOXES */
.check-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.check-item { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 0.85rem; color: var(--text); }

/* STRENGTH BAR */
.strength-track { height: 6px; background: var(--bg2); border-radius: 99px; border: 1px solid var(--border); margin-top: 8px; overflow: hidden; }
.strength-fill { height: 100%; width: 0; border-radius: 99px; transition: width .4s ease, background .4s ease; }

/* BADGES */
.badge { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; margin: 2px; }
.badge-blue  { color: var(--accent);  background: var(--accent-lt); }
.badge-green { color: var(--accent2); background: var(--accent2-lt); }
.badge-red   { color: var(--accent3); background: #fef2f2; }
.badge-warn  { color: var(--warn);    background: #fffbeb; }

/* FOOTER */
footer { border-top: 1px solid var(--border); background: white; padding: 18px 24px; }
.footer-inner {
  max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--dim);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--label); text-decoration: none; font-weight: 500; transition: color .15s; }
.footer-links a:hover { color: var(--accent); }

/* INFO CARD */
.info-card {
  background: var(--accent-lt); border: 1px solid var(--border2);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-top: 20px;
}
.info-card h3 { font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.info-card p { font-size: 0.88rem; color: var(--text); line-height: 1.7; }

/* HOMEPAGE */
.home-hero { text-align: center; padding: 56px 20px 40px; }
.home-title {
  font-family: var(--head); font-size: clamp(2rem,5vw,3.4rem);
  font-weight: 800; color: var(--bright); letter-spacing: -1px; line-height: 1.15;
}
.home-title span { color: var(--accent); }
.home-sub { font-size: 1rem; color: var(--label); margin: 12px auto 0; max-width: 520px; line-height: 1.6; }
.category-section { margin-bottom: 36px; }
.category-title {
  font-size: 0.7rem; font-weight: 700; color: var(--label);
  letter-spacing: 1.5px; text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.category-title::before { content:''; display:inline-block; width:14px; height:3px; background:var(--accent); border-radius:2px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 12px; }
.tool-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px; cursor: pointer;
  transition: all .2s ease; text-decoration: none; display: block;
}
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.tc-icon {
  font-size: 1.5rem; width: 40px; height: 40px;
  background: var(--accent-lt); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.tc-name { font-family: var(--head); font-size: 0.82rem; color: var(--bright); font-weight: 700; line-height: 1.3; }
.tc-desc { font-size: 0.75rem; color: var(--dim); margin-top: 4px; line-height: 1.4; }

/* SEO BLOCKS */
.seo-block { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--border); }
.seo-block h2 { font-family: var(--head); font-size: 1.15rem; font-weight: 700; color: var(--bright); margin-bottom: 14px; line-height: 1.4; letter-spacing: -0.2px; }
.seo-block h3 { font-size: 0.78rem; font-weight: 700; color: var(--bright); margin: 22px 0 8px; padding-left: 12px; border-left: 3px solid var(--accent); }
.seo-block p { font-size: 0.92rem; color: var(--text); line-height: 1.8; margin-bottom: 10px; max-width: 780px; }
.seo-block ul { list-style: none; margin: 0 0 14px; padding: 0; max-width: 780px; }
.seo-block ul li { font-size: 0.9rem; color: var(--text); line-height: 1.7; padding: 4px 0 4px 20px; position: relative; }
.seo-block ul li::before { content:'→'; position:absolute; left:0; color:var(--accent); font-size:0.8rem; }
.seo-block strong { color: var(--bright); font-weight: 600; }
.seo-block code { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); background: var(--accent-lt); padding: 1px 7px; border-radius: 4px; }
.seo-block em { color: var(--accent); font-style: normal; font-weight: 500; }

/* INLINE AD */
.ad-inline { margin: 28px 0; text-align: center; background: var(--bg2); border: 1px dashed var(--border2); border-radius: var(--radius); padding: 12px; position: relative; }
.ad-inline .ad-label { position: static; display: block; margin-bottom: 8px; text-align: center; }
.ad-inline-slot { display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--dim); font-size: 0.68rem; width: min(728px,100%); height: 90px; }

/* RESPONSIVE */
@media(max-width:1100px){ :root{ --adside:0px; } .ad-sidebar{ display:none; } .page-wrap{ grid-template-columns: var(--sidebar) 1fr; } }
@media(max-width:700px){ :root{ --sidebar:0px; } .sidebar{ display:none; } .page-wrap{ grid-template-columns:1fr; } .content{ padding:20px 16px; } .form-row,.form-row-3{ grid-template-columns:1fr; } .home-hero{ padding:36px 16px 28px; } .tool-title{ font-size:1.2rem; } }

/* ANIMATIONS */
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.content { animation: fadeUp 0.3s ease; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* SELECTION */
::selection { background: rgba(37,99,235,0.15); color: var(--accent); }

/* PRE / CODE */
pre { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--mono); font-size: 0.82rem; overflow-x: auto; color: var(--text); line-height: 1.6; }
