/* 模態框樣式 */
#almighty-believers-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.almighty-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-radius: 5px;
}

.almighty-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.almighty-modal-close:hover,
.almighty-modal-close:focus {
    color: black;
    text-decoration: none;
}

/* 表單樣式 */
.almighty-believers-list {
    margin-top: 20px;
}

.believer-item {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.believer-field {
    margin-bottom: 10px;
}

.believer-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.believer-field input,
.believer-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff !important;
}

.depends-person {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fff;
}

/* 按鈕樣式 */
.almighty-edit-button {
    margin-top: 5px;
    background-color: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
    cursor: pointer !important;
    display: inline-block !important;
    padding: 5px 10px !important;
}

.almighty-edit-button:hover {
    background-color: #e7e7e7;
}

.almighty-modal-actions {
    margin-top: 20px;
    text-align: right;
}

.almighty-save-button {
    background-color: #4CAF50;
    color: white;
    margin-right: 10px;
}

.almighty-save-button:hover {
    background-color: #45a049;
}

.almighty-cancel-button {
    background-color: #f44336;
    color: white;
}

.almighty-cancel-button:hover {
    background-color: #d32f2f;
}

/* 載入中樣式 */
.almighty-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* 確保模態框在所有其他元素之上 */
#almighty-believers-modal {
    z-index: 999999 !important;
}