/* 全域樣式 */
body {
    font-family: "Microsoft JhengHei", "微軟正黑體", "Heiti TC", "黑體-繁", sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 頁首樣式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
}

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

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

/* 內容區樣式 */
.container {
    flex: 1;
}

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

/* 卡片樣式 */
.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

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

.card-header {
    padding: 1rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

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

/* 按鈕樣式 */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1.5rem;
}

/* 案件狀態徽章樣式 */
.badge-status {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
}

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

.status-in-progress {
    background-color: #0dcaf0;
    color: #212529;
}

.status-completed {
    background-color: #198754;
    color: #fff;
}

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

/* 簽名區塊 */
.signature-pad {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

.signature-pad canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    background-color: #fff;
    cursor: crosshair;
    touch-action: none;
}

/* 報價單與合約表格樣式 */
.quote-table, .contract-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.quote-table th, .quote-table td,
.contract-table th, .contract-table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.quote-table th, .contract-table th {
    background-color: #f8f9fa;
}

/* 登入頁面樣式 */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

/* 訊息提示樣式 */
.alert {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .text-md-end {
        text-align: left !important;
    }
    
    footer p {
        margin-bottom: 0.5rem !important;
    }
} 