html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background-color: #ffffff;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================================
   PayrollStream Brand System — v3.0.0
   Brand Colors (from official PS logo):
   Primary Navy:  #1f3a5f  (deep navy — sidebar, headings)
   Accent Teal:   #1fb6a6  (teal — CTAs, success, highlights)
   Text Gray:     #5f6b7a  (body text)
   Light BG:      #f5f7fa  (page backgrounds)
   ============================================ */

:root {
  --ps-primary: #1f3a5f;
  --ps-primary-dark: #162d4a;
  --ps-primary-light: #e8eef5;
  --ps-navy: #1f3a5f;
  --ps-teal: #1fb6a6;
  --ps-teal-dark: #179e90;
  --ps-teal-light: #e6f9f6;
  --ps-green: #16a34a;
  --ps-green-light: #dcfce7;
  --ps-cyan: #0891b2;
  --ps-cyan-light: #cffafe;
  --ps-red: #dc3545;
  --ps-red-light: #fde8ea;
  --ps-amber: #f59e0b;
  --ps-amber-light: #fef3c7;
  --ps-gray-50: #ffffff;
  --ps-gray-100: #f1f5f9;
  --ps-gray-200: #e2e8f0;
  --ps-gray-300: #cbd5e1;
  --ps-gray-400: #94a3b8;
  --ps-gray-500: #5f6b7a;
  --ps-gray-700: #334155;
  --ps-gray-900: #0f172a;
  --ps-light-gray: #f8f9fa;
  --ps-radius: 12px;
  --ps-radius-lg: 16px;
  --ps-radius-sm: 6px;
  --ps-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --ps-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --ps-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --ps-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --ps-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
}

.ps-text-dark { color: var(--ps-navy); }

/* ── Landing Nav ── */
.ps-landing-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95) !important;
  border-bottom: 1px solid var(--ps-gray-200) !important;
  margin-bottom: 0 !important;
}
.ps-landing-nav::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--ps-primary), var(--ps-cyan), var(--ps-primary));
}
.ps-landing-nav .navbar-brand img {
  height: 38px !important;
}

/* ── Buttons ── */
.ps-btn-primary {
  background: var(--ps-primary);
  color: #fff;
  border: 2px solid var(--ps-primary);
  border-radius: var(--ps-radius);
  font-weight: 600;
  transition: all 0.2s;
}
.ps-btn-primary:hover {
  background: var(--ps-primary-dark);
  border-color: var(--ps-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ps-shadow-lg);
}

.ps-btn-outline {
  background: transparent;
  color: var(--ps-navy);
  border: 2px solid var(--ps-gray-300);
  border-radius: var(--ps-radius);
  font-weight: 600;
  transition: all 0.2s;
}
.ps-btn-outline:hover {
  border-color: var(--ps-primary);
  color: var(--ps-primary);
  transform: translateY(-2px);
  box-shadow: var(--ps-shadow);
}

.ps-btn-green {
  background: var(--ps-green);
  color: #fff;
  border: 2px solid var(--ps-green);
  border-radius: var(--ps-radius);
  font-weight: 600;
  transition: all 0.2s;
}
.ps-btn-green:hover {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ps-shadow-lg);
}

.ps-btn-cyan {
  background: var(--ps-cyan);
  color: #fff;
  border: 2px solid var(--ps-cyan);
  border-radius: var(--ps-radius);
  font-weight: 600;
  transition: all 0.2s;
}
.ps-btn-cyan:hover {
  background: #0e7490;
  border-color: #0e7490;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ps-shadow-lg);
}

/* ── Section Backgrounds ── */
.ps-section-white { background: #fff; }
.ps-section-light { background: var(--ps-gray-50); }
.ps-section-dark { background: var(--ps-navy); }

/* ── Section Typography ── */
.ps-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ps-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ps-section-subtitle {
  font-size: 1.1rem;
  color: var(--ps-gray-500);
  max-width: 640px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.ps-hero {
  background: #fff;
  border-bottom: 1px solid var(--ps-gray-200);
  padding: 1.5rem 0 1.25rem;
}

.ps-hero-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* Product badge */
.ps-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2ff;
  color: var(--ps-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  margin-bottom: 1.5rem;
}

.ps-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ps-primary);
  display: inline-block;
  animation: ps-pulse 2s ease-in-out infinite;
}

@keyframes ps-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ps-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ps-navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .ps-hero-title { font-size: 2.8rem; }
}
@media (max-width: 576px) {
  .ps-hero-title { font-size: 2.2rem; }
}

.ps-hero-accent {
  color: var(--ps-primary);
  position: relative;
}

.ps-hero-subtitle {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 540px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.ps-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ps-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.ps-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ps-gray-500);
  font-weight: 500;
}

/* ══════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════ */
.ps-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ps-primary);
  line-height: 1;
}
.ps-stat-label {
  font-size: 0.85rem;
  color: var(--ps-gray-500);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ══════════════════════════════════════
   PROBLEM CARDS
   ══════════════════════════════════════ */
.ps-problem-card {
  background: #fff;
  border: 1px solid var(--ps-gray-200);
  border-radius: var(--ps-radius-lg);
  padding: 2rem;
  height: 100%;
  transition: box-shadow 0.2s;
}
.ps-problem-card:hover {
  box-shadow: var(--ps-shadow-lg);
}
.ps-problem-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════
   SOLUTION CARDS
   ══════════════════════════════════════ */
.ps-solution-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ps-radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all 0.2s;
  color: #fff;
}
.ps-solution-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}
.ps-solution-card .text-muted { color: rgba(255,255,255,0.6) !important; }
.ps-solution-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════
   PORTAL CARDS
   ══════════════════════════════════════ */
.ps-portal-card {
  background: #fff;
  border-radius: var(--ps-radius-lg);
  border: 1px solid var(--ps-gray-200);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  height: 100%;
  overflow: hidden;
}
.ps-portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ps-shadow-xl);
}
.ps-portal-partner:hover { border-color: var(--ps-primary); }
.ps-portal-employer:hover { border-color: var(--ps-green); }
.ps-portal-employee:hover { border-color: var(--ps-cyan); }

.ps-portal-header {
  padding: 1rem 1.5rem 0.75rem;
  text-align: center;
}
.ps-portal-header-partner { background: linear-gradient(135deg, var(--ps-primary-light), #eff6ff); }
.ps-portal-header-employer { background: linear-gradient(135deg, var(--ps-green-light), #f0fdf4); }
.ps-portal-header-employee { background: linear-gradient(135deg, var(--ps-cyan-light), #ecfeff); }

.ps-portal-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ps-gray-500);
}

/* ══════════════════════════════════════
   FEATURE LIST  (used in many sections)
   ══════════════════════════════════════ */
.ps-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ps-feature-list li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--ps-gray-700);
  position: relative;
  padding-left: 1.5rem;
}
.ps-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ps-green);
  font-weight: 700;
}

/* ══════════════════════════════════════
   COMPARE TABLE
   ══════════════════════════════════════ */
.ps-compare-table {
  border-radius: var(--ps-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ps-gray-200);
}
.ps-compare-table th {
  background: var(--ps-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
  border: none;
}
.ps-compare-table th.ps-compare-feature {
  text-align: left;
  min-width: 220px;
}
.ps-compare-table th.ps-compare-ps {
  background: var(--ps-primary);
}
.ps-compare-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  vertical-align: middle;
  border-color: var(--ps-gray-100);
}
.ps-compare-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.ps-compare-table td.ps-compare-ps {
  background: var(--ps-primary-light);
  font-weight: 600;
}
.ps-compare-table tbody tr:hover {
  background: var(--ps-gray-50);
}

/* ══════════════════════════════════════
   INTEGRATIONS
   ══════════════════════════════════════ */
.ps-integration-logo {
  padding: 1.5rem 0.5rem;
}
.ps-integration-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background: var(--ps-gray-100);
  border: 1px solid var(--ps-gray-200);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ps-gray-700);
  transition: all 0.2s;
}
.ps-integration-logo:hover .ps-integration-icon {
  background: var(--ps-primary-light);
  border-color: var(--ps-primary);
  color: var(--ps-primary);
  transform: translateY(-4px);
  box-shadow: var(--ps-shadow);
}

/* ══════════════════════════════════════
   PARTNER TIERS
   ══════════════════════════════════════ */
.ps-tier-card {
  background: #fff;
  border: 1px solid var(--ps-gray-200);
  border-radius: var(--ps-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  position: relative;
  transition: all 0.2s;
}
.ps-tier-card:hover {
  box-shadow: var(--ps-shadow-lg);
  transform: translateY(-4px);
}
.ps-tier-popular {
  border: 2px solid var(--ps-primary);
}
.ps-tier-popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ps-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.ps-tier-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.ps-tier-clients {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ps-navy);
}
.ps-tier-card .ps-feature-list { text-align: left; }

/* ══════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════ */
.ps-product-card {
  background: var(--ps-gray-50);
  border: 1px solid var(--ps-gray-200);
  border-radius: var(--ps-radius);
  padding: 1.5rem;
  height: 100%;
  transition: all 0.2s;
}
.ps-product-card:hover {
  background: #fff;
  box-shadow: var(--ps-shadow);
  border-color: var(--ps-primary);
}
.ps-link-arrow {
  color: var(--ps-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.ps-link-arrow:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════
   SECURITY SECTION
   ══════════════════════════════════════ */
.ps-security-badge {
  background: #fff;
  border: 1px solid var(--ps-gray-200);
  border-radius: var(--ps-radius);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}
.ps-security-visual {
  padding: 3rem;
}
.ps-security-shield {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--ps-primary-light), #fff);
  border: 3px solid var(--ps-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ps-security-ring {
  width: 160px;
  height: 160px;
  border: 2px dashed var(--ps-gray-300);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  animation: ps-spin 20s linear infinite;
}
@keyframes ps-spin {
  from { transform: translate(-50%, -70%) rotate(0deg); }
  to { transform: translate(-50%, -70%) rotate(360deg); }
}
.ps-security-label {
  display: inline-block;
  background: var(--ps-gray-100);
  border: 1px solid var(--ps-gray-200);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ps-gray-700);
  margin: 0.25rem;
}

/* ══════════════════════════════════════
   PRICING
   ══════════════════════════════════════ */
.ps-pricing-card {
  background: #fff;
  border: 1px solid var(--ps-gray-200);
  border-radius: var(--ps-radius-lg);
  padding: 2rem;
  text-align: center;
  height: 100%;
  position: relative;
  transition: all 0.2s;
}
.ps-pricing-card:hover {
  box-shadow: var(--ps-shadow-lg);
  transform: translateY(-4px);
}
.ps-pricing-featured {
  border: 2px solid var(--ps-primary);
  box-shadow: var(--ps-shadow-lg);
}
.ps-pricing-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ps-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.ps-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ps-navy);
  margin: 0.5rem 0;
}
.ps-pricing-card .ps-feature-list { text-align: left; }

/* ══════════════════════════════════════
   RESOURCE CARDS
   ══════════════════════════════════════ */
.ps-resource-card {
  text-align: center;
  padding: 2rem 1rem;
}
.ps-resource-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════ */
.ps-section-cta {
  background: linear-gradient(135deg, var(--ps-navy) 0%, #1e3a5f 100%);
}
.ps-demo-form {
  background: #fff;
  border-radius: var(--ps-radius-lg);
  padding: 2rem;
  box-shadow: var(--ps-shadow-xl);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.ps-footer {
  background: var(--ps-gray-900);
  color: var(--ps-gray-300);
}
.ps-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ps-footer-links li {
  margin-bottom: 0.5rem;
}
.ps-footer-links a {
  color: var(--ps-gray-500);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.ps-footer-links a:hover {
  color: #fff;
}
.ps-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ps-social-link {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ps-gray-300);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.ps-social-link:hover {
  background: var(--ps-primary);
  color: #fff;
}

/* ── Smooth scrolling for anchor links ── */
html { scroll-behavior: smooth; }

/* ══════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════ */
.ps-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--ps-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: var(--ps-shadow-lg);
  transition: all 0.3s ease;
  font-size: 1.25rem;
  line-height: 1;
}
.ps-scroll-top:hover {
  background: var(--ps-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--ps-shadow-xl);
}
.ps-scroll-top.visible {
  display: flex;
}

/* ══════════════════════════════════════
   TRUSTED BY / ADMIN LINK
   ══════════════════════════════════════ */
.ps-trusted-label {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ps-gray-500);
  margin-bottom: 1.25rem;
}
.ps-admin-footer-link {
  color: var(--ps-primary) !important;
  font-weight: 600;
}
.ps-admin-footer-link:hover {
  color: #fff !important;
}
.ps-admin-btn {
  display: inline-flex;
  align-items: center;
  color: var(--ps-gray-500);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
}
.ps-admin-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════ */
.ps-login-page {
  background: var(--ps-gray-50, #f8fafc);
  min-height: calc(100vh - 60px);
}
.ps-login-portal-card {
  background: #fff;
  border: 1px solid var(--ps-gray-200, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ps-login-portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

/* ── Legacy footer (for authenticated pages) ── */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* ══════════════════════════════════════
   SIDEBAR LAYOUT (from Payroll.UI.Shared)
   ══════════════════════════════════════ */
.ps-layout-wrapper {
  display: flex;
  min-height: calc(100vh - 60px);
}

.ps-sidebar {
  width: 260px;
  background: var(--ps-primary, #1f3a5f);
  color: #c8d8e8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.ps-main-content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  padding: 24px 32px;
  background: var(--ps-gray-50, #f8fafc);
}

/* Sidebar Organization Block */
.ps-sidebar-org-block {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ps-sidebar-org-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
}
.ps-sidebar-org-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ps-sidebar-org-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-sidebar-org-company {
  font-size: 11px;
  color: #8899aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Navigation */
.ps-sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.ps-sidebar-section {
  margin-bottom: 8px;
}
.ps-sidebar-section-header {
  padding: 8px 20px 4px;
}
.ps-sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6b7c8d;
}
.ps-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ps-sidebar-link-item {
  margin: 1px 8px;
}
.ps-sidebar-link-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.ps-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #c8d8e8;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.ps-sidebar-link:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  text-decoration: none;
}
.ps-sidebar-link-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.ps-sidebar-link-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Badges */
.ps-sidebar-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 9999px;
  font-weight: 600;
  line-height: 1;
}
.ps-sidebar-badge.soon {
  background: rgba(255,183,77,0.2);
  color: #ffb74d;
}
.ps-sidebar-badge.new {
  background: rgba(31,182,166,0.2);
  color: var(--ps-teal, #1fb6a6);
}
.ps-sidebar-badge.count {
  background: rgba(66,133,244,0.2);
  color: #4285f4;
}
.ps-sidebar-badge.alert {
  background: rgba(244,67,54,0.2);
  color: #f44336;
}

/* Sidebar Sub-links */
.ps-sidebar-sublinks {
  list-style: none;
  margin: 0;
  padding: 0 0 0 42px;
}
.ps-sidebar-sublink {
  display: block;
  padding: 4px 8px;
  font-size: 12px;
  color: #8899aa;
  text-decoration: none;
  border-radius: 4px;
}
.ps-sidebar-sublink:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.05);
}

/* Sidebar User Block */
.ps-sidebar-user-block {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.ps-sidebar-user-avatar {
  flex-shrink: 0;
}
.ps-sidebar-avatar-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.ps-sidebar-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.ps-sidebar-user-info {
  flex: 1;
  overflow: hidden;
}
.ps-sidebar-user-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-sidebar-user-role {
  display: block;
  font-size: 11px;
  color: #8899aa;
}
.ps-sidebar-logout {
  color: #8899aa;
  text-decoration: none;
  font-size: 18px;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.ps-sidebar-logout:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

/* Responsive: collapse sidebar on mobile */
@media (max-width: 991.98px) {
  .ps-layout-wrapper {
    flex-direction: column;
  }
  .ps-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .ps-sidebar-org-block,
  .ps-sidebar-user-block {
    display: none;
  }
  .ps-sidebar-nav {
    display: flex;
    padding: 0 8px;
  }
  .ps-sidebar-section {
    display: flex;
    align-items: center;
    margin-bottom: 0;
  }
  .ps-sidebar-section-header {
    display: none;
  }
  .ps-sidebar-links {
    display: flex;
    gap: 2px;
  }
  .ps-sidebar-link-item {
    margin: 4px 0;
  }
  .ps-sidebar-link {
    white-space: nowrap;
    padding: 6px 10px;
  }
  .ps-main-content {
    padding: 16px;
  }
}

/* Theme variants */
.ps-theme-partner { background: var(--ps-primary, #1f3a5f); }
.ps-theme-employer { background: #1a4731; }
.ps-theme-employee { background: #2d1b69; }