/* BF Secret File Downloader - 設定ページ管理画面スタイル */

.bf-directory-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bf-directory-path {
    flex: 1;
}

.bf-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.bf-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 70%;
    max-width: 800px;
    height: 70%;
    display: flex;
    flex-direction: column;
}

.bf-modal-header {
    padding: 20px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bf-modal-header h3 {
    margin: 0;
}

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

.bf-modal-close:hover,
.bf-modal-close:focus {
    color: black;
}

.bf-modal-body {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bf-directory-navigation {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bf-directory-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    background-color: #fff;
}

#bf-directory-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bf-directory-item-list {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-directory-item-list:hover {
    background-color: #f0f0f0;
}

.bf-directory-item-list.selected {
    background-color: #0073aa;
    color: white;
}

.bf-directory-icon {
    font-size: 16px;
    width: 20px;
}

.bf-modal-footer {
    padding: 20px;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
    text-align: right;
}

.bf-modal-footer .button {
    margin-left: 10px;
}

.bf-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* WordPress標準のエラーフィールドスタイル */
.form-field-error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 2px rgba(220, 50, 50, .8) !important;
}

.form-field-error:focus {
    border-color: #dc3232 !important;
    box-shadow: 0 0 2px rgba(220, 50, 50, .8) !important;
}