/* 當前階段資訊樣式 */
.current-stage-info {
    background-color: rgba(13, 110, 253, 0.05);
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.stage-status-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-stage-badge {
    font-weight: 500;
    color: #0d6efd;
}

.current-task-status {
    color: #495057;
    font-weight: 500;
    background-color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

/* 進度文字樣式 */
h6 .text-primary {
    font-weight: 500;
    font-size: 1rem;
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

/* 確保這個樣式優先級更高 */
.form-check[style*="width"] {
    width: 200px !important;
}

/* 日期輸入欄位樣式 */
.date-input {
    width: 150px !important;
    text-align: center;
    margin: 0 10px;
    font-size: 0.875rem !important;
    color: #6c757d !important;
    padding: 0.25rem 0.5rem;
    height: calc(1.5em + 0.5rem + 2px);
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.date-input:focus {
    background-color: #fff;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 日期資訊文字樣式 */
.date-info-text {
    color: #6c757d;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0.8;
    margin-left: 1rem;  /* 增加左側間距 */
}

/* 警告提示樣式 */
.date-warning {
    color: #dc3545;
    font-size: 0.875rem;
    display: none;
}

/* 收合指示圖標樣式 */
.toggle-icon {
    transition: transform 0.3s ease;
}

.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* 可點擊的卡片標題 */
.card-header[role="button"] {
    cursor: pointer;
}

/* 完成狀態的卡片樣式 */
.card.border-success .card-header {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.card.border-success {
    border-color: #198754 !important;
}

/* 勾選項目的刪除線效果 */
.form-check-input:checked + .form-check-label {
    text-decoration: line-through;
    color: #6c757d;
}

/* 專案內容容器樣式 */
.project-content-wrapper {
    max-width: 800px;
}

.project-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
    background-color: rgba(248, 249, 250, 0.8);
    border-left: 3px solid #dee2e6;
    border-radius: 0 4px 4px 0;
    white-space: pre-line;
}

/* 滑鼠懸停效果 */
.project-content:hover {
    background-color: rgba(248, 249, 250, 1);
    border-left-color: #6c757d;
}

/* 進度百分比樣式 */
.progress-percentage {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: rgba(13, 110, 253, 0.1);
}

.progress-percentage .display-6 {
    font-size: 1.75rem;
    line-height: 1;
}

/* 進度條動畫效果 */
.progress-bar {
    background-image: linear-gradient(45deg,
        rgba(255,255,255,.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,.15) 50%,
        rgba(255,255,255,.15) 75%,
        transparent 75%,
        transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

/* 固定底部保存按鈕區域樣式 */
.position-fixed.bottom-0 {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* 保存按鈕懸浮效果 */
.position-fixed.bottom-0 .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

/* 保存按鈕點擊效果 */
.position-fixed.bottom-0 .btn-primary:active {
    transform: translateY(0);
}

/* 輸入框基本樣式 */
.input-base {
    background-color: #fff !important;
}

/* 固定寬度類別 */
.form-check-width {
    width: 200px !important;
}

.input-width {
    width: 150px !important;
}

/* 輸入框容器 */
.date-input-container {
    opacity: 0.8;
    width: 150px !important;
    margin-right: 0.5rem;  /* 增加右側間距 */
}

/* 可伸展的輸入框容器 */
.input-container-fluid {
    flex-grow: 1 !important;
}

.bottom-spacing {
    height: 70px;
}

/* 卡片標題容器 */
.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* 標題左側區域 */
.stage-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 標題右側區域 */
.stage-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 常用的 flex 布局組合 */
.flex-center {
    display: flex;
    align-items: center;
}

/* 統一的間距類別 */
.section-spacing {
    margin-bottom: 1.5rem;  /* 等同於 mb-4 */
}

.item-spacing {
    margin-bottom: 1rem;    /* 等同於 mb-3 */
}

/* 團隊成員資訊樣式 */
.d-flex.align-items-center.gap-4 {
    gap: 0.75rem !important;  /* 減少間距，原本是 1.5rem (gap-4) */
}

/* 內部團隊成員之間的間距 */
.d-flex.align-items-center.gap-3 {
    gap: 0.5rem !important;  /* 減少間距，原本是 1rem (gap-3) */
}

/* 業務管理和負責業務的行距 */
.text-muted.small.mb-3 {
    margin-bottom: 0.25rem !important;  /* 更進一步減少下方間距，從 0.5rem 改為 0.25rem */
}

/* 專案管理資訊容器的間距 */
.d-flex.align-items-center.gap-4.text-muted.small.mb-3 {
    margin-bottom: 0.25rem !important;  /* 確保容器也使用相同的間距 */
} 