/* 現代高科技太空藍會議室看板樣式 - CSS (微暗不全黑) */

:root {
  /* 使用深藍灰/太空藍漸層背景 (微暗科技感，而非全黑) */
  --bg-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #090d16 100%);
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-bg-hover: rgba(51, 65, 85, 0.75);
  --text-primary: #f8fafc;        /* 主要文字：亮白 */
  --text-secondary: #94a3b8;      /* 次要文字：淡藍灰 */
  
  /* 狀態顏色 - 高科技霓虹配色 */
  --color-active: #ff2a5f;       /* 會議中 - 霓虹紅 */
  --color-upcoming: #f59e0b;     /* 即將開始 - 琥珀黃 */
  --color-idle: #10b981;         /* 空閒中 - 翠綠 */
  --color-ended: #64748b;        /* 已結束 - 灰 */
  
  --shadow-active: 0 10px 30px rgba(255, 42, 95, 0.2);
  --shadow-upcoming: 0 10px 30px rgba(245, 158, 11, 0.2);
  --shadow-idle: 0 10px 30px rgba(16, 185, 129, 0.15);

  --font-display: 'Outfit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-display);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 應用程式主容器 */
.app-container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Header 區域 */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2);
}

.logo-area h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-idle);
  box-shadow: 0 0 8px var(--color-idle);
}

.status-indicator.not-synced .indicator-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

/* 時鐘顯示 */
.time-display-container {
  text-align: center;
}

.date-text {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.time-text {
  font-size: 3.2rem;
  font-weight: 800;
  font-feature-settings: "tnum";
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  margin-top: -2px;
}

/* 響應式微調 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .time-section {
    align-items: center;
  }
}

/* =========================================================
   🆕 單一會議室門牌專屬樣式 (Single Room Layout)
   ========================================================= */

.single-room-container {
  display: flex;
  gap: 2rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  align-items: stretch;
  width: 100%;
}

/* 左側當前狀態巨幅卡片 */
.single-room-main {
  flex: 7;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 480px;
}

/* 巨幅卡片的內距與排版 */
.single-card-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex-grow: 1;
  z-index: 2;
}

/* 各種狀態背景與呼吸邊框 (高質感微暗漸層，不全黑) */
.single-room-main.active {
  background: linear-gradient(135deg, #4c0519 0%, #1e020a 100%);
  border-color: rgba(255, 42, 95, 0.3);
  box-shadow: 0 0 30px rgba(255, 42, 95, 0.15), inset 0 0 20px rgba(255, 42, 95, 0.1);
}
.single-room-main.active .single-room-title {
  color: #fff;
}
.single-room-main.active .single-meeting-subject {
  color: #fecdd3;
}
.single-room-main.active .single-detail-value {
  color: #fff;
}

.single-room-main.idle {
  background: linear-gradient(135deg, #022c22 0%, #0b1f19 100%);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.1);
}
.single-room-main.idle .single-room-title {
  color: #fff;
}
.single-room-main.idle .single-meeting-subject {
  color: #a7f3d0;
}
.single-room-main.idle .single-detail-value {
  color: #fff;
}

.single-room-main.upcoming {
  background: linear-gradient(135deg, #78350f 0%, #2d1a04 100%);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15), inset 0 0 20px rgba(245, 158, 11, 0.1);
}
.single-room-main.upcoming .single-room-title {
  color: #fff;
}
.single-room-main.upcoming .single-meeting-subject {
  color: #fef3c7;
}
.single-room-main.upcoming .single-detail-value {
  color: #fff;
}

/* 卡片頭部：會議室名稱與超大 Badge */
.single-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.single-room-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.single-room-badge {
  font-size: 1.2rem;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.active .single-room-badge {
  background: var(--color-active);
  color: #ffffff;
  animation: pulse-red 2s infinite;
}

.idle .single-room-badge {
  background: var(--color-idle);
  color: #ffffff;
}

.upcoming .single-room-badge {
  background: var(--color-upcoming);
  color: #ffffff;
  animation: pulse-orange 2s infinite;
}

/* 目前會議的主題與詳細內容 */
.single-card-content {
  margin-top: auto;
  margin-bottom: auto;
  padding: 1.5rem 0;
}

.single-meeting-subject {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 2.5rem;
}

.single-meeting-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.single-detail-row {
  display: flex;
  font-size: 1.35rem;
  align-items: center;
}

.single-detail-label {
  width: 120px;
  color: var(--text-secondary);
  font-weight: 600;
}

.single-detail-value {
  font-weight: 700;
}

.single-detail-value.time {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* 右側今日預約日程表 (深藍灰磨砂) */
.single-room-schedule {
  flex: 3;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.schedule-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
}

.schedule-icon {
  font-size: 1.5rem;
}

.schedule-table-wrapper {
  overflow-y: auto;
  flex-grow: 1;
  max-height: 520px;
}

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

.schedule-table th {
  position: sticky;
  top: 0;
  background: #1e293b;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 0.8rem;
  font-size: 0.9rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.schedule-table td {
  padding: 1rem 0.8rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.schedule-row {
  transition: background 0.2s;
}

.schedule-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.schedule-row.active-row {
  background: rgba(255, 42, 95, 0.1);
}

/* 日程表內部的狀態 Badge */
.schedule-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
  display: inline-block;
  text-align: center;
}

.schedule-badge.active {
  background: rgba(255, 42, 95, 0.15);
  color: #ff2a5f;
  border: 1px solid rgba(255, 42, 95, 0.3);
}

.schedule-badge.ended {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.schedule-badge.upcoming {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* 呼吸燈動畫 */
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 95, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 42, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 95, 0); }
}

@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* 響應式調整 */
@media (max-width: 1024px) {
  .single-room-container {
    flex-direction: column;
  }
  .single-room-main {
    min-height: auto;
  }
}

/* 更新倒數區 */
.sync-info-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 200px;
}

.sync-timer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-bar-container {
  width: 150px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #00f0ff);
  border-radius: 3px;
  transition: width 1s linear;
}

.btn-group {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
}

/* 主要看板區 */
.rooms-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  justify-content: center;
  gap: 1.5rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  align-content: center;
}

@media (min-width: 1200px) {
  .rooms-container:has(> :nth-child(1):last-child) {
    grid-template-columns: minmax(400px, 600px);
    justify-content: center;
  }
}

/* 會議室卡片 (深藍灰毛玻璃) */
.room-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.room-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* 卡片狀態燈條 */
.room-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-color: var(--color-ended);
  transition: all 0.3s ease;
}

/* 卡片頭部 */
.room-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.room-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  flex: 1;
  min-width: 0;
  word-break: break-all;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.room-badge {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.room-main-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 2rem;
  min-height: 160px;
}

/* 狀態：空閒中 */
.room-card.idle .room-status-bar {
  background-color: var(--color-idle);
}
.room-card.idle .room-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-idle);
  border-color: rgba(16, 185, 129, 0.3);
}
.room-card.idle .meeting-subject {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.5rem;
}

/* 狀態：會議中 */
.room-card.active {
  border-color: rgba(255, 42, 95, 0.2);
  box-shadow: var(--shadow-active);
}
.room-card.active .room-status-bar {
  background-color: var(--color-active);
  animation: pulse-bar 2s infinite ease-in-out;
}
.room-card.active .room-badge {
  background: rgba(255, 42, 95, 0.15);
  color: var(--color-active);
  border-color: rgba(255, 42, 95, 0.3);
  animation: pulse-glow-dark 2s infinite ease-in-out;
}
.room-card.active .meeting-subject {
  color: #ffffff;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
}

/* 狀態：未開始 (即將進行) */
.room-card.upcoming {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: var(--shadow-upcoming);
}
.room-card.upcoming .room-status-bar {
  background-color: var(--color-upcoming);
}
.room-card.upcoming .room-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-upcoming);
  border-color: rgba(245, 158, 11, 0.3);
}
.room-card.upcoming .meeting-subject {
  color: #ffffff;
  font-size: 1.9rem;
  font-weight: 800;
}

/* 會議主旨 */
.meeting-subject {
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 會議詳細欄位 */
.detail-row {
  display: flex;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  align-items: center;
}

.detail-label {
  color: var(--text-secondary);
  width: 90px;
  flex-shrink: 0;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

.detail-value.time {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-weight: 700;
}

/* 下一場會議資訊 */
.room-footer {
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
  margin-top: auto;
}

.next-meeting-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.next-meeting-content {
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.next-meeting-subject {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.next-meeting-time {
  color: var(--color-upcoming);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

/* 載入中骨架屏 */
.skeleton-card {
  height: 100%;
  min-height: 400px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.02) 8%, rgba(255, 255, 255, 0.06) 18%, rgba(255, 255, 255, 0.02) 33%);
  background-size: 200% 100%;
  animation: shine 1.5s infinite linear;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* 底部資訊列 */
.main-footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.footer-note {
  display: flex;
  align-items: center;
}

/* 動態特效 */
@keyframes pulse-bar {
  0% { opacity: 0.6; }
  50% { opacity: 1; box-shadow: 0 0 10px var(--color-active); }
  100% { opacity: 0.6; }
}

@keyframes pulse-glow-dark {
  0% { transform: scale(1); box-shadow: 0 0 3px rgba(255, 42, 95, 0.2); }
  50% { transform: scale(1.01); box-shadow: 0 0 10px rgba(255, 42, 95, 0.35); }
  100% { transform: scale(1); box-shadow: 0 0 3px rgba(255, 42, 95, 0.2); }
}

@keyframes shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =========================================================
   🆕 前台首頁導覽門戶 (Portal) 樣式 (深藍灰太空玻璃風)
   ========================================================= */

.portal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
  width: 100%;
}

.portal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  letter-spacing: 0.5px;
}

.portal-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 3.5rem;
  text-align: center;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.portal-card {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portal-card:hover {
  transform: translateY(-8px);
  background: rgba(51, 65, 85, 0.55);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 15px 45px rgba(99, 102, 241, 0.2);
}

.portal-card-icon {
  font-size: 3rem;
  margin-bottom: 6px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-card:hover .portal-card-icon {
  transform: scale(1.18) rotate(5deg);
}

.portal-card-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.portal-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  opacity: 0.9;
}

.portal-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  align-self: flex-start;
  margin-bottom: 1.5rem;
  border-left: 5px solid currentColor;
  padding-left: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* =========================================================
   🆕 今日全區行事曆看板 (Today) 樣式
   ========================================================= */

.today-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  width: 100%;
}

.today-header-bar {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}

.today-title-icon {
  font-size: 1.6rem;
}

.today-table-wrapper {
  overflow: auto;
  flex-grow: 1;
  max-height: calc(100vh - 180px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.today-grid-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  min-width: 1300px; 
}

/* 橫軸會議室標頭 Sticky - 提亮改用 3a4b65 深藍灰 */
.today-grid-table th {
  position: sticky;
  top: 0;
  background: #3b4a64;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 20;
}

/* 縱軸時間軸 Sticky (最左側一欄) - 提亮改用 24324a */
.today-grid-table td:first-child,
.today-grid-table th:first-child {
  position: sticky;
  left: 0;
  background: #24324a;
  color: #c7d2fe;
  font-weight: 700;
  font-size: 0.78rem;
  font-family: 'Outfit', sans-serif;
  z-index: 25;
  border-right: 2px solid rgba(255, 255, 255, 0.15);
  min-width: 70px;
  width: 70px;
}

/* 左上角交叉空白格 Sticky */
.today-grid-table th:first-child {
  z-index: 30;
  background: #3b4a64;
}

.today-grid-table td {
  padding: 0.12rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-secondary);
  height: 26px; /* 🆕 進一步縮小行高高度，確保一屏完結 */
}

/* 會議進行中的儲存格 - 全面優化提亮：高對比靛藍/亮霓虹漸層 */
.today-grid-table td.cell-booked {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.8) 0%, rgba(6, 182, 212, 0.75) 100%);
  border: 1px solid rgba(129, 140, 248, 0.95);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  vertical-align: middle;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0.12rem 0.25rem;
  line-height: 1.3;
}

.today-grid-table td.cell-booked:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(6, 182, 212, 0.85) 100%);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
  border-color: #ffffff;
}

.today-grid-table tr:hover td:not(.cell-booked) {
  background: rgba(255, 255, 255, 0.05);
}

/* 今日行事曆會議格子的主題與人名分層 */
.booked-subject {
  display: block;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* 強制不折行以利緊湊空間顯示 */
}

.booked-staff {
  display: block;
  font-size: 0.7rem;
  color: #cbd5e1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

