/* ============================================================
   MVConcept Lab Europe - Portal Specific Styles
   ============================================================ */

/* Sidebar User Card */
.sidebar-user-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info { overflow: hidden; }
.sidebar-user-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-email {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-upgrade {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(99,102,241,0.06));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-lg);
  text-align: center;
}

.sidebar-upgrade h5 {
  font-size: 0.8rem;
  color: #a78bfa;
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0;
}

.sidebar-upgrade p {
  font-size: 0.72rem;
  margin-bottom: var(--space-sm);
}

/* Portal Sections */
.portal-section { display: none; }
.portal-section.active { display: block; }

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.dashboard-stat {
  background: var(--gradient-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.dashboard-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(0,112,243,0.3);
}

.dashboard-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.dashboard-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-stat-delta {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.delta-up   { background: rgba(0,232,122,0.1); color: var(--color-success); }
.delta-down { background: rgba(255,71,87,0.1);  color: var(--color-danger); }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.portal-table-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.portal-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table-wrap th {
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
  text-align: left;
}

.portal-table-wrap td {
  padding: 12px 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}

.portal-table-wrap tr:last-child td { border-bottom: none; }
.portal-table-wrap tr:hover td { background: rgba(0,112,243,0.04); }

/* Section Headers */
.portal-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.portal-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.portal-section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Locked Section */
.locked-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.locked-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.01) 20px,
    rgba(255,255,255,0.01) 40px
  );
}

.locked-section .lock-icon { font-size: 3rem; margin-bottom: var(--space-md); position: relative; }
.locked-section h3 { position: relative; margin-bottom: var(--space-sm); }
.locked-section p  { max-width: 420px; position: relative; margin-bottom: var(--space-xl); }
.locked-section .lock-actions { display: flex; gap: var(--space-md); position: relative; flex-wrap: wrap; justify-content: center; }

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding: var(--space-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
}

.filter-select {
  padding: 7px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--color-primary);
  color: var(--text-primary);
}

/* Report Cards */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.report-card {
  background: var(--gradient-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.report-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,112,243,0.3);
  box-shadow: var(--shadow-md);
}

.report-card-icon { font-size: 1.8rem; margin-bottom: var(--space-sm); }
.report-card-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.report-card-desc { font-size: 0.76rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: var(--space-md); }
.report-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); }

/* AI Analytics */
.ai-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.ai-metric {
  background: var(--gradient-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.ai-metric-val {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.ai-metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress bars (full width) */
.prog-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.prog-label {
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 140px;
  color: var(--text-secondary);
}

.prog-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-primary);
  transition: width 1.5s ease;
}

.prog-val {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  min-width: 45px;
  text-align: right;
}

/* Responsive Portal */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .charts-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .portal-content { padding: var(--space-lg); }
}

@media (max-width: 480px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
