/* YEN Shop Console 主頁面樣式 */

/* 主應用容器 */
#app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 側邊欄樣式 */
#sidebar {
    transition: transform 0.3s ease;
}

#sidebar.collapsed {
    transform: translateX(-100%);
}

/* 主內容區域 */
main {
    background: var(--bg-primary);
}

/* 頁面標題區域 */
#page-title {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 搜尋框樣式 */
.search-input {
    transition: all 0.2s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* 通知按鈕 */
.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--error-400);
    border-radius: 50%;
    border: 2px solid white;
}

/* iframe 內容區域 */
#content-frame {
    background: var(--bg-primary);
    transition: opacity 0.3s ease;
}

#content-frame.loading {
    opacity: 0.7;
}

/* 載入覆蓋層 */
#loading-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    #sidebar {
        position: fixed;
        z-index: 1000;
        height: 100vh;
        transform: translateX(-100%);
    }
    
    #sidebar.open {
        transform: translateX(0);
    }
    
    main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    #page-title {
        font-size: 1.5rem;
    }
    
    #page-subtitle {
        font-size: 0.75rem;
    }
    
    .search-input {
        display: none;
    }
}

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* 懸停效果 */
.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* 焦點樣式 */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.3);
}

/* 自定義滾動條 */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
