/* Header */

.helpdocs-header-controls {
    display: flex;
    align-items: center;
    gap: 40px;
}

.helpdocs-active-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpdocs-toggle-label {
    font-weight: 600;
}

.helpdocs-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.helpdocs-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.helpdocs-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.helpdocs-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .helpdocs-slider {
    background-color: var(--helpdocs-color-header-bg);
}

input:focus + .helpdocs-slider {
    box-shadow: 0 0 1px var(--helpdocs-color-header-bg);
}

input:checked + .helpdocs-slider:before {
    transform: translateX(18px);
}

#helpdocs-saved-success {
    margin-left: 10px;
    color: green;
    font-weight: bold;
}

#helpdocs-inactive-notice {
    display: none;
    background: linear-gradient(90deg, #dc3545 0%, #b02a37 100%);
    color: #ffffff;
    padding: 5px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.25);
}

/* Container */

.helpdocs-full-width-box {
    padding: 30px 20px;
}

/* Instructions */

.helpdocs-instructions {
    margin-top: 0;
}

/* Fields */

#helpdocs_title_container {
    margin-bottom: 1rem;
}

#helpdocs_title_container,
#helpdocs_website_url_container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#helpdocs_title_container label,
#helpdocs_website_url_container label {
    font-weight: 600;
}

#helpdocs_title_container input,
#helpdocs_website_url_container input {
    width: 400px;
    max-width: 400px;
}

#helpdocs_url_field {
    display: flex;
    gap: 10px;
}

#helpdocs_fetch_remote_docs.helpdocs-button {
    padding: 8px 12px !important;
}

#helpdocs_tablenav_top .alignleft.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

#helpdocs_tablenav_top .helpdocs-all-checkbox {
    margin-left: 20px;
}

.helpdocs-all-checkbox {
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.helpdocs-all-checkbox input {
    margin: 0 8px 0 0 !important;
}

#helpdocs_imports_table input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#helpdocs_imports_table input:disabled + strong {
    color: #646970;
}

.helpdocs-api-key-container { position: relative; display: inline-block; }
.helpdocs-toggle-visibility {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #72777c;
}
.helpdocs-toggle-visibility:hover { color: #2271b1; }

/* Version Notice */

.helpdocs_warning_notice,
.helpdocs_error_notice {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
}

.helpdocs_warning_notice {
    border-left: 4px solid #ffc107;
    background: #fff3cd;
}

.helpdocs_error_notice {
    border-left: 4px solid #dc3545;
    background: #fbeaea;
}

/* Table */

#helpdocs_remote_docs_wrapper,
#helpdocs_no_docs_found,
.helpdocs_warning_notice,
.helpdocs_error_notice {
    margin-top: 2rem;
}

#helpdocs_import_form {
    margin-top: 2rem;
}

#helpdocs_import_form .tablenav {
    margin: 10px 0;
}

#helpdocs_imports_table td .feed-checkbox {
    margin: 0 0 0 8px;
}

#helpdocs_imports_table th.column-feed { width: 50px; }
#helpdocs_imports_table th.column-toc { width: 70px; }
#helpdocs_imports_table th.column-action { width: 200px; }

#helpdocs_imports_table .column-toc {
    text-align: center;
}

.helpdocs-clone-individual.button.updating-message:before {
    margin: 5px 2px 0 -2px !important;
}