/* Gold Night 管家系統 - 全域樣式 */
:root {
  --gn-bg: #0f0f12;
  --gn-card: #1a1b20;
  --gn-gold: #c9a227;
  --gn-text: #f4f4f4;
  --gn-text-muted: #bbb;
  --gn-border: #2a2b33;
  --gn-success: #28a745;
  --gn-danger: #dc3545;
  --gn-warning: #ffc107;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--gn-bg);
  color: var(--gn-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 70px; /* 為底部導航預留空間 */
}
.text-muted {
    --bs-text-opacity: 1;
    color: var(--bs-white) !important;
}
/* 按鈕樣式 */
.btn-gn {
  background: var(--gn-gold);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gn:hover {
  background: #b8921f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.btn-gn:active {
  transform: translateY(0);
}

/* 卡片樣式 */
.card-gn {
  background: var(--gn-card);
  border: 1px solid var(--gn-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-title {
  color: var(--gn-gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* 底部導航 */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gn-card);
  border-top: 1px solid var(--gn-border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.tabbar a {
  color: var(--gn-text-muted);
  text-decoration: none;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
}

.tabbar a.active {
  color: var(--gn-gold);
  font-weight: 700;
  background: rgba(201, 162, 39, 0.1);
}

.tabbar a:hover {
  color: var(--gn-gold);
  background: rgba(201, 162, 39, 0.05);
}

/* 容器樣式 */
.container-gn {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 標題樣式 */
.main-title {
  color: var(--gn-gold);
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 統計卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--gn-card);
  border: 1px solid var(--gn-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gn-gold);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--gn-text-muted);
  font-size: 0.9rem;
}

/* 快捷按鈕網格 */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.shortcut-btn {
  background: var(--gn-card);
  border: 1px solid var(--gn-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gn-text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.shortcut-btn:hover {
  background: var(--gn-gold);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3);
}

.shortcut-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* 列表樣式 */
.list-gn {
  background: var(--gn-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gn-border);
}

.list-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--gn-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: rgba(201, 162, 39, 0.05);
}

/* 狀態指示器 */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-online {
  background: var(--gn-success);
  color: white;
}

.status-offline {
  background: var(--gn-text-muted);
  color: white;
}

.status-busy {
  background: var(--gn-danger);
  color: white;
}

.status-working {
  background: var(--gn-gold);
  color: black;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .container-gn {
    padding: 15px;
  }
  
  .main-title {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .shortcuts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .shortcut-btn {
    padding: 15px;
  }
  
  .shortcut-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr ;
  }
  
  .tabbar a {
    font-size: 0.7rem;
    padding: 6px 8px;
  }
}

/* 加載動畫 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gn-border);
  border-radius: 50%;
  border-top-color: var(--gn-gold);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 通知樣式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  background: var(--gn-success);
}

.notification.error {
  background: var(--gn-danger);
}

.notification.warning {
  background: var(--gn-warning);
  color: black;
}