/* ==========================================================================
   InterviewPro AI - Dashboard, Resume Analyzer, JD Analyzer & Assistant Styles
   ========================================================================== */

/* User Dashboard */
.dashboard-container {
  max-width: 1180px;
  margin: 2.5rem auto 5rem;
}

.dashboard-welcome-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.dashboard-welcome-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 70%);
  pointer-events: none;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.user-avatar-large {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-blue-light);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.user-text-meta h2 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.user-text-meta p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.user-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
}

/* Dashboard Metric Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.metric-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.metric-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.metric-icon-box.blue { background: rgba(37, 99, 235, 0.15); color: #60A5FA; }
.metric-icon-box.purple { background: rgba(124, 58, 237, 0.15); color: #A78BFA; }
.metric-icon-box.green { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.metric-icon-box.cyan { background: rgba(6, 182, 212, 0.15); color: #22D3EE; }

.metric-data h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.metric-number {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1;
}

/* Dashboard Analytics Grid */
.dashboard-grid-2col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dash-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.chart-container-large {
  position: relative;
  height: 240px;
  width: 100%;
}

/* Interview History Table */
.history-table-container {
  overflow-x: auto;
}

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

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

.history-table td {
  padding: 1.1rem 1rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Recommended Drills Card */
.drill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  transition: all var(--transition-fast);
}

.drill-item:hover {
  border-color: var(--border-color-hover);
  transform: translateX(4px);
}

.drill-info h5 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.drill-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Resume Analyzer Styles
   ========================================================================== */
.resume-view-container {
  max-width: 1080px;
  margin: 2.5rem auto 5rem;
}

.preset-pills-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.preset-pill-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-pill-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--brand-blue-light);
  color: #93C5FD;
}

/* ATS Results Grid */
.ats-results-wrapper {
  margin-top: 2.5rem;
  animation: fadeIn 0.4s ease;
}

.ats-header-summary {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.skill-tag {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93C5FD;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.skill-tag.missing {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #F87171;
}

/* Bullet Point Comparison Cards */
.bullet-diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.bullet-before {
  background: rgba(239, 68, 68, 0.06);
  border-left: 3px solid #EF4444;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.bullet-after {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10B981;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.bullet-diff-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Job Description Analyzer Styles
   ========================================================================== */
.jd-view-container {
  max-width: 1080px;
  margin: 2.5rem auto 5rem;
}

.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.roadmap-day-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.day-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--brand-blue);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.roadmap-day-card h5 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.roadmap-day-card ul {
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.roadmap-day-card li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   AI Career Assistant Chatbot Styles
   ========================================================================== */
.assistant-view-container {
  max-width: 900px;
  margin: 2.5rem auto 5rem;
}

.chat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  height: 680px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.chat-header {
  padding: 1.25rem 1.75rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coach-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.coach-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-purple-light);
}

.coach-meta h4 {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.coach-status-online {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.chat-messages-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.message-bubble-wrapper {
  display: flex;
  gap: 0.85rem;
  max-width: 85%;
}

.message-bubble-wrapper.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.message-bubble {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  line-height: 1.6;
}

.message-bubble-wrapper.ai .message-bubble {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.message-bubble-wrapper.user .message-bubble {
  background: var(--gradient-brand);
  color: #FFFFFF;
  border-top-right-radius: 4px;
}

.message-bubble h3, .message-bubble h4 {
  margin: 0.6rem 0 0.35rem;
  font-size: 1.05rem;
}

.message-bubble blockquote {
  border-left: 3px solid var(--brand-blue-light);
  padding-left: 0.75rem;
  margin: 0.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.message-bubble ol, .message-bubble ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.chat-quick-chips {
  padding: 0.65rem 1.5rem;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.quick-chip-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-chip-btn:hover {
  border-color: var(--brand-blue-light);
  color: #93C5FD;
}

.chat-input-bar {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-input {
  flex-grow: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--brand-blue-light);
}

@media (max-width: 900px) {
  .dashboard-grid-2col {
    grid-template-columns: 1fr;
  }
  .ats-header-summary {
    grid-template-columns: 1fr;
  }
}
