/* GetWarmNowVT Portal Stylesheet */

body.portal-body {
  background-color: #F8FAFC;
}

/* Badges */
.portal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-status-draft { background: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }
.badge-status-submitted { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.badge-status-under_review { background: #FFF7ED; color: #C2410C; border: 1px solid #FFEDD5; }
.badge-status-approved { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.badge-status-declined { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.badge-program-ecwsp { background: #FFF7ED; color: #FF6B35; }
.badge-program-msgp { background: #EFF6FF; color: #1E40AF; }

/* Subbar */
.portal-subbar {
  background: #0B1C30;
  color: white;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.portal-subbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-subbar-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9CA3AF;
}
.portal-subbar-btn {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.portal-subbar-admin-link {
  background: rgba(255,107,53,0.15);
  border: 1px solid #FF6B35;
  color: #FF6B35;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.portal-subbar-signout {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #E5E7EB;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Layout Containers & Cards */
.portal-main {
  padding: 40px 20px;
  min-height: 70vh;
}
.portal-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.portal-card-lg {
  padding: 36px;
}
.portal-auth-card {
  max-width: 480px;
  margin: 40px auto;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
}
.portal-onboarding-card {
  max-width: 780px;
  margin: 24px auto;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Alerts & Notices */
.portal-alert-warning {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.portal-alert-info {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
}

/* Grids & Flex Utilities */
.portal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.portal-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.portal-grid-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .portal-grid-2,
  .portal-grid-detail {
    grid-template-columns: 1fr;
  }
}
.portal-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.portal-flex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

/* Buttons */
.portal-btn-block {
  width: 100%;
  justify-content: center;
  padding: 12px;
  margin-top: 8px;
}

/* Tabs */
.portal-tabs {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 24px;
}
.portal-tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.portal-tab-btn.active {
  border-bottom-color: #FF6B35;
  font-weight: 700;
  color: #0B1C30;
}

/* Forms */
.form-help-card {
  background: #F8FAFC;
  border-left: 4px solid #3B82F6;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #FFFFFF;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #374151;
  cursor: pointer;
  margin-bottom: 10px;
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #FF6B35;
  cursor: pointer;
}

/* Dropdown */
.org-dropdown {
  position: relative;
  display: inline-block;
}
.org-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 260px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  z-index: 100;
  margin-top: 8px;
  padding: 6px 0;
}
.org-dropdown-content.show {
  display: block;
}
.org-dropdown-item {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1F2937;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}
.org-dropdown-item:hover {
  background: #F3F4F6;
}
.org-dropdown-item.active {
  font-weight: 700;
  color: #FF6B35;
  background: #FFF7ED;
}

/* Wizard / Multi-Step Editor */
.wizard-progress-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.wizard-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.wizard-progress-track {
  width: 100%;
  height: 8px;
  background: #F3F4F6;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B35 0%, #FFA07A 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}
.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wizard-step-btn {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.wizard-step-btn:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}
.wizard-step-btn.active {
  background: #0B1C30;
  border-color: #0B1C30;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(11, 28, 48, 0.2);
}
.wizard-step-btn.completed {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}
.wizard-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.wizard-step-btn.active .wizard-step-num {
  background: #FF6B35;
  color: white;
}
.wizard-step-btn.completed .wizard-step-num {
  background: #10B981;
  color: white;
}

.portal-editor-bar {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-sidebar-sticky {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  position: sticky;
  top: 20px;
}

/* Messages */
.message-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  max-width: 80%;
  font-size: 0.92rem;
  line-height: 1.5;
}
.message-applicant {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  margin-left: auto;
  color: #1E3A8A;
}
.message-provider {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  margin-right: auto;
  color: #9A3412;
}

.portal-table-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.portal-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Typography & Headings */
.portal-header-center {
  text-align: center;
  margin-bottom: 24px;
}
.portal-header-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0B1C30;
  margin: 4px 0 8px 0;
}
.portal-header-subtitle {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Secondary & Ghost Buttons */
.portal-btn-secondary {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #D1D5DB;
  font-weight: 700;
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.portal-btn-secondary:hover {
  background: #E5E7EB;
}
.portal-back-btn {
  background: #F3F4F6;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.portal-back-btn:hover {
  background: #E5E7EB;
}
.portal-link-back {
  background: none;
  border: none;
  color: #FF6B35;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-family: inherit;
}
.portal-link-back:hover {
  text-decoration: underline;
}

/* OTP & Input Helpers */
.portal-otp-row {
  display: flex;
  gap: 8px;
}
.portal-otp-input {
  letter-spacing: 4px;
  font-weight: bold;
}
.portal-text-muted {
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 4px;
}

/* Directory & Overflow Containers */
.portal-directory-box {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 8px;
  background: #F9FAFB;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Program Card */
.portal-program-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.portal-program-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0B1C30;
  margin: 0 0 8px 0;
}
.portal-program-card p {
  color: #4B5563;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Detail Views */
.portal-detail-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #F8FAFC;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 28px;
  font-size: 0.9rem;
}

/* Subbar elements */
.portal-subbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.portal-subbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.portal-subbar-user {
  font-size: 0.88rem;
  color: #E5E7EB;
}
.org-dropdown-footer {
  border-top: 1px solid #E5E7EB;
  padding: 8px 12px 4px;
}
.org-dropdown-add-btn {
  background: none;
  border: none;
  color: #FF6B35;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  font-family: inherit;
}
.org-dropdown-add-btn:hover {
  text-decoration: underline;
}

/* Auth View Components */
.portal-badge-spacing {
  margin-bottom: 8px;
}
.form-label-row {
  display: flex;
  justify-content: space-between;
}
.portal-link-otp {
  font-size: 0.8rem;
  color: #FF6B35;
  text-decoration: underline;
}
.portal-btn-otp {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 8px 12px;
}
.portal-auth-alert {
  margin-top: 16px;
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 8px;
}

/* Onboarding View Components */
.portal-pending-card {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.portal-pending-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 6px;
}
.portal-pending-list {
  font-size: 0.9rem;
  color: #78350F;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portal-search-group {
  margin-bottom: 16px;
}
.portal-directory-loading {
  text-align: center;
  color: #9CA3AF;
  padding: 30px;
}
.portal-directory-note {
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 10px;
  text-align: center;
}
.portal-btn-create-org {
  margin-top: 12px;
}

/* Dashboard View Components */
.dash-pending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-pending-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #92400E;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-pending-badge {
  background: #FEF3C7;
  color: #92400E;
}
.dash-pending-subtitle {
  font-size: 0.8rem;
  color: #78350F;
}
.dash-pending-text {
  font-size: 0.88rem;
  color: #78350F;
  margin: 0 0 16px 0;
}
.dash-pending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portal-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0B1C30;
  margin: 0 0 6px 0;
}
.portal-page-desc {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}
.portal-btn-new-app {
  padding: 12px 24px;
}
.portal-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.portal-card-due {
  font-size: 0.8rem;
  color: #6B7280;
}
.portal-table-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0B1C30;
  margin: 0;
}
.portal-table-count {
  font-size: 0.85rem;
  color: #6B7280;
}
.portal-table-loading {
  padding: 40px;
  text-align: center;
  color: #6B7280;
}

/* Editor View Components */
.portal-editor-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.portal-editor-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.portal-editor-app-id {
  font-size: 0.8rem;
  color: #9CA3AF;
  margin-left: 8px;
}
.portal-btn-copy-link {
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: #4B5563;
  cursor: pointer;
  margin-left: 8px;
}
.portal-save-status {
  font-size: 0.85rem;
  color: #6B7280;
}
.wizard-counter {
  color: #0B1C30;
  font-size: 1.05rem;
  font-weight: 700;
}
.wizard-title {
  color: #374151;
  font-weight: 600;
  margin-left: 6px;
}
.wizard-percent {
  font-weight: 800;
  color: #FF6B35;
  font-size: 0.92rem;
}
.portal-step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}
.portal-btn-step-prev {
  padding: 10px 20px;
}
.portal-btn-step-next {
  padding: 10px 24px;
}

/* Detail View Components */
.portal-back-row {
  margin-bottom: 24px;
}
.portal-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.portal-detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0B1C30;
  margin: 4px 0 6px 0;
}
.portal-detail-org {
  color: #6B7280;
  font-size: 0.95rem;
  margin: 0;
}
.portal-btn-print {
  font-size: 0.85rem;
  padding: 8px 14px;
}
.portal-sidebar-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0B1C30;
  margin: 0 0 6px 0;
}
.portal-sidebar-desc {
  color: #6B7280;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.portal-messages-box {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 6px;
}
.portal-messages-loading {
  text-align: center;
  color: #9CA3AF;
  font-size: 0.85rem;
  padding: 20px;
}
.portal-message-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portal-card-spacing {
  margin-bottom: 24px;
}
.portal-btn-send-msg {
  justify-content: center;
  padding: 10px;
}
