/* ========================================
   UNIFY.PRO — Screen-specific Styles
   ======================================== */

/* ---- Dashboard ---- */
.dashboard-header {
  padding: 40px 24px 24px;
}
.dashboard-logo { height: 50px; object-fit: contain; }
.dashboard-greeting { font: var(--headline-medium); font-weight: 700; }
.dashboard-subtitle { font: var(--body-large); color: rgba(36,42,55,0.7); }

.stats-row { display: flex; gap: var(--space-md); }
.stats-section { padding: 0 20px 24px; }

.activity-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}
.activity-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-time {
  font: var(--label-medium);
  color: rgba(36,42,55,0.4);
  white-space: nowrap;
}

/* ---- AI Assistant ---- */
.ai-header {
  background: linear-gradient(180deg, var(--dark-navy), rgba(36,42,55,0.92));
  padding: 48px 24px 16px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.ai-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-header-title { font: var(--title-medium); color: white; font-weight: 700; }
.ai-header-status { font: var(--label-small); }

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-row { display: flex; gap: var(--space-sm); width: 100%; }
.chat-row.user { justify-content: flex-end; }
.chat-row.ai { justify-content: flex-start; }

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #F1F4F9;
  flex-shrink: 0;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chat-bubble {
  max-width: 280px;
  padding: 14px;
  font: var(--body-medium);
}
.chat-bubble.user {
  background: var(--dark-navy);
  color: white;
  border-radius: 20px 4px 20px 20px;
}
.chat-bubble.ai {
  background: #F1F4F9;
  color: var(--dark-navy);
  border-radius: 4px 20px 20px 20px;
}

.chat-source {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font: var(--label-small);
  color: var(--sage-green);
  font-weight: 700;
}
.chat-escalate {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(36,42,55,0.08);
  font: var(--label-small);
  color: var(--primary);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
}
.chat-escalate:hover { text-decoration: underline; }

.thinking-dots {
  display: flex;
  gap: 4px;
  padding: 12px;
}
.thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--dark-navy);
  animation: pulse 600ms ease-in-out infinite;
}
.thinking-dot:nth-child(2) { animation-delay: 200ms; }
.thinking-dot:nth-child(3) { animation-delay: 400ms; }

.chat-input-bar {
  margin: 16px;
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  padding: 4px 8px;
}
.chat-input-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px;
  font: var(--body-medium);
  background: transparent;
}
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  border: none;
  cursor: pointer;
}
.chat-send-btn.active { background: var(--dark-navy); color: white; }
.chat-send-btn.inactive { background: #D0D0D0; color: white; }
.chat-send-btn .material-symbols-outlined { font-size: 20px; }

/* ---- Tasks / Planning ---- */
.day-strip {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}
.day-card {
  width: 48px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--surface);
}
.day-card:hover { box-shadow: var(--shadow-sm); }
.day-card.selected {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}
.day-name { font: var(--label-small); opacity: 0.7; text-transform: uppercase; }
.day-card.selected .day-name { color: rgba(255,255,255,0.7); }
.day-num { font: var(--title-medium); font-weight: 700; }

.task-card-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}
.task-done .task-title { color: gray; text-decoration: line-through; }

/* ---- Documents ---- */
.doc-card-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}
.doc-status {
  font: var(--label-small);
  font-weight: 700;
}

/* ---- Forum ---- */
.forum-card-body { padding: var(--space-md); }
.forum-author-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.forum-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.forum-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font: var(--label-small);
  cursor: pointer;
}
.forum-stat:first-child { color: var(--primary); }
.forum-stat:last-child { color: gray; }

/* ---- Support ---- */
.support-hero {
  background: linear-gradient(135deg, var(--dark-navy), var(--sage-green));
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  color: white;
  text-align: center;
  margin: var(--space-md);
}
.support-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

/* ---- Office Spreadsheet ---- */
.spreadsheet-grid {
  border-radius: var(--radius-md);
  background: rgba(229,226,224,0.3);
  padding: var(--space-sm);
  overflow-x: auto;
}
.sheet-row {
  display: flex;
  align-items: center;
}
.sheet-header-cell {
  width: 40px;
  text-align: center;
  font-weight: 700;
  font: var(--body-medium);
  flex-shrink: 0;
}
.sheet-cell {
  flex: 1;
  min-width: 0;
}
.sheet-cell input {
  width: 100%;
  padding: 8px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  text-align: center;
  font: var(--body-small);
  background: white;
  outline: none;
  margin: 2px;
}
.sheet-cell input:focus { border-color: var(--primary); }
.sheet-sum-cell {
  flex: 1;
  text-align: center;
  padding: 8px;
  margin: 2px;
  border: 1px solid rgba(36,42,55,0.15);
  border-radius: 4px;
  font: var(--label-small);
  font-weight: 700;
  color: var(--primary);
}

/* ---- Office Presentation Slideshow ---- */
.slideshow-overlay {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 300ms ease;
}
.slideshow-title {
  font: var(--display-medium);
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 24px;
}
.slideshow-body {
  font: var(--title-large);
  color: rgba(255,255,255,0.8);
  text-align: center;
}
.slideshow-controls {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}
.slideshow-close {
  position: fixed;
  top: 16px;
  right: 16px;
  color: white;
  cursor: pointer;
  z-index: 501;
}
.slideshow-nav-btn {
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  opacity: 0.8;
}
.slideshow-nav-btn:hover { opacity: 1; }
.slideshow-nav-btn:disabled { opacity: 0.3; cursor: default; }
.slideshow-counter { color: white; font: var(--body-large); }

/* ---- Notification Dialog ---- */
.notification-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(36,42,55,0.08);
}
.notification-item:last-child { border-bottom: none; }
.notification-title { font: var(--body-medium); font-weight: 700; }
.notification-desc { font: var(--body-small); color: gray; }
.notification-time { font: var(--label-small); color: gray; }

/* ---- Line Item Entry ---- */
.line-item-card {
  background: rgba(229,226,224,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}
.line-item-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.line-item-total {
  text-align: right;
  font: var(--label-medium);
  font-weight: 700;
  color: var(--primary);
  padding: 4px 8px;
}
.line-item-remove {
  cursor: pointer;
  color: gray;
  background: none;
  border: none;
  padding: 4px;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 32px;
  color: gray;
  font: var(--body-medium);
}

/* ---- Feature Card (More screen) ---- */
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---- Setting Item ---- */
.setting-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-xl);
  cursor: pointer;
  margin-bottom: 8px;
  transition: background var(--transition-fast);
}
.setting-item:hover { background: rgba(255,255,255,0.8); }
.setting-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(36,42,55,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.setting-icon-box .material-symbols-outlined { font-size: 20px; color: var(--primary); }
.setting-chevron { color: rgba(36,42,55,0.3); }
