/* Modern Admin Styles */
.qkllmstxt-txt-settings {
    display: flex;
    border-radius: 8px;
    gap: 10px;
    margin-top: 30px;

}

.qkllmstxt-txt-auto-options,
.manual-fields-sections {
    display: none;
}

.qkllmstxt-txt-container {
    display: flex;
    gap: 25px;
}

.qkllmstxt-txt-main {
    flex: 1.5;
    min-width: 0;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qkllmstxt-txt-sidebar {
    flex: 1;
    min-width: 0;
}

/* Mode Selector Cards */
.qkllmstxt-txt-mode-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.qkllmstxt-txt-mode-option {
    position: relative;
}

.qkllmstxt-txt-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.qkllmstxt-txt-mode-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qkllmstxt-txt-mode-option input[type="radio"]:checked+.qkllmstxt-txt-mode-card {
    border-color: #4f46e5;
    background-color: #f8fafc;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
}

.qkllmstxt-txt-mode-card .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #4f46e5;
    background: #eef2ff;
    padding: 10px;
    border-radius: 50%;
}

.qkllmstxt-txt-mode-card h4 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 18px;
}

.qkllmstxt-txt-mode-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Auto Options Grid */
.qkllmstxt-txt-auto-options {
    margin-bottom: 25px;
}

.qkllmstxt-txt-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.qkllmstxt-txt-option-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.qkllmstxt-txt-option-grid label:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
}

.qkllmstxt-txt-option-grid input[type="checkbox"] {
    margin: 0;
}

.qkllmstxt-txt-option-grid .dashicons {
    color: #4f46e5;
}

/* Manual Fields */
.qkllmstxt-txt-manual-fields {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

/* Sections Styling */
.qkllmstxt-txt-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.qkllmstxt-txt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    background: #4f46e5;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.qkllmstxt-txt-section-header h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    padding: 5px 0px;
}

.qkllmstxt-txt-field label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #334155;
    font-size: 14px;
}

.qkllmstxt-txt-field input[type="text"],
.qkllmstxt-txt-field input[type="url"],
.qkllmstxt-txt-field textarea {
    width: 100%;
    padding: 0px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #ffffff;
    transition: border-color 0.2s;
}
.qkllmstxt-txt-field .heading-name{
    width: 50% !important;
        margin: 15px;
        background: #dddddd !important;
}
.qkllmstxt-txt-field input[type="text"]:focus
.qkllmstxt-txt-field input[type="url"]:focus,
.qkllmstxt-txt-field textarea:focus {
    border-color: #a5b4fc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(199, 210, 254, 0.5);
}

.qkllmstxt-txt-links-container {
    margin-bottom: 15px;
}

.qkllmstxt-txt-link {
    background: #ededed;
    padding: 2px;
    border-radius: 0 4px 4px 0;
    position: relative;
}

.qkllmstxt-txt-link-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 5px;
        width: 96%;
}

/* Buttons */
.qkllmstxt-txt-remove-link,
.qkllmstxt-txt-remove-section {
    color: #dc2626;
    background: #ffd9d9;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 4px;
    position: absolute;
    right: 0;
    top: 4px;
}
.qkllmstxt-txt-remove-link.first-btn{
top: 26px;
}
.qkllmstxt-txt-option-separator{
    font-weight: 600;
    color: #334155;
    margin: 15px 0 5px;
    padding-top: 10px;
    border-top: 2px dashed #e2e8f0;
}
.qkllmstxt-txt-remove-section{
        top: 2px;
    position: absolute;
    right: 3px;
    width: 30px;
    border-radius: 15%;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    background-color: #fff;
}
.qkllmstxt-txt-remove-link:hover,
.qkllmstxt-txt-remove-section:hover {
    background: #fee2e2;
}

.qkllmstxt-txt-add-link,
#qkllmstxt_txt_add_section {
    background: #30992f;
    color: white;
    border: none;
      padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
        float: inline-end;
    margin: 2px;
    cursor: pointer;
}
.qkllmstxt-txt-section-body{
    padding: 0 6px;
}
.button.qkllmstxt-txt-add-link:hover,
#qkllmstxt_txt_add_section:hover {
    background: #4338ca;
}
.qkllmstxt-menual-fields-gen label{
    display: block;
    
}
.qkllmstxt-menual-fields-gen{
    margin-bottom: 10px;
}
.qkllmstxt-menual-fields-gen .regular-text, .qkllmstxt-menual-fields-gen .large-text{
    width: 99%;
   border:  1px solid #c9c9c9;
}
/* Preview Box */
.qkllmstxt-txt-preview {
    background: white;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.qkllmstxt-txt-preview h3 {
    margin-top: 0;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    margin: 5px;
}

.qkllmstxt-txt-preview-content {
    max-height: 500px;
    overflow: auto;
    background: #1a1e32;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
}

/* width */
.qkllmstxt-txt-preview-content::-webkit-scrollbar {
    width: 8px;
}

/* Track */
.qkllmstxt-txt-preview-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.qkllmstxt-txt-preview-content::-webkit-scrollbar-thumb {
    background: #888;
}

.qkllmstxt-txt-actions {
    margin-top: 15px;
}

.qkllmstxt-txt-preview-content pre {
    font-size: 12px;
    font-weight: 400;
}

.qkllmstxt-txt-actions .button,
.qkllmstxt-txt-main input[type=submit] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #4f46e5;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.qkllmstxt-txt-actions .button:hover {
    background: #4338ca;
}

/* Info Box */
.qkllmstxt-txt-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.qkllmstxt-txt-info h3 {
    margin-top: 0;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.qkllmstxt-txt-info p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.qkllmstxt-txt-info pre {
    background: #f8fafc;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .qkllmstxt-txt-container {
        flex-direction: column;
    }
}