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

main {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}

/* 卡片樣式優化 */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

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

/* 表格美化 */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* 進度條樣式 */
.progress {
    height: 2rem;
    font-size: 1rem;
    font-weight: bold;
}

/* 截斷超長文本 */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 結果卡片自定義樣式 */
.result-card {
    margin-bottom: 1.5rem;
}

.result-card .card-header {
    font-weight: bold;
}

/* 分析詳情 pre 標籤樣式 */
pre {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 加載指示器容器 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* 自適應調整 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
}