/* ============================================================
   SDS Solutions IT Employee Portal
   portal.css — Extended components (loaded after components.css)
   ============================================================ */

/* ══════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
  padding: 24px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 44px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-logo {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-brand);
}

.login-title {
  font-family: 'Syne', sans-serif;
  font-size: var(--font-2xl);
  font-weight: 800;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: var(--font-base);
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 20px;
  color: var(--text);
  font-size: var(--font-base);
  font-weight: 500;
  text-decoration: none;
  transition: box-shadow var(--t-base), border-color var(--t-base);
  box-shadow: var(--shadow-xs);
}

.google-btn:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  text-decoration: none;
  color: var(--text);
}

.login-domain-note {
  font-size: var(--font-xs);
  color: var(--text-light);
  margin-top: 20px;
}

.login-domain-note code {
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: var(--r-xs);
}

/* ══════════════════════════════════════
   SIDEBAR — MAIN MENU ITEMS
══════════════════════════════════════ */
.user-card {
  margin: 12px 14px 0;
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-img {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.user-avatar-initials {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}

.user-info {
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: var(--font-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signout-link {
  flex-shrink: 0;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
}

.signout-link:hover { color: var(--danger); }

/* Main nav item (4 top-level menu buttons) */
.nav-main-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
  margin-bottom: 2px;
}

.nav-main-item:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.nav-main-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
}

.nav-main-item--admin { color: var(--brand); }
.nav-main-item--admin:hover { background: var(--brand-soft); }

/* Nav icon variants */
.nav-main-icon {
  width: 26px; height: 26px;
  border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-main-icon--brand { background: var(--brand); color: #fff; }
.nav-main-icon--blue  { background: var(--brand-soft); color: var(--brand); }
.nav-main-icon--warn  { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-border); }
.nav-main-icon--soft  { background: var(--brand-soft); color: var(--brand); }

.nav-main-item.active .nav-main-icon--blue,
.nav-main-item.active .nav-main-icon--soft {
  background: var(--brand);
  color: #fff;
}

/* Progress/done chips in nav */
.nav-progress-chip {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

.nav-done-chip {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--r-full);
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* ══════════════════════════════════════
   WELCOME / PORTAL HERO
══════════════════════════════════════ */
.portal-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.portal-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(26,86,232,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.portal-hero-greeting {
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.portal-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: var(--font-4xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.portal-hero-body {
  font-size: var(--font-md);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: var(--font-sm);
  font-weight: 600;
  margin-top: 20px;
}

.portal-chip--progress {
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand);
}

.portal-chip--done {
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: var(--success);
}

/* ══════════════════════════════════════
   SECTION LIST (Welcome page)
══════════════════════════════════════ */
.portal-section-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-section-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: var(--text);
  user-select: none;
}

.portal-section-row:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}

.portal-section-row-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.portal-section-row-body { flex: 1; min-width: 0; }

.portal-section-row-title {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.portal-section-row-desc {
  font-size: var(--font-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 5px;
}

.portal-section-row-meta {
  font-size: var(--font-xs);
  color: var(--brand);
  font-weight: 600;
}

.portal-section-row-meta--done { color: var(--success); }

.portal-section-row-arrow {
  flex-shrink: 0;
  color: var(--text-light);
  align-self: center;
  transition: color var(--t-fast), transform var(--t-fast);
}

.portal-section-row:hover .portal-section-row-arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* ══════════════════════════════════════
   CONFIRM + UNDO FLOW
══════════════════════════════════════ */
.confirm-box {
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-top: 0;
  animation: pageEnter 0.15s ease forwards;
}

.confirm-text {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--warn-text);
  margin-bottom: 4px;
}

.confirm-sub {
  font-size: var(--font-sm);
  color: var(--warn-text);
  margin-bottom: 12px;
  line-height: 1.4;
  opacity: .8;
}

.confirm-btns {
  display: flex;
  gap: 8px;
}

.btn-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast);
}

.btn-yes:hover { background: var(--brand-dark); }
.btn-yes:disabled { opacity: .6; cursor: default; }

.btn-cancel {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background var(--t-fast);
}

.btn-cancel:hover { background: var(--surface-alt); }

.undo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  margin-top: 6px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.undo-btn:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger-border);
}

/* ══════════════════════════════════════
   OFFBOARDING COMPONENTS
══════════════════════════════════════ */
.ob-warning {
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  color: var(--warn);
}

.ob-warning svg   { flex-shrink: 0; margin-top: 1px; }
.ob-warning strong { color: var(--warn-text); font-size: var(--font-base); display: block; margin-bottom: 3px; }
.ob-warning p      { font-size: var(--font-sm); color: var(--warn-text); margin: 0; line-height: 1.5; }

.check-list { display: flex; flex-direction: column; gap: 8px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.check-item:hover { background: var(--surface); border-color: var(--brand-border); }

.check-input {
  margin-top: 2px;
  accent-color: var(--brand);
  width: 15px; height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.check-label { font-size: var(--font-base); color: var(--text); line-height: 1.45; }
.check-label strong { display: block; font-weight: 600; margin-bottom: 1px; }
.check-label span   { color: var(--text-muted); font-size: var(--font-sm); }

.check-item.checked .check-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

.ob-completion {
  background: linear-gradient(135deg, var(--success-soft), #dcfce7);
  border: 1px solid var(--success-border);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  margin-top: 24px;
  animation: pageEnter 0.4s ease forwards;
}

.ob-completion-icon  { font-size: 36px; margin-bottom: 10px; }
.ob-completion-title { font-family: 'Syne', sans-serif; font-size: var(--font-xl); font-weight: 800; color: var(--success-text); margin-bottom: 6px; }
.ob-completion-body  { font-size: var(--font-base); color: var(--success-text); line-height: 1.65; max-width: 460px; margin: 0 auto; }

/* ══════════════════════════════════════
   INSTALLERS DOWNLOAD CARDS
══════════════════════════════════════ */
.dl-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.dl-section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.dl-section-card:hover { border-color: var(--brand-border); box-shadow: var(--shadow-md); }

.dsc-top    { display: flex; align-items: center; gap: 10px; }
.dsc-icon   { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-alt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.dsc-title  { font-size: var(--font-base); font-weight: 600; color: var(--text); }
.dsc-subtitle { font-size: var(--font-xs); color: var(--text-muted); }
.dsc-desc   { font-size: var(--font-sm); color: var(--text-muted); line-height: 1.5; }
.dsc-notice { font-size: var(--font-xs); color: var(--warn-text); background: var(--warn-soft); border: 1px solid var(--warn-border); border-radius: var(--r-xs); padding: 6px 8px; line-height: 1.4; }

.vpn-history-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-alt); border-radius: var(--r-sm); font-size: var(--font-base); }
.vpn-history-row .label { flex: 1; font-weight: 500; }

/* ══════════════════════════════════════
   PAGE SECTION TRANSITIONS
══════════════════════════════════════ */
.page-section { display: none; }
.page-section.active { display: block; animation: pageEnter 0.22s ease forwards; }
.page-section[hidden] { display: none !important; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 860px) {
  .dl-section-grid    { grid-template-columns: 1fr; }
  .portal-hero        { padding: 28px; }
  .portal-hero-title  { font-size: var(--font-2xl); }
  .login-card         { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .portal-hero        { padding: 22px; }
  .portal-hero-title  { font-size: var(--font-xl); }
  .login-card         { padding: 28px 20px; }
  .confirm-btns       { flex-direction: column; }
}
