/* ============================================================
   SERPAZO.COM — Google Style Design System
   Shared CSS for all tools
   Version: 2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ── CSS Variables ── */
:root {
  --sz-blue:        #1A73E8;
  --sz-blue-dark:   #1557B0;
  --sz-blue-light:  #E8F0FE;
  --sz-blue-pale:   #F1F6FE;
  --sz-green:       #188038;
  --sz-green-light: #E6F4EA;
  --sz-red:         #D93025;
  --sz-red-light:   #FCE8E6;
  --sz-amber:       #F29900;
  --sz-amber-light: #FEF7E0;
  --sz-text:        #202124;
  --sz-text-sub:    #5F6368;
  --sz-text-muted:  #80868B;
  --sz-border:      #DADCE0;
  --sz-bg:          #FFFFFF;
  --sz-bg-sub:      #F8F9FA;
  --sz-bg-hover:    #F1F3F4;
  --sz-shadow:      0 1px 3px rgba(60,64,67,.3), 0 4px 8px rgba(60,64,67,.15);
  --sz-shadow-sm:   0 1px 2px rgba(60,64,67,.3);
  --sz-radius:      8px;
  --sz-radius-lg:   12px;
  --sz-font:        'Roboto', 'Google Sans', 'Segoe UI', sans-serif;
}

/* ── Tool Wrapper ── */
.sz-tool {
  font-family: var(--sz-font);
  color: var(--sz-text);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 48px;
  background: var(--sz-bg);
}

/* ── Hero ── */
.sz-hero {
  text-align: center;
  padding: 40px 16px 28px;
}
.sz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sz-blue-light);
  color: var(--sz-blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.sz-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--sz-blue);
  border-radius: 50%;
  animation: sz-pulse 2s infinite;
}
@keyframes sz-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}
.sz-title {
  font-family: 'Google Sans', 'Roboto', sans-serif;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: var(--sz-text);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.sz-title-blue { color: var(--sz-blue); }
.sz-subtitle {
  font-size: 15px;
  color: var(--sz-text-sub);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* ── Card ── */
.sz-card {
  background: var(--sz-bg);
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius-lg);
  padding: 24px;
  box-shadow: var(--sz-shadow);
  margin-bottom: 16px;
}

/* ── Section title ── */
.sz-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sz-text-muted);
  margin-bottom: 12px;
}

/* ── Labels ── */
.sz-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sz-text-sub);
  margin-bottom: 5px;
}

/* ── Inputs ── */
.sz-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  background: var(--sz-bg-sub);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.sz-input-wrap:focus-within {
  border-color: var(--sz-blue);
  background: var(--sz-bg);
  box-shadow: 0 0 0 2px var(--sz-blue-light);
}
.sz-prefix {
  padding: 9px 10px;
  background: var(--sz-blue-light);
  color: var(--sz-blue);
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid var(--sz-border);
  white-space: nowrap;
  flex-shrink: 0;
}
.sz-suffix {
  padding: 9px 10px;
  color: var(--sz-text-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.sz-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--sz-font);
  font-size: 15px;
  font-weight: 400;
  color: var(--sz-text);
  padding: 9px 12px;
  outline: none;
  min-width: 0;
}
.sz-input::placeholder { color: var(--sz-border); }
.sz-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--sz-bg-sub);
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  font-family: var(--sz-font);
  font-size: 14px;
  color: var(--sz-text);
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: 80px;
}
.sz-textarea:focus {
  border-color: var(--sz-blue);
  background: var(--sz-bg);
  box-shadow: 0 0 0 2px var(--sz-blue-light);
}
.sz-select {
  width: 100%;
  appearance: none;
  background: var(--sz-bg-sub);
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  font-family: var(--sz-font);
  font-size: 14px;
  color: var(--sz-text);
  padding: 9px 32px 9px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}
.sz-select:focus { border-color: var(--sz-blue); }
.sz-select-wrap { position: relative; }
.sz-select-arr {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sz-text-muted);
  pointer-events: none;
  font-size: 11px;
}

/* ── Field ── */
.sz-field { margin-bottom: 14px; }
.sz-field:last-child { margin-bottom: 0; }
.sz-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sz-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.sz-col-2  { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .sz-grid-2, .sz-grid-3 { grid-template-columns: 1fr; }
}

/* ── Buttons ── */
.sz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sz-blue);
  color: #fff;
  border: none;
  border-radius: var(--sz-radius);
  font-family: var(--sz-font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.sz-btn:hover  { background: var(--sz-blue-dark); }
.sz-btn:active { background: var(--sz-blue-dark); box-shadow: none; }
.sz-btn--full  { width: 100%; }
.sz-btn--lg    { font-size: 15px; padding: 13px 28px; }
.sz-btn--green { background: var(--sz-green); }
.sz-btn--green:hover { background: #0D652D; }
.sz-btn--outline {
  background: none;
  color: var(--sz-blue);
  border: 1px solid var(--sz-border);
}
.sz-btn--outline:hover {
  background: var(--sz-blue-light);
  border-color: var(--sz-blue);
}
.sz-btn--ghost {
  background: none;
  color: var(--sz-text-sub);
  border: 1px solid var(--sz-border);
}
.sz-btn--ghost:hover { background: var(--sz-bg-sub); }

/* ── Mode Toggle (Add/Remove) ── */
.sz-mode-toggle {
  display: flex;
  background: var(--sz-bg-sub);
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  padding: 3px;
  margin-bottom: 18px;
}
.sz-mode-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--sz-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--sz-text-sub);
  background: transparent;
  transition: all .15s;
}
.sz-mode-btn.active {
  background: var(--sz-bg);
  color: var(--sz-blue);
  box-shadow: var(--sz-shadow-sm);
}

/* ── Result Box ── */
.sz-result {
  background: var(--sz-bg-sub);
  border: 1px solid var(--sz-border);
  border-left: 3px solid var(--sz-blue);
  border-radius: var(--sz-radius);
  padding: 16px 18px;
  margin-top: 16px;
  animation: sz-fade .3s ease;
}
@keyframes sz-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sz-result-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--sz-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}
.sz-result-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--sz-blue);
  line-height: 1.1;
  margin-bottom: 4px;
}
.sz-result-note {
  font-size: 13px;
  color: var(--sz-text-sub);
  line-height: 1.5;
}

/* ── Stats Grid ── */
.sz-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.sz-stat {
  background: var(--sz-bg);
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  padding: 12px 10px;
  text-align: center;
}
.sz-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--sz-blue);
  line-height: 1;
  margin-bottom: 4px;
}
.sz-stat-label {
  font-size: 11px;
  color: var(--sz-text-muted);
  font-weight: 400;
}

/* ── Error Box ── */
.sz-error {
  background: var(--sz-red-light);
  border: 1px solid #FECACA;
  border-left: 3px solid var(--sz-red);
  border-radius: var(--sz-radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--sz-red);
  margin-top: 14px;
  animation: sz-fade .3s ease;
}

/* ── Success Box ── */
.sz-success {
  background: var(--sz-green-light);
  border: 1px solid #A7F3D0;
  border-left: 3px solid var(--sz-green);
  border-radius: var(--sz-radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--sz-green);
  margin-top: 14px;
}

/* ── Info Box ── */
.sz-info {
  background: var(--sz-blue-light);
  border: 1px solid #BFDBFE;
  border-radius: var(--sz-radius);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--sz-blue);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ── Progress Bar ── */
.sz-progress-bar {
  background: var(--sz-bg-sub);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
  margin: 8px 0 4px;
}
.sz-progress-fill {
  height: 100%;
  background: var(--sz-blue);
  border-radius: 100px;
  transition: width .4s ease;
}

/* ── Table ── */
.sz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sz-table th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sz-blue);
  background: var(--sz-blue-light);
  text-align: left;
}
.sz-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--sz-border);
  color: var(--sz-text);
}
.sz-table tbody tr:last-child td { border-bottom: none; }
.sz-table tbody tr:hover td { background: var(--sz-bg-sub); }

/* ── Badge ── */
.sz-badge-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}
.sz-badge-tag--blue   { background: var(--sz-blue-light);  color: var(--sz-blue); }
.sz-badge-tag--green  { background: var(--sz-green-light); color: var(--sz-green); }
.sz-badge-tag--red    { background: var(--sz-red-light);   color: var(--sz-red); }
.sz-badge-tag--amber  { background: var(--sz-amber-light); color: var(--sz-amber); }
.sz-badge-tag--gray   { background: var(--sz-bg-sub);      color: var(--sz-text-muted); }

/* ── Drop Zone ── */
.sz-dropzone {
  border: 2px dashed var(--sz-border);
  border-radius: var(--sz-radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  background: var(--sz-bg-sub);
}
.sz-dropzone:hover,
.sz-dropzone.drag-over {
  border-color: var(--sz-blue);
  background: var(--sz-blue-pale);
}
.sz-dropzone-icon  { font-size: 40px; margin-bottom: 12px; }
.sz-dropzone-title { font-size: 16px; font-weight: 500; color: var(--sz-text); margin-bottom: 5px; }
.sz-dropzone-sub   { font-size: 13px; color: var(--sz-blue); }
.sz-dropzone-hint  {
  display: inline-block;
  font-size: 11px;
  color: var(--sz-text-muted);
  background: var(--sz-bg-sub);
  border: 1px solid var(--sz-border);
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
}
.sz-file-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* ── Done Screen ── */
.sz-done-wrap { text-align: center; padding: 16px 0; }
.sz-done-icon { font-size: 48px; margin-bottom: 14px; }
.sz-done-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--sz-text);
  margin-bottom: 6px;
}
.sz-done-sub { font-size: 14px; color: var(--sz-text-sub); margin-bottom: 20px; }
.sz-done-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--sz-bg-sub);
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.sz-done-stat { flex: 1; padding: 16px 10px; }
.sz-done-stat-num   { font-size: 22px; font-weight: 700; color: var(--sz-blue); }
.sz-done-stat-label { font-size: 11px; color: var(--sz-text-muted); margin-top: 3px; }
.sz-done-stat-div   { width: 1px; height: 50px; background: var(--sz-border); }

/* ── Country/Category chips ── */
.sz-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.sz-chip {
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--sz-border);
  background: var(--sz-bg-sub);
  font-family: var(--sz-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--sz-text-sub);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sz-chip:hover { border-color: var(--sz-blue); color: var(--sz-blue); background: var(--sz-blue-light); }
.sz-chip.active { border-color: var(--sz-blue); background: var(--sz-blue-light); color: var(--sz-blue); }

/* ── Scale buttons (CGPA) ── */
.sz-scale-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.sz-scale-btn {
  padding: 12px 8px;
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  background: var(--sz-bg-sub);
  cursor: pointer;
  font-family: var(--sz-font);
  text-align: center;
  transition: all .15s;
}
.sz-scale-btn:hover { border-color: var(--sz-blue); }
.sz-scale-btn.active { border-color: var(--sz-blue); background: var(--sz-blue-light); border-width: 2px; }
.sz-scale-num { font-size: 20px; font-weight: 700; color: var(--sz-text); }
.sz-scale-btn.active .sz-scale-num { color: var(--sz-blue); }
.sz-scale-sub { font-size: 10px; color: var(--sz-text-muted); margin-top: 2px; }

/* ── Disclaimer ── */
.sz-disclaimer {
  font-size: 12px;
  color: var(--sz-text-muted);
  text-align: center;
  line-height: 1.6;
  margin-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .sz-card { padding: 16px; }
  .sz-hero { padding: 28px 8px 20px; }
  .sz-btn--lg { padding: 12px 20px; font-size: 14px; }
}

/* ── Additional fixes v2.2 ── */

/* Labels — Title Case style */
.sz-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--sz-text) !important;
  margin-bottom: 5px;
}

/* Placeholder — light gray */
.sz-input::placeholder { color: #BDBDBD !important; font-size: 13px; }
.sz-textarea::placeholder { color: #BDBDBD !important; }

/* Input height — consistent */
.sz-input-wrap { height: 42px; }
.sz-input { font-size: 14px; }

/* Suffix/prefix sizing */
.sz-prefix, .sz-suffix {
  font-size: 13px;
  font-weight: 500;
}

/* Prominent button */
.sz-btn--lg {
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 14px 24px !important;
  box-shadow: 0 2px 8px rgba(26,115,232,.4) !important;
  letter-spacing: .2px;
}
.sz-btn--lg:hover {
  box-shadow: 0 4px 14px rgba(26,115,232,.5) !important;
}

/* Select arrow */
.sz-select { padding-right: 32px; }
