/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

/* ==========================================================================
   GENERAL SETTINGS PAGE STYLES
   ========================================================================== */

/* Rocketship SEO Meta Box Styles */
.rocketship-seo-meta-box {
    padding: 10px 0;
}

.rocketship-seo-meta-box p {
    margin-bottom: 15px;
}

.rocketship-seo-meta-box label {
    display: block;
    font-weight: 600;
    /* margin-bottom: 5px; */
}

.rocketship-seo-meta-box input[type="text"],
.rocketship-seo-meta-box textarea {
    width: 100%;
    max-width: 100%;
}

.rocketship-seo-meta-box .description {
    font-style: italic;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.rocketship-seo-meta-box input[type="checkbox"] {
    margin-right: 8px;
}

/* ==========================================================================
   ENHANCED FORM STYLING
   ========================================================================== */

/* Main settings container */
.rocketship-seo-settings {
    background: #f1f1f1;
    padding: 20px 0;
}

.rocketship-seo-settings .wrap {
    background: #f1f1f1;
}

/* Page title styling */
.rocketship-seo-settings h1 {
    color: #1d2327;
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form container */
 

/* Form section headers and descriptions */
.rocketship-seo-settings form h2, 
.rocketship-seo-settings form p {
    padding-left: 20px;
}

/* Form sections */
.rocketship-seo-settings .form-table {
    background: #fff;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

/* Section headers */
.rocketship-seo-settings .form-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 25px;
    vertical-align: top;
    width: 220px;
    position: relative;
}

.rocketship-seo-settings .form-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Form cells */
.rocketship-seo-settings .form-table td {
    padding: 25px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: top;
    background: #fff;
    position: relative;
}

.rocketship-seo-settings .form-table tr:hover td {
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Input field styling */
.rocketship-seo-settings input[type="text"],
.rocketship-seo-settings input[type="url"],
.rocketship-seo-settings select,
.rocketship-seo-settings textarea {
    border: 2px solid #e2e4e7;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.rocketship-seo-settings input[type="text"]:focus,
.rocketship-seo-settings input[type="url"]:focus,
.rocketship-seo-settings select:focus,
.rocketship-seo-settings textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.rocketship-seo-settings input[type="text"].regular-text,
.rocketship-seo-settings input[type="url"] {
    width: 100%;
    max-width: 500px;
}

/* Checkbox styling */
.rocketship-seo-settings input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #667eea;
    cursor: pointer;
}

.rocketship-seo-settings .form-table td label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #1d2327;
    cursor: pointer;
    font-size: 15px;
}

/* Description text */
.rocketship-seo-settings .description {
    color: #646970;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
    font-style: normal;
}

/* ==========================================================================
   UPLOAD BUTTON & PREVIEW STYLES
   ========================================================================== */

/* Upload field container */
.upload-field-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.upload-field-container input[type="url"] {
    flex: 1;
    min-width: 300px;
}

/* Upload button styling */
.rocketship-upload-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.rocketship-upload-button::before {
    content: '📁';
    margin-right: 8px;
    font-size: 16px;
}

.rocketship-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.rocketship-upload-button:active {
    transform: translateY(0);
}

/* Image preview container */
.image-preview {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    /* display: inline-block; */
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border: 3px solid #fff;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
    display: block;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-preview img:hover {
    transform: scale(1.05);
}

.image-preview .remove-image {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-preview .remove-image:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* ==========================================================================
   SELECT & DROPDOWN STYLING
   ========================================================================== */

.rocketship-seo-settings select {
    min-width: 250px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

/* ==========================================================================
   SUBMIT BUTTON STYLING
   ========================================================================== */

.rocketship-seo-settings .submit {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    margin: 0;
}

.rocketship-seo-settings .submit .button-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rocketship-seo-settings .submit .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

/* Form table submit adjustments */
table.form-table+input+input+p.submit, table.form-table+input+p.submit, table.form-table+p.submit {
    border-top: none;
    padding-top: 20px;
}

/* ==========================================================================
   INFORMATION BOXES
   ========================================================================== */

.rocketship-seo-settings .postbox {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e4e7;
    overflow: hidden;
    max-width: none;
}

.rocketship-seo-settings .postbox .inside {
    padding: 30px;
}

.rocketship-seo-settings .postbox h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d2327;
    font-size: 1.4em;
    font-weight: 600;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.rocketship-seo-settings .postbox h4 {
    color: #495057;
    font-size: 1.1em;
    font-weight: 600;
    margin: 25px 0 15px 0;
    position: relative;
    padding-left: 20px;
}

.rocketship-seo-settings .postbox h4::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 12px;
}

.rocketship-seo-settings .postbox ul {
    margin: 15px 0;
    padding-left: 0;
}

.rocketship-seo-settings .postbox li {
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 0 6px 6px 0;
    list-style: none;
}

.rocketship-seo-settings .postbox strong {
    color: #1d2327;
    font-weight: 600;
}

/* ==========================================================================
   SITEMAP SPECIFIC STYLES
   ========================================================================== */

.rocketship-sitemap-urls h4 {
    margin: 25px 0 15px 0;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}

.rocketship-sitemap-urls h4:first-child {
    margin-top: 0;
}

.rocketship-individual-sitemaps {
    margin: 20px 0;
}

.rocketship-individual-sitemaps .sitemap-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rocketship-individual-sitemaps .sitemap-item input[type="text"] {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
}

.rocketship-individual-sitemaps .sitemap-item .button {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.rocketship-individual-sitemaps .sitemap-item .button:hover {
    background: #5a6268;
}

/* ==========================================================================
   SEO TOOLS TABLE STYLING
   ========================================================================== */

.rocketship-seo-settings .wp-list-table {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rocketship-seo-settings .wp-list-table th,
.rocketship-seo-settings .wp-list-table td {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.rocketship-seo-settings .wp-list-table th:first-child,
.rocketship-seo-settings .wp-list-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.rocketship-seo-settings .wp-list-table thead th {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

/* Quick action buttons */
.rocketship-seo-settings .button {
    margin-right: 12px;
    margin-bottom: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.rocketship-seo-settings .button:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   ADMIN MENU ICON
   ========================================================================== */

#adminmenu .toplevel_page_rocketship-seo .wp-menu-image img {
    width: 20px;
    height: 20px;
    padding: 7px 0;
    opacity: 0.6;
}

#adminmenu .toplevel_page_rocketship-seo:hover .wp-menu-image img,
#adminmenu .toplevel_page_rocketship-seo.current .wp-menu-image img {
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media screen and (max-width: 782px) {
    .rocketship-seo-settings h1 {
        font-size: 1.8em;
    }
    
    .rocketship-seo-settings .form-table th,
    .rocketship-seo-settings .form-table td {
        display: block;
        width: 100%;
        padding: 20px;
    }
    
    .rocketship-seo-settings .form-table th {
        border-bottom: none;
        border-radius: 8px 8px 0 0;
    }
    
    .rocketship-seo-settings .form-table td {
        border-radius: 0 0 8px 8px;
        margin-bottom: 20px;
    }
    
    .rocketship-seo-settings input[type="text"].regular-text,
    .rocketship-seo-settings input[type="url"] {
        width: 100%;
        max-width: 100%;
    }
    
    .upload-field-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-field-container input[type="url"] {
        min-width: 100%;
    }
    
    .rocketship-upload-button {
        width: 100%;
        text-align: center;
    }
    
    .image-preview {
        width: 100%;
        text-align: center;
    }
    
    .rocketship-seo-settings .wp-list-table th,
    .rocketship-seo-settings .wp-list-table td {
        text-align: left;
        padding: 12px;
    }
    
    .rocketship-seo-settings .button {
        display: block;
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
    }
    
    .rocketship-individual-sitemaps .sitemap-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rocketship-individual-sitemaps .sitemap-item .button {
        margin-top: 10px;
    }
}

/* ==========================================================================
   AI TOOLS PAGE STYLES
   ========================================================================== */

/* Postbox handle styling for drag functionality */
.js .postbox .hndle, 
.js .widget .widget-top {
    cursor: move;
    margin-left: 20px;
}

/* Large button styling */
.wp-core-ui .button-group.button-large .button, 
.wp-core-ui .button.button-large {
    min-height: 32px;
    line-height: 2.30769231;
    padding: 0 12px;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* SEO Analysis form styling */
form#seo-analysis-form {
    padding: 20px;
}

/* AI Tools specific enhancements */
.rocketship-seo-settings .bulk-options {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rocketship-seo-settings .bulk-options h3 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.rocketship-seo-settings .filter-options {
    margin-bottom: 20px;
}

.rocketship-seo-settings .filter-options label {
    display: block;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e2e4e7;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.rocketship-seo-settings .filter-options label:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateX(4px);
}

.rocketship-seo-settings .filter-options label:has(input:checked) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    color: #1565c0;
    font-weight: 600;
}

.rocketship-seo-settings .filter-options input[type="radio"] {
    margin-right: 12px;
    accent-color: #667eea;
    transform: scale(1.2);
}

.rocketship-seo-settings .filter-options select {
    margin-left: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 6px 10px;
    background: #fff;
    font-size: 14px;
}

.rocketship-seo-settings .manual-selection {
    border-top: 3px solid #dee2e6;
    padding-top: 25px;
    margin-top: 25px;
}

.rocketship-seo-settings .manual-selection h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 15px;
}

.rocketship-seo-settings .manual-selection select {
    border: 2px solid #e2e4e7;
    border-radius: 8px;
    padding: 12px 16px;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.rocketship-seo-settings .manual-selection select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.rocketship-seo-settings .analysis-options {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rocketship-seo-settings .analysis-options h3 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

/* Suggestion items styling */
.suggestion-item {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ebeef2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.suggestion-item h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
}

.suggestions {
    margin: 15px 0;
}

.suggestion-option {
    padding: 16px;
    margin: 8px 0;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #ebeef2;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.suggestion-option:hover {
    background-color: #fff;
    border-color: #0073aa;
}

.suggestion-option.selected {
    background-color: #fff;
    border-color: #0073aa;
    color: #0073aa;
}

.apply-buttons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.apply-buttons .button {
    padding: 8px 24px;
    height: auto;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-buttons .button-primary {
    background: #10b981;
    color: #fff;
}

.apply-buttons .button-primary:hover {
    background: #059669;
}

.apply-buttons .button-secondary {
    background: #64748b;
    color: #fff;
}

.apply-buttons .button-secondary:hover {
    background: #475569;
}

/* Results Sections */
#bulk-title-results,
#bulk-description-results {
    margin-top: 30px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #ebeef2;
}

#bulk-title-results h3,
#bulk-description-results h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 500;
}

/* Loading State */
.generating-suggestions {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin: 15px 0;
}

.generating-suggestions .spinner {
    float: none;
    margin: 0 10px 0 0;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .suggestion-option {
        padding: 12px;
    }
    
    .apply-buttons {
        flex-direction: column;
    }
    
    .apply-buttons .button {
        width: 100%;
        text-align: center;
    }
    
    #bulk-title-results,
    #bulk-description-results {
        padding: 16px;
    }
}

/* TOC Settings Styles */
.toc-settings-group {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

/* Color Settings */
.toc-color-settings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.toc-color-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.toc-color-settings label:hover {
    background: #e9ecef;
}

.toc-color-settings input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Font Size Settings */
.toc-font-settings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.toc-font-settings label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.toc-font-settings label:hover {
    background: #e9ecef;
}

.toc-font-settings input[type="number"] {
    width: 70px;
    padding: 5px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

/* Border Style Settings */
.toc-border-settings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.toc-border-settings label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.toc-border-settings label:hover {
    background: #e9ecef;
}

.toc-border-settings select {
    width: 120px;
    padding: 5px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}

.toc-border-settings input[type="number"] {
    width: 70px;
    padding: 5px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

/* Width Settings */
.toc-width-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.toc-width-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-width-settings input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.toc-width-settings select {
    width: 60px;
    padding: 5px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}

/* Spacing Settings */
.toc-spacing-settings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.toc-spacing-settings label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.toc-spacing-settings label:hover {
    background: #e9ecef;
}

.toc-spacing-settings input[type="number"] {
    width: 70px;
    padding: 5px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

/* Input Focus States */
.toc-color-settings input[type="color"]:focus,
.toc-font-settings input[type="number"]:focus,
.toc-border-settings input[type="number"]:focus,
.toc-border-settings select:focus,
.toc-width-settings input[type="number"]:focus,
.toc-width-settings select:focus,
.toc-spacing-settings input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Help Text */
.toc-settings-help {
    color: #6c757d;
    font-size: 13px;
    margin-top: 5px;
    font-style: italic;
}

/* Preview Section */
.toc-preview {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.toc-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .toc-color-settings,
    .toc-font-settings,
    .toc-border-settings,
    .toc-spacing-settings {
        grid-template-columns: 1fr;
    }

    .toc-width-settings {
        flex-direction: column;
        align-items: flex-start;
    }

    .toc-width-settings label {
        width: 100%;
    }

    input[type="number"],
    select {
        font-size: 16px; /* Prevent zoom on mobile */
    }
}