/* Custom Alert Styles for IT Dashboard - TV Optimized */

/* ═══════════════════════════════════════════════════════════════════════════
   TV DISPLAY OPTIMIZATIONS
   - Large readable fonts visible from 10+ feet
   - High contrast colors
   - Bold visual hierarchy
   ═══════════════════════════════════════════════════════════════════════════ */

/* Layout cleanup: bring content up and host LIVE badge inside Ticket Queue */
.screen {
  padding: 1.5rem 2rem 2rem;
  gap: 1.5rem;
}


.panel-header {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-header-live {
  justify-content: space-between;
  width: 100%;
}

.panel-header-left {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Prevent alert glow from overflowing panels */
.panel {
  overflow: hidden;
}
.counts {
  overflow: hidden;
}

.stat-card {
  overflow: hidden;
}

/* Ensure the four ticket stats (New, Working, On Hold, Escalated)
   fill the full row with no extra empty grid columns. */
.counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED TV SIZING - Large numbers for all screens (TV-style)
   ───────────────────────────────────────────────────────────────────────────── */

/* Main stat numbers - TV size on all screens */
.stat-value {
  font-size: clamp(6rem, 11vw, 11rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

/* Task value - TV size on all screens (sized for two-column layout) */
.task-value {
  font-size: clamp(6rem, 12vw, 10rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  text-shadow: 0 0 100px rgba(34, 197, 94, 0.6) !important;
}

/* Stat labels - larger and bolder */
.stat-label {
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  margin-bottom: 1.5rem !important;
}

/* Panel titles - bigger */
.panel-title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.25em !important;
}

/* Task badge - larger text */
.task-badge {
  font-size: 1.1rem !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
}

/* Alert list text - readable from distance */
.alert-item,
.alert-rotator-content {
  font-size: 1.5rem !important;
  font-weight: 500 !important;
}

.alert-item {
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
}

/* ---------------------------------------------------------------------------
   DESKTOP SCALE (≤ 1919px width) – match the 80% browser zoom look
   --------------------------------------------------------------------------- */
@media (max-width: 1919px) {
  .screen {
    padding: 1.6rem;
    gap: 1.6rem;
  }

  .panel {
    padding: 1.6rem;
  }

  .panel-header {
    margin-bottom: 1.6rem;
  }

  .dashboard-grid {
    gap: 1.2rem;
  }

  .counts {
    gap: 0.8rem;
  }

  .stat-card {
    padding: 0.8rem;
  }

  .stat-value {
    font-size: clamp(4.8rem, 8.8vw, 8.8rem) !important;
  }

  .task-value {
    font-size: clamp(4.8rem, 9.6vw, 8rem) !important;
  }

  .stat-label {
    font-size: 0.8rem !important;
    letter-spacing: 0.16em !important;
    margin-bottom: 1.2rem !important;
  }

  .panel-title {
    font-size: 0.9rem !important;
    letter-spacing: 0.2em !important;
  }

  .task-badge {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.2rem !important;
  }

  .task-box {
    gap: 1.2rem;
    padding: 1.6rem;
  }

  .task-grid {
    gap: 1.6rem;
  }

  .alert-item,
  .alert-rotator-content {
    font-size: 1.2rem !important;
  }

  .alert-item::before {
    font-size: 1.2rem;
  }

  .live-text {
    font-size: 0.75rem !important;
  }

  .live-dot {
    width: 0.5rem !important;
    height: 0.5rem !important;
  }
}

/* Footer/updated text */
.updated {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: var(--text-primary) !important;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
}

/* LIVE indicator - more prominent */
.live-text {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.live-dot {
  width: 0.625rem !important;
  height: 0.625rem !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ALERT CARD VARIANTS
   ───────────────────────────────────────────────────────────────────────────── */

.stat-card-alert-blue {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  animation: alert-breathe-blue 2s ease-in-out infinite;
}

.stat-card-alert-green {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
  animation: alert-breathe-green 2s ease-in-out infinite;
}

/* Alert Value Variants - Enhanced glow for TV */
.stat-value-alert-blue {
  color: #bfdbfe !important;
  text-shadow: 0 0 80px rgba(59, 130, 246, 0.7) !important;
  animation: number-alert-blue 2s ease-in-out infinite;
}

.stat-value-alert-green {
  color: #bbf7d0 !important;
  text-shadow: 0 0 80px rgba(34, 197, 94, 0.7) !important;
  animation: number-alert-green 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   KEYFRAME ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

@keyframes number-alert-blue {
  0%, 100% {
    text-shadow: 0 0 60px rgba(59, 130, 246, 0.6);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 100px rgba(59, 130, 246, 0.8), 0 0 150px rgba(59, 130, 246, 0.5);
    transform: scale(1.02);
  }
}

@keyframes number-alert-green {
  0%, 100% {
    text-shadow: 0 0 60px rgba(34, 197, 94, 0.6);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 100px rgba(34, 197, 94, 0.8), 0 0 150px rgba(34, 197, 94, 0.5);
    transform: scale(1.02);
  }
}

@keyframes alert-breathe-blue {
  0%, 100% {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) inset;
  }
}

@keyframes alert-breathe-green {
  0%, 100% {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
  }
  50% {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3) inset;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT - Grid for TV display
   ───────────────────────────────────────────────────────────────────────────── */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  color: #f8fafc;
}

.panel-tickets {
  grid-column: 1 / -1;
}

.panel-alerts {
  grid-column: 1;
  display: flex;
  flex-direction: column;
}

.panel-tasks {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Task box - center the big number */
.task-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TASK GRID - Two column layout for Due Today / Upcoming
   ───────────────────────────────────────────────────────────────────────────── */

.task-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  padding: 1rem 0;
}

.task-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.task-item-primary {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.15);
}

.task-item-secondary {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.15);
}

/* Upcoming badge - blue theme */
.task-badge-upcoming {
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: var(--accent-blue) !important;
}

.task-badge-dot-upcoming {
  background: var(--accent-blue) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6) !important;
}

/* Upcoming value - blue glow */
.task-value-upcoming {
  color: var(--text-primary) !important;
  text-shadow: 0 0 100px rgba(59, 130, 246, 0.6) !important;
  animation: number-breathe-blue 5s ease-in-out infinite !important;
}

@keyframes number-breathe-blue {
  0%, 100% {
    text-shadow: 0 0 80px rgba(59, 130, 246, 0.4);
  }
  50% {
    text-shadow: 0 0 120px rgba(59, 130, 246, 0.7);
  }
}

/* Alerts panel styling */
.panel-alerts .panel-header {
  margin-bottom: 1rem;
}

.alert-rotator {
  padding: 1rem 1.25rem;
  margin: 0;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.75rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Stack alert items vertically */
.alert-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.35rem;
  min-height: 240px;
}

.alert-list-empty {
  justify-content: center;
}

/* Bullet prefix for alerts (list mode) */
.alert-item::before {
  content: "•";
  color: #3b82f6;
  font-size: 1.5rem;
  margin-right: 0.75rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.6));
}

/* Improve alert row visibility */
.panel-alerts .alert-item {
  position: relative;
  padding: 0.4rem 0.9rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
  flex: 0 0 auto;
  min-height: 3.25rem;
}

.panel-alerts .alert-item:hover {
  background: rgba(30, 64, 175, 0.7);
}

/* Smoothly highlight the "current" alert when rotating */
.panel-alerts .alert-item.alert-active {
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.7);
  transform: translateX(2px);
  transition: all 0.4s ease-in-out;
}

.alert-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.alert-owner {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.alert-date {
  flex: 0 0 auto;
  font-weight: 500;
  color: var(--accent-blue);
  white-space: nowrap;
}

.alert-item.alert-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  min-height: 260px;
  padding: 2.5rem 1.5rem;
  flex: 1 1 auto;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border-style: dashed;
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.alert-item.alert-empty::before {
  content: none;
  margin: 0;
}

.alert-empty-text {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: #ecfdf5;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TV-SPECIFIC MEDIA QUERIES
   ───────────────────────────────────────────────────────────────────────────── */

/* 1080p TVs */
@media (min-width: 1920px) {
  .stat-value {
    font-size: clamp(6rem, 11vw, 11rem) !important;
  }
  
  .task-value {
    font-size: clamp(7rem, 14vw, 12rem) !important;
  }
  
  .task-grid {
    gap: 3rem;
  }
  
  .stat-label {
    font-size: 1rem !important;
  }
  
  .panel-title {
    font-size: 1.1rem !important;
  }
  
  .task-badge {
    font-size: 1.1rem !important;
  }
  
  .alert-item,
  .alert-rotator-content {
    font-size: 1.5rem !important;
  }
}

/* 4K TVs */
@media (min-width: 2560px) {
  .stat-value {
    font-size: clamp(8rem, 12vw, 14rem) !important;
  }
  
  .task-value {
    font-size: clamp(10rem, 18vw, 16rem) !important;
  }
  
  .task-grid {
    gap: 4rem;
  }
  
  .task-item {
    padding: 2rem;
  }
  
  .stat-label {
    font-size: 1.25rem !important;
    margin-bottom: 2rem !important;
  }
  
  .panel-title {
    font-size: 1.4rem !important;
  }
  
  .task-badge {
    font-size: 1.4rem !important;
    padding: 1rem 2rem !important;
  }
  
  .alert-item,
  .alert-rotator-content {
    font-size: 2rem !important;
  }
  
  .live-text {
    font-size: 1.1rem !important;
  }
} 
