/* ========================================================
   Online Academic Advising and Counselling System
   Component-Specific Styles (Chat, Advice Engine, Dashboards)
   ======================================================== */

/* Demo Quick Switcher Header Bar */
.demo-switcher-bar {
  background: linear-gradient(90deg, #312e81, #1e1b4b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.demo-pills {
  display: flex;
  gap: 0.5rem;
}

.demo-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-btn:hover, .demo-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Stat Cards */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.stat-icon.primary { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.rose { background: rgba(244, 63, 94, 0.15); color: #f87171; }

.stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Advice Engine Output Visualizer */
.advice-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.15);
}

.advice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-glass-border);
}

.course-rec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.course-rec-table th, .course-rec-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.course-rec-table th {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Chat Layout */
.chat-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  height: calc(100vh - 180px);
}

.chat-list {
  border-right: 1px solid var(--surface-glass-border);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.chat-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.25rem;
}

.chat-contact-item:hover, .chat-contact-item.active {
  background: rgba(51, 65, 85, 0.6);
}

.chat-messages-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 70%;
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  font-size: 0.9rem;
  position: relative;
  line-height: 1.5;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.received {
  align-self: flex-start;
  background: #334155;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-time {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.25rem;
  text-align: right;
}

.chat-input-bar {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-glass-border);
}

/* Confidentiality Lock Box */
.confidential-card {
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.2), rgba(15, 23, 42, 0.8));
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* Tables */
.data-table-container {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th, .data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-glass-border);
}

.data-table th {
  background: rgba(15, 23, 42, 0.4);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.data-table tr:hover {
  background: rgba(51, 65, 85, 0.3);
}
