/* Investor Portal – Layout & components */

/* Layout */
.portal-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-header {
  background: #ffffff;
  color: #1e293b;
  padding: 0.85rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e5e7eb;
}

.portal-header .navbar-brand {
  font-family: var(--portal-font-head);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  color: #1e293b !important;
}

.portal-header .portal-nav-logo {
  max-height: 40px;
  width: auto;
  vertical-align: middle;
}

.portal-header .nav-link {
  color: #374151 !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--portal-radius-sm);
}

.portal-header .nav-link:hover {
  color: #0f4c81 !important;
  background: #f1f5f9;
}

.portal-main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.portal-footer {
  background: var(--portal-card-bg);
  border-top: 1px solid var(--portal-border);
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--portal-text-muted);
}

/* Auth pages (login / verify) */
.portal-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: 1.5rem;
}

.portal-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow-lg);
  background: var(--portal-card-bg);
  border: 1px solid var(--portal-border);
}

.portal-auth-card .form-control {
  border-radius: var(--portal-radius-sm);
  border: 1px solid var(--portal-border);
  padding: 0.65rem 1rem;
}

.portal-auth-card .form-control:focus {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.portal-auth-title {
  font-family: var(--portal-font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--portal-text);
  margin-bottom: 0.5rem;
}

.portal-auth-sub {
  color: var(--portal-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.portal-otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.portal-otp-inputs input {
  width: 3.25rem;
  min-width: 3.25rem;
  height: 3rem;
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  border-radius: var(--portal-radius-sm);
  border: 1px solid var(--portal-border);
  box-sizing: border-box;
}

.portal-otp-inputs input.form-control {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.portal-otp-inputs input:focus {
  border-color: var(--portal-primary);
  outline: none;
}

/* Profile / Dashboard */
.portal-profile-hero {
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
  color: #fff;
  border-radius: var(--portal-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--portal-shadow);
}

.portal-profile-hero h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #fff;
}

.portal-profile-hero .text-muted {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem;
}

.portal-stat-card {
  background: var(--portal-card-bg);
  border-radius: var(--portal-radius);
  padding: 1.25rem;
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  height: 100%;
}

.portal-stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--portal-primary);
  font-family: var(--portal-font-head);
}

.portal-stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--portal-text-muted);
  margin-top: 0.25rem;
}

.portal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--portal-radius);
  border: 1px solid var(--portal-border);
  background: var(--portal-card-bg);
  box-shadow: var(--portal-shadow);
}

.portal-table-wrap .table {
  margin-bottom: 0;
}

.portal-table-wrap .table thead th {
  background: var(--portal-bg);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--portal-text-muted);
  border-bottom: 1px solid var(--portal-border);
  padding: 0.85rem 1rem;
}

.portal-table-wrap .table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.portal-table-wrap .table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--portal-border);
}

/* Responsive */
@media (max-width: 768px) {
  .portal-main {
    padding: 1.25rem 0 2rem;
  }
  .portal-auth-card {
    padding: 1.5rem;
  }
  .portal-stat-card .stat-value {
    font-size: 1.25rem;
  }
  .portal-table-wrap .table thead th,
  .portal-table-wrap .table tbody td {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .portal-otp-inputs input {
    width: 2.85rem;
    min-width: 2.85rem;
    height: 2.75rem;
    padding: 0.4rem 0.2rem;
    font-size: 1.2rem;
  }
}
