/* ==========================================================================
   VYAPTAX CLIENT VIEW PORTAL (app.vyaptax.com) - Core Design System
   Matches vyaptax.com brand identity: Navy (#0A1628), Gold (#D97706), Teal (#0D9488)
   ========================================================================== */

:root {
  --navy: #0A1628;
  --navy-mid: #132238;
  --navy-light: #1E293B;
  --navy-lighter: #334155;
  --gold: #D97706;
  --gold-light: #F59E0B;
  --gold-dark: #B45309;
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-dark: #0F766E;
  --teal-soft: #F0FDFA;
  
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  
  --text-primary: #0A1628;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--teal-dark);
}

/* ==========================================================================
   PORTAL LAYOUT (Sidebar + Main Content)
   ========================================================================== */

.portal-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.portal-sidebar {
  width: 270px;
  background: #FFFFFF;
  color: var(--text-primary);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border-subtle);
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark-vt {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #F59E0B, #D97706 45%, #0D9488 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name-main {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--navy);
  line-height: 1.1;
}

.brand-name-sub {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  margin-top: 2px;
}

.sidebar-nav {
  padding: 20px 14px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 10px 14px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  transition: all 0.15s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--navy);
  background: #F8FAFC;
}

.nav-item.active {
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-color: #CCFBF1;
  font-weight: 600;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-item:hover .nav-icon {
  color: var(--navy);
}

.nav-item.active .nav-icon {
  color: var(--teal);
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #FEF3C7;
  color: var(--gold-dark);
  border: 1px solid #FDE68A;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* Relationship Manager Card inside Sidebar */
.rm-card {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.rm-card-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rm-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rm-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.rm-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.rm-role {
  font-size: 11px;
  color: var(--text-muted);
}

.rm-contact-btn {
  display: block;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--teal-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rm-contact-btn:hover {
  background: var(--teal);
  color: #FFFFFF;
  border-color: var(--teal);
}

/* ==========================================================================
   MAIN CONTENT & TOPBAR
   ========================================================================== */

.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-page);
}

.portal-topbar {
  background: #FFFFFF;
  height: 70px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.client-status-pill {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #15803D;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  display: inline-block;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-pill {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E2E8F0;
}

.user-profile-meta {
  display: flex;
  flex-direction: column;
}

.user-profile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-profile-role {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-signout {
  padding: 7px 12px;
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: #DC2626;
  text-decoration: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-signout:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

/* ==========================================================================
   CONTENT CONTAINER & CARDS
   ========================================================================== */

.content-container {
  padding: 32px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* KPI Metric Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
}

.kpi-card.gold::before {
  background: var(--gold);
}

.kpi-card.navy::before {
  background: var(--navy);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon-wrap.gold {
  background: #FEF3C7;
  color: var(--gold-dark);
}

.kpi-icon-wrap.navy {
  background: #F1F5F9;
  color: var(--navy);
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.kpi-subtext {
  font-size: 12px;
  color: var(--text-light);
}

/* Card Surface */
.panel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.status-badge.in-progress {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.status-badge.awaiting-documents {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.status-badge.completed {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.status-badge.draft {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.status-badge.filed {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.status-badge.on-hold {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* Stepper / Timeline */
.timeline-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 20px 10px;
  margin-bottom: 30px;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: #E2E8F0;
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 3px solid #CBD5E1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 10px;
  transition: all 0.2s ease;
}

.step-node.completed .step-circle {
  background: var(--teal);
  border-color: var(--teal);
  color: #FFFFFF;
}

.step-node.active .step-circle {
  background: #FFFFFF;
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.step-node.completed .step-label,
.step-node.active .step-label {
  color: var(--navy);
  font-weight: 700;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: #F8FAFC;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: #F8FAFC;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: #FFFFFF;
}

.btn-outline {
  background: #FFFFFF;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: #F8FAFC;
  border-color: var(--navy);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #FFFFFF;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Floating Alerts */
.toast-banner {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-banner.success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.toast-banner.danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.toast-banner.warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.toast-banner.info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .portal-sidebar {
    position: fixed;
    transform: translateX(-100%);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.18);
  }
  .portal-sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-container {
    padding: 20px 16px;
  }
  .portal-topbar {
    padding: 0 16px;
  }
}

/* ==========================================================================
   Entity Profile Info Tiles, Document Lists, and Modal Components
   ========================================================================== */

.entity-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .entity-info-grid {
    grid-template-columns: 1fr;
  }
}

.entity-info-tile {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all var(--transition-fast);
}

.entity-info-tile:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.entity-info-tile.full-width {
  grid-column: 1 / -1;
}

.entity-info-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.entity-info-label svg {
  color: var(--teal);
  flex-shrink: 0;
}

.entity-info-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  word-break: break-word;
}

.entity-info-value .empty-val {
  color: #94A3B8;
  font-style: italic;
  font-weight: 400;
  font-size: 12.5px;
}

/* Document Item Rows */
.doc-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  gap: 12px;
}

.doc-item-row:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.doc-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.doc-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon-badge.uploaded {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.doc-icon-badge.pending {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.doc-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.doc-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-status-text {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.doc-status-text.uploaded {
  color: #059669;
}

.doc-status-text.pending {
  color: #B45309;
}

.doc-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-upload-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #0D9488;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-upload-action:hover {
  background: #0F766E;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.btn-reupload-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reupload-action:hover {
  color: var(--navy);
  border-color: var(--teal);
  background: #F8FAFC;
}

/* Portal Modals */
.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.portal-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.portal-modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: translateY(12px);
  transition: transform 0.2s ease-in-out;
  overflow: hidden;
}

.portal-modal-backdrop.active .portal-modal-dialog {
  transform: translateY(0);
}

.portal-modal-dialog.modal-sm {
  max-width: 480px;
}

.portal-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}

.portal-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

.portal-modal-title svg {
  color: var(--teal);
}

.portal-modal-close {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #94A3B8;
  transition: all var(--transition-fast);
}

.portal-modal-close:hover {
  color: var(--navy);
  background: #F1F5F9;
}

.portal-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #F8FAFC;
}

/* Modal Form Components */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group-modal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label-modal {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control-modal {
  padding: 9px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--navy);
  background: #FFFFFF;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.form-control-modal:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* Dropzone Upload Component */
.dropzone-box {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dropzone-box:hover,
.dropzone-box.dragover {
  border-color: var(--teal);
  background: #F0FDFA;
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #E6FFFA;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.dropzone-subtext {
  font-size: 11.5px;
  color: var(--text-muted);
}

.selected-file-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #1E40AF;
  width: 100%;
  box-sizing: border-box;
}

