/* ═══════════════════════════════════════════════════════════════════════
   CION BPO CV Formatter – Styles
   Dark blue branding: #0F2B5B primary, #1A3F7A accent
   ═══════════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple:      #0F2B5B;
  --purple-dark: #091B3A;
  --purple-light:#1A3F7A;
  --accent-blue: #2A0DA7;
  --grey:        #8A7F94;
  --grey-light:  #f3f5f7;
  --text:        #141E28;
  --white:       #ffffff;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(15,43,91,.12);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--grey-light);
  color: var(--text);
  min-height: 100vh;
}

/* ── Login Screen ── */
.login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-light) 100%);
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow);
}
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.logo-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--purple); color: var(--white);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: .75rem;
}
.login-logo h1 { font-size: 1.5rem; color: var(--purple); margin: 0; }
.login-logo .subtitle { color: var(--grey); font-size: .9rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .85rem; color: var(--purple); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .6rem .75rem;
  border: 1.5px solid #c6d0d8; border-radius: 6px;
  font-size: .9rem; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--purple-light);
}
.hint { font-weight: 400; color: var(--grey); font-size: .8rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.4rem; border: none; border-radius: 6px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .2s, opacity .2s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--purple-light); }
.btn-secondary { background: #e0e8f0; color: var(--purple); }
.btn-secondary:hover { background: #cedbe8; }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-row { display: flex; gap: 1rem; margin-top: 1rem; }
.error-msg { color: #c62828; font-size: .85rem; margin-top: .5rem; }
.status-msg { margin-top: .75rem; font-size: .85rem; color: var(--grey); }
.status-msg.error { color: #c62828; }

/* ── Top Bar ── */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.5rem;
  background: var(--purple); color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.top-bar-left { display: flex; align-items: center; gap: .75rem; }
.logo-circle-sm {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.brand { font-weight: 700; font-size: 1.1rem; }
.brand-sub { font-weight: 400; opacity: .8; font-size: .9rem; }
.top-bar-right { display: flex; align-items: center; gap: 1rem; font-size: .85rem; }
.top-bar-right .btn { background: rgba(255,255,255,.15); color: var(--white); }
.top-bar-right .btn:hover { background: rgba(255,255,255,.25); }

/* ── Main ── */
.main-content {
  max-width: 760px; margin: 2rem auto; padding: 0 1rem;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.step-card h2 { color: var(--purple); margin-bottom: .5rem; }
.step-card > p { color: var(--grey); margin-bottom: 1.5rem; font-size: .9rem; }

/* ── Upload Area ── */
.upload-area {
  border: 2px dashed #b4c0cc; border-radius: var(--radius);
  padding: 2rem; text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.upload-area.dragover { border-color: var(--purple-light); background: #eef3fb; }
.upload-area .upload-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.upload-area .link { color: var(--purple-light); cursor: pointer; text-decoration: underline; }
.upload-area .small { color: var(--grey); font-size: .8rem; margin-top: .25rem; }
.divider {
  display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0;
  color: var(--grey); font-size: .85rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: #c6d0d8;
}

/* ── Employment / Education cards ── */
.entry-card {
  background: var(--grey-light); border-radius: 8px;
  padding: 1rem; margin-bottom: .75rem;
}
.entry-card input,
.entry-card textarea {
  width: 100%; padding: .4rem .6rem; margin-top: .25rem;
  border: 1px solid #c6d0d8; border-radius: 4px;
  font-size: .85rem; font-family: inherit;
}
.entry-card label { font-size: .8rem; font-weight: 600; color: var(--purple); }

/* ── Download ── */
.download-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  text-align: center; padding: 1.5rem; color: var(--grey);
  font-size: .75rem; margin-top: 2rem;
}

/* ── Spinner ── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%; animation: spin .6s linear infinite;
  margin-right: .5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 600px) {
  .main-content { margin: 1rem auto; }
  .step-card { padding: 1.25rem; }
  .download-buttons { flex-direction: column; }
}
