/* Main Container - Black & Yellow Theme */
#wfm-container {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 25px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#wfm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

    #wfm-header h1 {
        color: #ffd700;
        margin: 0;
        font-size: 24px;
    }

/* Buttons */
.wfm-btn, #wfm-container button {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    #wfm-container button:hover {
        background-color: #e6c300;
        transform: translateY(-2px);
    }

/* Folder/File Lists */
#wfm-folder-list-container h2, .wfm-modal-content h2 {
    color: #f0f0f0;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

#wfm-folder-list, #wfm-file-list {
    margin-top: 20px;
}

.wfm-folder-item, .wfm-file-item {
    background-color: #2b2b2b;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ffd700;
    transition: background-color 0.2s;
}

    .wfm-folder-item:hover {
        background-color: #3c3c3c;
    }

.wfm-item-name {
    font-weight: bold;
    word-break: break-all;
}

.wfm-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    margin-left: 15px;
}

    .wfm-item-actions button {
        padding: 8px 12px;
    }

.wfm-delete-btn, .wfm-delete-btn-confirm {
    background-color: #e74c3c;
    color: white;
}

    .wfm-delete-btn:hover, .wfm-delete-btn-confirm:hover {
        background-color: #c0392b;
    }

.wfm-forgot-passkey-btn {
    background: none;
    color: #ffd700;
    text-decoration: underline;
    font-size: 12px;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

    .wfm-forgot-passkey-btn:hover {
        color: #fff;
        background: none;
        transform: none;
    }

/* Modals */
.wfm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wfm-modal-content {
    background-color: #2b2b2b;
    margin: 10% auto;
    padding: 30px;
    border-top: 5px solid #ffd700;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    color: #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideIn 0.4s;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wfm-modal-content.wfm-modal-large {
    max-width: 800px;
}

.wfm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

    .wfm-modal-close:hover, .wfm-modal-close:focus {
        color: #ffd700;
        text-decoration: none;
        cursor: pointer;
        transform: scale(1.1);
    }

/* Forms */
#wfm-container form, .wfm-modal-content form {
    display: flex;
    flex-direction: column;
}

#wfm-container label, .wfm-modal-content label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ffd700;
}

#wfm-container input[type="text"], #wfm-container input[type="password"], #wfm-container input[type="file"],
.wfm-modal-content input[type="text"], .wfm-modal-content input[type="password"] {
    padding: 12px;
    background-color: #333;
    border: 1px solid #555;
    color: #f0f0f0;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

#wfm-container form button, .wfm-modal-content form button {
    margin-top: 20px;
}

#wfm-container input[type="file"] {
    background-color: #444;
}

.wfm-passkey-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .wfm-passkey-wrapper input {
        padding-right: 65px;
    }

    .wfm-passkey-wrapper .wfm-show-passkey {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        padding: 0 10px;
        height: 80%;
        background: #444;
        color: #ffd700;
        border-radius: 4px;
        font-size: 12px;
        min-width: 55px;
    }

        .wfm-passkey-wrapper .wfm-show-passkey:hover {
            background: #555;
        }

/* Response Messages */
#wfm-response-message {
    padding: 15px;
    margin: 0 0 20px 0;
    border-radius: 5px;
    display: none;
    color: white;
    text-align: center;
}

    #wfm-response-message.success {
        background-color: #27ae60;
    }

    #wfm-response-message.error {
        background-color: #e74c3c;
    }

/* Progress Bar */
#wfm-progress-container {
    margin-top: 15px;
    width: 100%;
    background-color: #444;
    border-radius: 5px;
    overflow: hidden;
}

.wfm-progress-bar {
    width: 100%;
    position: relative;
}

.wfm-progress-bar-fill {
    height: 25px;
    width: 0%;
    background-color: #ffd700;
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

.wfm-progress-bar-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

/* AI Status Indicator Styles */
.wfm-ai-status {
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: capitalize;
    white-space: nowrap;
}

.wfm-ai-status-queued {
    background-color: #3498db;
    color: white;
}

.wfm-ai-status-processing {
    background-color: #f39c12;
    color: white;
}

.wfm-ai-status-completed {
    background-color: #27ae60;
    color: white;
}

.wfm-ai-status-failed {
    background-color: #c0392b;
    color: white;
}

/* Styles for Admin Monitor Page */
.wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ** NEW **: Search Bar Styles */
.wfm-search-wrapper {
    margin-bottom: 20px;
}

#wfm-folder-search-input {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 1px solid #555;
    color: #f0f0f0;
    border-radius: 4px;
    box-sizing: border-box;
}
