/* 店鋪管理系統 - 自定義樣式 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* 導航欄 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* 卡片 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f8f9fa;
    font-weight: 600;
}

/* 表格 */
.table {
    background-color: white;
}

.table thead {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* 按鈕 */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

/* 表單 */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 徽章 */
.badge {
    padding: 0.35rem 0.65rem;
    font-weight: 500;
}

/* 統計卡片 */
.stat-card {
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    margin-bottom: 1rem;
}

.stat-card h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* 側邊欄 */
.sidebar {
    min-height: 100vh;
    background-color: #343a40;
    color: white;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.75);
    padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: var(--primary-color);
}

/* 分頁 */
.pagination {
    margin-top: 2rem;
}

/* 載入動畫 */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 警報 */
.alert {
    border-radius: 5px;
    border: none;
}

/* 圖片 */
.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .stat-card h2 {
        font-size: 2rem;
    }
}

/* 登入頁面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
}

/* 頁尾 */
footer {
    background-color: #f8f9fa;
    margin-top: auto;
}

/* 工具提示 */
.tooltip {
    font-size: 0.875rem;
}

/* 進度條 */
.progress {
    height: 1.5rem;
    border-radius: 5px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

