/* 🔹 全局表單樣式 */
.form-label {
    font-weight: bold;
    color: #333;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.2s ease-in-out;
    min-width: 30px !important;
    /* 使用 !important 來覆蓋內聯樣式或預設樣式 */
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* 🔹 Textarea */
.custom-textarea {
    width: 100%;
    max-width: 100%;
    resize: vertical;
    min-height: 80px;
}

/* 🔹 動態條列式容器 */
.dynamic-list-container {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    background: #f9f9f9;
    margin-bottom: 20px;
}

/* 🔹 動態列表標題 */
.list-title {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

/* 🔹 動態列表表格 */
.dynamic-list-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
}

.dynamic-list-table th {
    background: #007bff;
    color: white;
    padding: 10px;
}

.dynamic-list-table td {
    padding: 8px;
}

/* 🔹 按鈕 */
.add-row-btn {
    background: #28a745;
    border: none;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.add-row-btn:hover {
    background: #218838;
}

/* 🔹 必填欄位的錯誤樣式 */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5) !important;
}

.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.75) !important;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.card-body {
    padding: 1.5rem;
}
/*
.image-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}


 
.image-upload-wrapper img {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.image-upload-wrapper button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 14px;
}

.image-upload-wrapper button:hover {
    background-color: #d32f2f;
}
*/
.image-upload-wrapper {
    display: block;
    max-width: 250px;
}
