/* static/css/style.css */

/* 全局樣式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 頁腳固定在底部 */
.footer {
    margin-top: auto;
}

/* 卡片樣式增強 */
.card {
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 統計卡片樣式 */
.card-body h2 {
    font-weight: bold;
    color: #333;
}

/* 按鈕樣式 */
.btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* 表格樣式 */
.table {
    border-radius: 8px;
    overflow: hidden;
}

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

/* 表單樣式 */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 導航欄樣式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Flash 消息動畫 */
.alert {
    animation: slideDown 0.3s ease;
}

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

/* 響應式調整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    h1.display-4 {
        font-size: 2rem;
    }
}

/* 載入動畫（未來使用） */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* 刪除確認模態框樣式 */
.modal-content {
    border-radius: 10px;
}

/* 禁用狀態樣式 */
.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 工具提示樣式 */
.text-truncate {
    max-width: 300px;
}
