/* ============================================================
 * 会议室管理系统 - 自定义设计样式（复用 UI 设计稿的视觉语言）
 * 基础布局工具由本地 Tailwind(./vendor/tailwind.js) 提供，
 * 此处仅放 Tailwind 难以覆盖的组件态样式与动画。
 * ============================================================ */

* { scrollbar-width: none; scrollbar-color: rgba(0,0,0,0.2) transparent; }
*::-webkit-scrollbar { width: 0; height: 0; }

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* 布局骨架 */
.app-shell { min-height: 100vh; }
.app-body { display: flex; min-height: 100vh; background: #f7f8fa; }

/* Sidebar */
.app-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 256px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1e3a5f 0%, #16304f 55%, #0f2744 100%);
  color: #fff; box-shadow: 2px 0 16px rgba(15,39,68,0.18); z-index: 50;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center;
  color: #93c5fd; font-size: 20px;
}
.brand-title { font-size: 15px; font-weight: 600; line-height: 1.2; }
.brand-sub { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 0; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  margin: 3px 12px; padding: 11px 14px; border-radius: 10px;
  color: rgba(255,255,255,0.72); font-size: 14px; cursor: pointer;
  border-left: 3px solid transparent; transition: all 0.18s ease;
}
.sidebar-item i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-item:hover { background: rgba(255,255,255,0.10); color: #fff; }
.sidebar-item.active {
  background: rgba(255,255,255,0.16); color: #fff;
  border-left: 3px solid #60a5fa; font-weight: 500;
}
.sidebar-divider {
  margin: 14px 16px 8px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 11px; letter-spacing: 0.05em; color: rgba(255,255,255,0.45);
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 12px 16px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.08);
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #3b82f6; color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px;
}
.user-meta { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-sub { font-size: 11px; color: rgba(255,255,255,0.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-logout {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.18s ease;
}
.user-logout:hover { background: rgba(239,68,68,0.85); color: #fff; }

/* 主内容区 */
.app-main { flex: 1; min-width: 0; margin-left: 256px; }

/* 卡片悬浮 */
.stat-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.quick-btn { transition: all 0.2s ease; }
.quick-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.25); }

/* 今日占用时间轴 */
.timeline-block { border-radius: 6px; font-size: 12px; line-height: 1.3; padding: 4px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.timeline-block.cancelled { opacity: 0.45; text-decoration: line-through; }

/* 会议类型配色（与统计/日历保持一致） */
.block-bid, .meeting-type-bid { background: #fde8e8; color: #b91c1c; border-left: 3px solid #ef4444; }
.block-eval, .meeting-type-eval { background: #dbeafe; color: #1e40af; border-left: 3px solid #3b82f6; }
.block-internal, .meeting-type-internal { background: #dcfce7; color: #166534; border-left: 3px solid #22c55e; }
.block-supervise, .meeting-type-supervise { background: #fff7ed; color: #9a3412; border-left: 3px solid #f97316; }
.block-bid_eval, .meeting-type-bid_eval { background: #f3e8ff; color: #6d28d9; border-left: 3px solid #8b5cf6; }
.block-interview, .meeting-type-interview { background: #ccfbf1; color: #0f766e; border-left: 3px solid #14b8a6; }
.block-temp, .meeting-type-temp { background: #f1f5f9; color: #475569; border-left: 3px solid #64748b; }
.block-prescreen, .meeting-type-prescreen { background: #fef9c3; color: #854d0e; border-left: 3px solid #eab308; }
.block-gray { background: #f3f4f6; color: #4b5563; border-left: 3px solid #9ca3af; }

/* 日历视图 */
.view-btn { transition: all 0.15s ease; }
.view-btn.active { background: #3b82f6; color: #fff; }
.meeting-block { border-radius: 6px; padding: 4px 8px; font-size: 11px; line-height: 1.3; cursor: pointer; transition: all 0.15s ease; overflow: hidden; }
.meeting-block.cancelled { opacity: 0.45; text-decoration: line-through; cursor: default; }
.meeting-block:hover { filter: brightness(0.95); transform: scale(1.01); z-index: 10; }
.time-slot { border-right: 1px solid #f0f0f0; }
.time-slot:hover { background: #f0f7ff; cursor: pointer; }
.grid-row { border-bottom: 1px solid #f3f4f6; }
.grid-row:last-child { border-bottom: none; }

/* 预定向导 */
.step-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.step-active .step-circle { background: #3b82f6; color: #fff; }
.step-completed .step-circle { background: #22c55e; color: #fff; }
.step-pending .step-circle { background: #e5e7eb; color: #9ca3af; }
.step-line { height: 2px; flex: 1; background: #e5e7eb; }
.room-card { transition: all 0.2s ease; border: 2px solid transparent; }
.room-card:hover { border-color: #93c5fd; box-shadow: 0 4px 12px rgba(59,130,246,0.1); }
.room-card.selected { border-color: #3b82f6; background: #eff6ff; }
.room-card.recommended::before { content: '推荐'; position: absolute; top: -1px; right: 12px; background: #3b82f6; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 0 0 6px 6px; }
.form-input { transition: all 0.2s ease; }
.form-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.equipment-check { transition: all 0.15s ease; }
.equipment-check:hover { background: #f0f7ff; }
.equipment-check.checked { background: #eff6ff; border-color: #3b82f6; }

/* 表格/标签/模态 */
.table-row { transition: background 0.15s ease; }
.table-row:hover { background: #f8fafc; }
.status-tag { padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.modal-overlay { background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; }
.chart-container { position: relative; }
.bar-fill { transition: width 0.6s ease; border-radius: 0 6px 6px 0; }

/* Toast 提示 */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.18); z-index: 200;
}
.toast i { font-size: 15px; }
.toast-success { background: #22c55e; }
.toast-error { background: #ef4444; }
.toast-info { background: #3b82f6; }
.toast-fade-enter-active, .toast-fade-leave-active { transition: opacity 0.25s ease, transform 0.25s ease; }
.toast-fade-enter-from, .toast-fade-leave-to { opacity: 0; transform: translateX(-50%) translateY(8px); }

/* 移动端侧边栏收起 */
@media (max-width: 768px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-main { margin-left: 0 !important; }
}
