/* 深色模式切換按鈕 */
.dark-mode-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.dark-mode-toggle i {
    color: #FDB813;
    transition: all 0.3s ease;
}

/* 深色模式基礎樣式 */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

body.dark-mode .header {
    background: linear-gradient(135deg, rgba(30,30,40,0.98) 0%, rgba(20,20,30,0.95) 100%) !important;
}

body.dark-mode .header h1 {
    color: #FFB74D !important;
}

body.dark-mode .header p {
    color: rgba(255,255,255,0.8) !important;
}

body.dark-mode .back-btn {
    background: #FFB74D !important;
    color: #1a1a2e !important;
}

body.dark-mode .back-btn:hover {
    background: #FFA726 !important;
}

body.dark-mode .camera-card,
body.dark-mode .stat-card,
body.dark-mode .category-card,
body.dark-mode .card,
body.dark-mode .feature-card,
body.dark-mode .info-card,
body.dark-mode .status-card,
body.dark-mode .data-card {
    background: #000000 !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}

body.dark-mode .camera-info h3,
body.dark-mode .category-title {
    color: #FFB74D !important;
}

body.dark-mode .camera-info p,
body.dark-mode .category-description,
body.dark-mode .stat-label {
    color: rgba(255,255,255,0.8) !important;
}

body.dark-mode .modal {
    background: rgba(0,0,0,0.95) !important;
}

body.dark-mode .modal-info {
    background: linear-gradient(135deg, rgba(40,40,50,0.98) 0%, rgba(30,30,40,0.95) 100%) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

body.dark-mode .modal-info h2 {
    color: #FFB74D !important;
}

body.dark-mode .modal-info p {
    color: rgba(255,255,255,0.8) !important;
}

body.dark-mode select,
body.dark-mode button:not(.dark-mode-toggle) {
    background: rgba(40,40,50,0.95) !important;
    color: white !important;
    border-color: rgba(255,255,255,0.2) !important;
}

body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, rgba(40,40,50,0.95) 0%, rgba(30,30,40,0.85) 100%) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

body.dark-mode .dark-mode-toggle i {
    color: #FFF !important;
}

body.dark-mode .loading {
    color: rgba(255,255,255,0.9) !important;
}

body.dark-mode .hero-section {
    background: linear-gradient(135deg, rgba(30,30,40,0.98) 0%, rgba(20,20,30,0.95) 100%) !important;
    border-bottom-color: rgba(255,255,255,0.1) !important;
}

body.dark-mode .hero-title {
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

body.dark-mode .hero-subtitle,
body.dark-mode .hero-description {
    color: rgba(255,255,255,0.8) !important;
}

body.dark-mode .section-title {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

body.dark-mode .footer-link {
    background: rgba(255,255,255,0.15) !important;
}

body.dark-mode .footer-link:hover {
    background: rgba(255,255,255,0.25) !important;
}

body.dark-mode .live-indicator {
    background: rgba(76,175,80,0.3) !important;
    color: #66BB6A !important;
}

body.dark-mode .theme-picker-panel {
    background: rgba(30,30,40,0.98) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

body.dark-mode .theme-picker-title {
    color: rgba(255,255,255,0.95) !important;
}

body.dark-mode .theme-label {
    color: rgba(255,255,255,0.6) !important;
    border-top-color: rgba(255,255,255,0.1) !important;
}

body.dark-mode #infoPanel {
    background: rgba(40,40,50,0.95) !important;
}

body.dark-mode #infoPanel h3 {
    color: #FFB74D !important;
}

body.dark-mode #infoContent {
    color: rgba(255,255,255,0.8) !important;
}

body.dark-mode #infoContent a {
    color: #FFB74D !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 50px;
        height: 50px;
        top: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}
