/* Classic theme — previous top-nav Portal look */

.theme-classic {
  --pc-primary: #4680ff;
  --pc-primary-dark: #3b6bdb;
  --pc-primary-mid: #5b91ff;
  --pc-primary-light: #edf3ff;
  --pc-success: #2ca87f;
  --pc-success-light: #e8f7f1;
  --pc-success-border: #b7e4d2;
  --pc-danger: #dc2626;
  --pc-danger-light: #fef2f2;
  --pc-danger-border: #fecaca;
  --pc-body-bg: #f4f7fa;
  --pc-surface: #ffffff;
  --pc-text: #1d2630;
  --pc-text-muted: #5b6b79;
  --pc-border: #e8edf3;
  --pc-radius: 12px;
  --pc-shadow: 0 1px 3px rgba(29, 38, 48, .08), 0 8px 24px rgba(29, 38, 48, .04);
}

.theme-classic .app-container {
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
}

.theme-classic .app-navbar {
  background: var(--pc-surface) !important;
  border-bottom: 1px solid var(--pc-border);
  box-shadow: var(--pc-shadow);
  padding-block: .65rem;
}

.theme-classic .app-brand {
  display: inline-flex !important;
  align-items: center;
  gap: .65rem;
  color: var(--pc-text) !important;
  font-weight: 700;
  font-size: 1rem;
}

.theme-classic .brand-mark {
  background: var(--pc-primary);
  color: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: .7rem;
}

.theme-classic .app-navbar .nav-link {
  color: var(--pc-text-muted);
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: 8px;
}

.theme-classic .app-navbar .nav-link:hover,
.theme-classic .app-navbar .nav-link:focus,
.theme-classic .app-navbar .nav-link.active {
  color: var(--pc-primary);
}

.theme-classic .app-navbar .dropdown-menu {
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  padding: .4rem;
}

.theme-classic .app-navbar .dropdown-item {
  border-radius: 8px;
  font-weight: 500;
  padding: .55rem .75rem;
}

.theme-classic .app-navbar .dropdown-item.active,
.theme-classic .app-navbar .dropdown-item:active {
  background: var(--pc-primary-light);
  color: var(--pc-primary);
}

.theme-classic .navbar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.theme-classic .app-main {
  padding: 1.5rem 1rem 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}

.theme-classic .table-responsive {
  border-radius: var(--pc-radius);
  overflow-x: auto !important;
}

/* Page banners → classic heading style */
.theme-classic .page-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .35rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--pc-text);
}

.theme-classic .page-banner-eyebrow {
  color: var(--pc-primary);
  margin-bottom: .25rem;
}

.theme-classic .page-banner-title {
  color: var(--pc-text);
  font-size: 1.55rem;
  font-weight: 600;
}

.theme-classic .page-banner-subtitle {
  color: var(--pc-text-muted);
  margin-top: .35rem;
}

.theme-classic .page-banner-toolbar {
  margin: 0 0 1.25rem;
}

.theme-classic .btn {
  border-radius: 10px;
  min-height: 38px;
}

.theme-classic .btn-outline-primary {
  border-color: #c7d9ff;
}

.theme-classic .form-control,
.theme-classic .form-select {
  border-radius: 10px;
  min-height: 40px;
}

.theme-classic .form-control:focus,
.theme-classic .form-select:focus {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 .2rem rgba(70, 128, 255, .15);
}

.theme-classic .panel {
  border-radius: var(--pc-radius);
}

.theme-classic .panel-head {
  margin: 0 0 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.theme-classic .panel-head h2,
.theme-classic .panel-head h3 {
  color: var(--pc-text);
  font-size: 1.05rem;
  font-weight: 600;
}

.theme-classic .panel-head .text-muted,
.theme-classic .panel-head p {
  color: var(--pc-text-muted) !important;
}

.theme-classic .section-bar {
  background: transparent;
  color: var(--pc-text);
  border: 0;
  border-bottom: 1px solid var(--pc-border);
  border-radius: 0;
  padding: 0 0 .65rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.theme-classic .panel > .section-bar:first-child {
  margin: 0 0 1rem;
  border-radius: 0;
}

.theme-classic .details-header {
  margin: 0;
  padding: 0 0 1rem;
  background: transparent;
  color: inherit;
  border-radius: 0;
  border-bottom: 1px solid var(--pc-border);
}

.theme-classic .details-header h2,
.theme-classic .details-header .h2 {
  color: var(--pc-text);
  font-size: 1.2rem;
}

.theme-classic .details-header .text-muted,
.theme-classic .details-header .text-muted.small {
  color: var(--pc-text-muted) !important;
}

.theme-classic .form-section-title {
  margin: 1rem 0 .2rem;
  padding: .9rem 0 0;
  background: transparent;
  color: var(--pc-text-muted);
  border-radius: 0;
  border-top: 1px solid var(--pc-border);
  font-size: .72rem;
  letter-spacing: .08em;
}

.theme-classic .form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.theme-classic .table thead th {
  background: #f8fafc;
  color: var(--pc-text-muted);
}

.theme-classic .stat-card,
.theme-classic .dashboard-card {
  border-radius: 14px;
}

.theme-classic .dashboard-card > .btn,
.theme-classic .dashboard-card > a.btn,
.theme-classic .dashboard-card > button.btn {
  border-radius: 999px;
}

.theme-classic .dashboard-icon {
  border-radius: 14px;
}

.theme-classic .dashboard-icon-blue {
  background: #e8f0ff;
  color: #4680ff;
}

.theme-classic .dashboard-icon-indigo {
  background: #eeebff;
  color: #6c63ff;
}

.theme-classic .license-key {
  border-radius: 6px;
  border-color: #cfe0ff;
  color: #2563eb;
}

.theme-classic .status-pill {
  border-radius: 6px;
}

.theme-classic .alert {
  border-radius: 10px;
}

.theme-classic .auth-page-shell {
  background: #f5f6f8;
}

.theme-classic .auth-card {
  border-radius: var(--pc-radius);
}

.theme-classic .auth-card h1,
.theme-classic .auth-logo-title {
  color: var(--pc-text);
}

.theme-classic .auth-logo .brand-mark {
  background: var(--pc-primary);
  color: #fff;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.theme-switcher-label {
  margin: 0;
  color: var(--pc-text-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.theme-switcher-select {
  min-height: 32px;
  width: auto;
  min-width: 7.5rem;
  padding-top: .2rem;
  padding-bottom: .2rem;
  font-size: .82rem;
  font-weight: 600;
}

.theme-blue .theme-switcher-label {
  color: var(--pc-text-muted);
}

.theme-blue .theme-switcher-select {
  border-radius: 4px;
}

@media (max-width: 767px) {
  .theme-classic .navbar-user {
    width: 100%;
    padding-top: .5rem;
  }
}
