/* 全站通用樣式 */
body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主內容區域樣式 */
.main-content {
    flex: 1;
    padding: 1.5rem 0;
}

/* 導航欄樣式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.navbar-brand {
    font-weight: 600;
}

/* 卡片樣式 */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1.5rem;
    border: none;
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 1.25rem 1.5rem;
}

.card-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0;
}

/* 表格樣式 */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

/* 按鈕樣式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #ced4da;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* 統計卡片通用樣式 */
.stats-card {
    border-radius: 10px;
    border: none;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card .stats-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #007bff;
}

.stats-card .stats-number {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stats-card .stats-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* 狀態標籤 */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 15px;
}

.badge-pending {
    background-color: #ffc107;
    color: #212529;
}

.badge-processing {
    background-color: #17a2b8;
    color: #fff;
}

.badge-shipped {
    background-color: #007bff;
    color: #fff;
}

.badge-delivered {
    background-color: #28a745;
    color: #fff;
}

.badge-cancelled {
    background-color: #dc3545;
    color: #fff;
}

/* 搜索容器 */
.search-container {
    position: relative;
}

.search-container .form-control {
    padding-right: 40px;
    border-radius: 20px;
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #6c757d;
}

/* 表單樣式 */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group label {
    font-weight: 500;
}

/* 模態框樣式 */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #f1f1f1;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f1f1f1;
    padding: 1.25rem 1.5rem;
}

/* 下拉菜單樣式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active {
    background-color: #e9f2ff;
    color: #007bff;
}

/* 分頁樣式 */
.pagination {
    margin-bottom: 0;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link {
    color: #007bff;
    border-radius: 5px;
    margin: 0 3px;
}

.pagination .page-link:hover {
    background-color: #e9f2ff;
}

/* 頁尾樣式 */
.footer {
    background-color: #fff;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

/* 通用間距調整 */
.mb-0 {
    margin-bottom: 0 !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1rem 0;
    }
}

/* 圖標和徽章通用樣式 */
.section-title {
    margin-bottom: 1.5rem;
    font-weight: 600;
} 