/* ============================================
   Presenter Dashboard – Helles Theme
   ============================================ */

body {
  background: var(--color-bg-muted);
  overflow: hidden;
}

/* --- Top Bar --- */

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: var(--ezyaa-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.topbar__logo {
  height: 28px;
  width: auto;
}

.topbar__sep {
  width: 1px;
  height: 20px;
  background: var(--color-border-strong);
}

.topbar__item {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.topbar__item--active {
  color: var(--color-primary);
}

.topbar__spacer {
  flex: 1;
}

.topbar__timer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__timer-time {
  font-weight: 900;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  line-height: 1;
}

.topbar__timer-bar-wrap {
  width: 80px;
  height: 4px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.topbar__timer-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 1s linear;
}

.topbar__timer--warning .topbar__timer-time {
  color: #e74c3c;
}

.topbar__timer--warning .topbar__timer-bar {
  background: #e74c3c;
}

/* --- Main Grid --- */

.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr auto 280px;
  grid-template-rows: 1fr;
  gap: 0;
  padding: 16px;
  height: calc(100vh - 53px);
  min-height: 0;
}

.dashboard > .schedule { margin-right: 16px; }
.dashboard > .sidebar  { margin-left: 0; }
.dashboard > .center   { margin-right: 0; }

/* Resize Handle */

.resize-handle {
  width: 12px;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.resize-handle::after {
  content: '';
  width: 4px;
  height: 40px;
  border-radius: 2px;
  background: var(--color-border);
  transition: background 0.2s, height 0.2s;
}

.resize-handle:hover::after,
.resize-handle--active::after {
  background: var(--color-primary);
  height: 60px;
}

/* --- Schedule Sidebar --- */

.schedule {
  background: var(--ezyaa-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.schedule__header {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.schedule__title {
  font-weight: 700;
  font-size: var(--font-size-xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.schedule__tabs {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.schedule__tab {
  flex: 1;
  padding: 6px 8px;
  font-weight: 700;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--color-text-secondary);
  transition: all 0.2s;
}

.schedule__tab--active {
  background: var(--color-primary);
  color: var(--ezyaa-white);
}

.schedule__tab:hover:not(.schedule__tab--active) {
  background: var(--color-bg-muted);
}

.schedule__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.schedule__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.schedule__item:hover {
  background: var(--color-bg-muted);
}

.schedule__item--active {
  background: rgba(29, 155, 246, 0.08);
  border-left: 3px solid var(--color-primary);
}

.schedule__item--past {
  opacity: 0.45;
}

.schedule__item--break {
  justify-content: center;
  opacity: 0.35;
  font-size: var(--font-size-sm);
  cursor: default;
}

.schedule__time {
  font-weight: 700;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  min-width: 40px;
}

.schedule__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
  flex-shrink: 0;
}

.schedule__item--active .schedule__dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 155, 246, 0.2);
}

.schedule__name {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule__item--active .schedule__name {
  color: var(--color-primary);
}

/* --- Center: Slide Preview --- */

.center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  min-width: 0;
}

.slide-preview {
  flex: 1;
  background: var(--ezyaa-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  min-height: 0;
  border: 1px solid var(--color-border);
}

.slide-preview__label {
  position: absolute;
  top: 12px;
  left: 16px;
  font-weight: 700;
  font-size: var(--font-size-xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.slide-preview__content {
  padding: 40px 32px 24px;
  color: var(--ezyaa-white);
  text-align: center;
  width: 100%;
}

/* --- Slide Clone (1:1 Display Mirror) --- */

.slide-clone {
  width: 1280px;
  height: 720px;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  background: var(--ezyaa-white);
  color: var(--ezyaa-white);
  overflow: hidden;
}

.slide-clone .slide {
  width: 100%;
  height: 100%;
  position: relative;
}

/* --- Navigation --- */

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
}

.nav__btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--ezyaa-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-text);
  transition: all 0.2s;
}

.nav__btn:hover {
  background: var(--color-primary);
  color: var(--ezyaa-white);
  box-shadow: var(--shadow-primary);
}

.nav__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.nav__btn:disabled:hover {
  background: var(--ezyaa-white);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.btn-display {
  padding: 10px 24px;
  background: var(--color-primary);
  color: var(--ezyaa-white);
  font-weight: 700;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-primary);
  transition: all 0.2s;
}

.btn-display:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* --- Right Sidebar --- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* Lead Rating */

.lead-rating {
  background: var(--ezyaa-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.lead-rating__label {
  font-weight: 700;
  font-size: var(--font-size-xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.lead-rating__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lead-rating__btn {
  padding: 8px 6px;
  font-weight: 700;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--ezyaa-white);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.lead-rating__btn:hover {
  border-color: var(--color-text-tertiary);
}

.lead-rating__btn--active {
  color: var(--ezyaa-white);
  border-color: transparent;
}

.lead-rating__btn[data-rating="cold"].lead-rating__btn--active {
  background: #94a3b8;
  border-color: #94a3b8;
}

.lead-rating__btn--hot[data-rating="hot"].lead-rating__btn--active {
  background: #f59e0b;
  border-color: #f59e0b;
}

.lead-rating__btn--booked[data-rating="booked"].lead-rating__btn--active {
  background: #10b981;
  border-color: #10b981;
}

.lead-rating__btn--sold[data-rating="sold"].lead-rating__btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Notes Card */

.notes-card {
  background: var(--ezyaa-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.notes-card__header {
  flex-shrink: 0;
}

.notes-card__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.notes-card__tab {
  flex: 1;
  padding: 5px 8px;
  font-weight: 700;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.notes-card__tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.notes-card__tab:hover:not(.notes-card__tab--active) {
  background: var(--color-bg-muted);
}

.notes-card__panel {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Operator Info Fields */

.operator-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.operator-info__row {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.operator-info__key {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  min-width: 72px;
  flex-shrink: 0;
}

.operator-info__val {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.operator-info__hook {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(29, 155, 246, 0.06);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text);
  font-style: italic;
}

.operator-info__hook-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-style: normal;
  margin-bottom: 3px;
}

.operator-info__notes {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-tertiary);
}

.operator-info__empty {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-style: italic;
  padding: 8px 0;
}

.notes-card__textarea {
  flex: 1;
  width: 100%;
  min-height: 80px;
  padding: 10px;
  font-family: inherit;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  resize: vertical;
  transition: border-color 0.2s;
}

.notes-card__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(29, 155, 246, 0.15);
}

/* Slide Selector Mini-Cards */

.slide-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  padding: 4px 0;
  scrollbar-width: none;
  min-width: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.slide-selector::-webkit-scrollbar {
  display: none;
}

.slide-selector__card {
  min-width: 120px;
  max-width: 160px;
  padding: 8px 10px;
  background: var(--ezyaa-raisin);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.slide-selector__card:hover {
  border-color: rgba(29, 155, 246, 0.3);
}

.slide-selector__card--active {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(29, 155, 246, 0.3);
}

.slide-selector__group {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.slide-selector__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ezyaa-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-selector__card--active .slide-selector__title {
  white-space: normal;
}

/* Display Button Sidebar */

.btn-display--sidebar {
  width: 100%;
  padding: 12px 24px;
  text-align: center;
  flex-shrink: 0;
}
