/* =========  Root & utilities  ========= */
:root {
    --primary: #1f4fbf; /* bluish brand colour */
    --primary-dark: #163a94;
    --light-bg: #f4f6fa;
    --text-dark: #1f2937;
    --success: #16a34a;
    --danger: #1E90FF;
    --radius: 0.75rem;
    --transition: 0.25s ease;
    font-size: 16px;
    font-family: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
.contain-b {
    padding: clamp(.87rem,3vw,2rem);
    max-width: 1200px;
    margin-inline: auto;
}
body {
  margin: 0;
  color: var(--text-dark);
  background: var(--light-bg);
}
.dash-heading {
    padding:1.5rem 0;
}
.h-style{
    padding:1rem 0;
}
/* =========  Header / nav  ========= */
header {
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -4px 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform var(--transition);
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

.menu-btn {
  /* burger for ≤768 px */
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  display: none;
}

.signout {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition);
}

.signout:hover {
  background: #e2e8f0;
}

/* =========  Account‑setup card  ========= */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  max-width:800px;
  margin:auto;
}

.progress-bar {
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--success);
  width: 85%; /* hard‑coded demo width */
}

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-bottom: 0.5rem;
}

.checklist span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.925rem;
}

.checklist .done {
  color: var(--success);
}
.checklist .todo {
  color: var(--danger);
}

/* =========  Responsive  ========= */
@media (max-width: 768px) {
  nav {
    position: absolute; /* slide‑down menu */
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--primary);
    padding: 1rem 2rem 2rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-btn {
    display: block;
  }
}
/* =========  Account card & eye button  ========= */
.account-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.account-info .label {
  min-width: 110px;
  font-weight: 500;
}

.masked {
  letter-spacing: 3px;
}
.row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.input{
  padding:1rem 2rem;
  border-radius:10px;
  /* max-width:400px; */
}
.tr-form{
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.btn-container{
  /* max-width:400px; */

}
/* =========  Custom select box  ========= */
.select-box {
  position: relative;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: #fff;
  padding: .55rem .9rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.select-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: .95rem;
  cursor: pointer;
}

.select-box .arrow {
  margin-left: .5rem;
  transition: transform var(--transition);
}

.select-box.open .arrow { transform: rotate(180deg); }

/* options list */
.options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  z-index: 20;
  display: none;
}
.show{
  display:block;
}

.options.show { display: block; }

.options div {
  padding: .55rem .9rem;
  cursor: pointer;
  font-size: .9rem;
}

.options div:hover,
.options div.active { background: #e2e8f0; }

/* manual row */
.hidden { display: none; }

/* =========  Modals  ========= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 50;
}

.modal.show { opacity: 1; visibility: visible; }

.modal-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  width: clamp(300px, 70vw,600px);
  
  text-align: center;
}
li{
  text-align:left;
}
.modal-card h3 {
  margin: 0 0 .6rem;
  color: var(--primary);
}

.close-btn { margin-top: 1.5rem; width: 100%; }

.eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: auto;
  color: var(--primary);
  transition: transform var(--transition);
}

.eye-btn:hover {
  transform: scale(1.1);
}
/* Inputs with left prefix (e.g. $) */
.input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background:#fff;
  overflow:hidden;
  /* max-width:400px; */
  /* width:fit-content; */
}
.input-prefix span {
  padding:.55rem .75rem;
  background:#e2e8f0;
  border-right:1px solid #cbd5e1;
  font-weight:600;
}
.input-prefix input {
  border:none;
  outline:none;
  max-width:400px;
  width:100%
  flex:1;
  padding:.55rem .75rem;
  font-size:.95rem;
}

/* small helper under file input */
.file-name { display:block; margin-top:.25rem; color:#64748b; font-size:.85rem; }
