/* ================= JSON & CODE TOOLS - MASTER CSS ================= */

/* Root Variables - Using admin panel colors */
:root {
    --primary: var(--main-color);
    --primary-hover: color-mix(in srgb, var(--main-color), black 15%);
    --card-bg: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.25s ease;
}

/* Dark Mode Variables */
body.dark {
    --card-bg: #1e293b;
    --bg-light: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

/* ================= JSON FORMATTER PRO TOOL ================= */
.json-formatter-page .json-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.json-formatter-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.json-formatter-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.json-formatter-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.json-formatter-page .file-upload-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.json-formatter-page .file-upload-btn:hover {
    background: var(--border-color);
}

.json-formatter-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.json-formatter-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.json-formatter-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.json-formatter-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.json-formatter-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.json-formatter-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.json-formatter-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.json-formatter-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.json-formatter-page .btn-primary:hover {
    background: var(--primary-hover);
}

.json-formatter-page .btn-secondary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.json-formatter-page .btn-secondary:hover {
    background: var(--border-color);
}

.json-formatter-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.json-formatter-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.json-formatter-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.json-formatter-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.json-formatter-page .panel-actions {
    display: flex;
    gap: 8px;
}

.json-formatter-page .panel-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.json-formatter-page .panel-actions button:hover {
    color: var(--primary);
}

.json-formatter-page .editor-wrapper {
    padding: 16px;
}

.json-formatter-page .json-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.json-formatter-page .json-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.json-formatter-page .error-display {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 12px;
    display: none;
    border-top: 1px solid var(--border-color);
}

.json-formatter-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.json-formatter-page .suggestion-bar {
    flex: 1;
}

.json-formatter-page .stats {
    display: flex;
    gap: 20px;
}

.json-formatter-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.json-formatter-page .input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    font-size: 13px;
    color: var(--text-main);
}

/* Headers */
.json-formatter-page header h1,
.json-formatter-page h1 {
    color: var(--primary) !important;
}

.json-formatter-page header h1 i,
.json-formatter-page h1 i {
    color: var(--primary) !important;
}

.json-formatter-page .subtitle {
    color: var(--text-muted) !important;
}

/* Instructions */
.json-formatter-page .tool-info,
.json-formatter-page .tool-instructions,
.json-formatter-page .tool-faqs {
    padding: 0 20px;
}

.json-formatter-page .tool-instructions details,
.json-formatter-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.json-formatter-page .tool-instructions summary,
.json-formatter-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.json-formatter-page .tool-instructions summary i,
.json-formatter-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .json-formatter-page .tool-instructions summary,
body.dark .json-formatter-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .json-formatter-page .tool-instructions summary i,
body.dark .json-formatter-page .tool-faqs summary i {
    color: #000000 !important;
}

.json-formatter-page .tool-instructions ul,
.json-formatter-page .tool-instructions p,
.json-formatter-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 800px) {
    .json-formatter-page .json-container {
        margin: 15px auto 0;
    }
    
    .json-formatter-page .control-bar {
        flex-direction: column;
    }
    
    .json-formatter-page .control-group {
        flex-wrap: wrap;
    }
    
    .json-formatter-page .editor-container {
        flex-direction: column;
    }
    
    .json-formatter-page .panel {
        min-width: auto;
    }
    
    .json-formatter-page .json-textarea {
        min-height: 250px;
    }
    
    .json-formatter-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .json-formatter-page .tool-info,
    .json-formatter-page .tool-instructions,
    .json-formatter-page .tool-faqs {
        padding: 0 16px;
    }
    
    .json-formatter-page .workspace-grid {
        padding: 15px;
    }
}

/* ================= JSON VALIDATOR PRO TOOL ================= */
.json-validator-page .json-validator-container {
    max-width: 1200px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.json-validator-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.json-validator-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.json-validator-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.json-validator-page .file-upload-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.json-validator-page .file-upload-btn:hover {
    background: var(--border-color);
}

.json-validator-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.json-validator-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.json-validator-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.json-validator-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.json-validator-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.json-validator-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.json-validator-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.json-validator-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.json-validator-page .btn-primary:hover {
    background: var(--primary-hover);
}

.json-validator-page .btn-secondary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.json-validator-page .btn-secondary:hover {
    background: var(--border-color);
}

.json-validator-page .editor-container.single-panel {
    margin-bottom: 20px;
}

.json-validator-page .panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.json-validator-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.json-validator-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.json-validator-page .panel-actions {
    display: flex;
    gap: 8px;
}

.json-validator-page .panel-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.json-validator-page .panel-actions button:hover {
    color: var(--primary);
}

.json-validator-page .editor-wrapper {
    padding: 16px;
}

.json-validator-page .json-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.json-validator-page .json-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.json-validator-page .validation-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-family: monospace;
}

.json-validator-page .validation-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-left: 3px solid #10b981;
}

.json-validator-page .validation-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-left: 3px solid #ef4444;
}

.json-validator-page .validation-status .status-info {
    color: var(--text-muted);
}

.json-validator-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.json-validator-page .suggestion-bar {
    flex: 1;
}

.json-validator-page .stats {
    display: flex;
    gap: 20px;
}

.json-validator-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Headers */
.json-validator-page header h1,
.json-validator-page h1 {
    color: var(--primary) !important;
}

.json-validator-page header h1 i,
.json-validator-page h1 i {
    color: var(--primary) !important;
}

.json-validator-page .subtitle {
    color: var(--text-muted) !important;
}

/* Instructions */
.json-validator-page .tool-info,
.json-validator-page .tool-instructions,
.json-validator-page .tool-faqs {
    padding: 0 20px;
}

.json-validator-page .tool-instructions details,
.json-validator-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.json-validator-page .tool-instructions summary,
.json-validator-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.json-validator-page .tool-instructions summary i,
.json-validator-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .json-validator-page .tool-instructions summary,
body.dark .json-validator-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .json-validator-page .tool-instructions summary i,
body.dark .json-validator-page .tool-faqs summary i {
    color: #000000 !important;
}

.json-validator-page .tool-instructions ul,
.json-validator-page .tool-instructions p,
.json-validator-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 800px) {
    .json-validator-page .json-validator-container {
        margin: 15px auto 0;
    }
    
    .json-validator-page .control-bar {
        flex-direction: column;
    }
    
    .json-validator-page .control-group {
        flex-wrap: wrap;
    }
    
    .json-validator-page .json-textarea {
        min-height: 300px;
    }
    
    .json-validator-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .json-validator-page .tool-info,
    .json-validator-page .tool-instructions,
    .json-validator-page .tool-faqs {
        padding: 0 16px;
    }
    
    .json-validator-page .workspace-grid {
        padding: 15px;
    }
}
/* ================= JS MINIFIER PRO TOOL ================= */
.js-minifier-page .js-minifier-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.js-minifier-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.js-minifier-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.js-minifier-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.js-minifier-page .file-upload-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.js-minifier-page .file-upload-btn:hover {
    background: var(--border-color);
}

.js-minifier-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.js-minifier-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.js-minifier-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.js-minifier-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.js-minifier-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.js-minifier-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.js-minifier-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.js-minifier-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.js-minifier-page .btn-primary:hover {
    background: var(--primary-hover);
}

.js-minifier-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.js-minifier-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.js-minifier-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.js-minifier-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.js-minifier-page .panel-actions {
    display: flex;
    gap: 8px;
}

.js-minifier-page .panel-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.js-minifier-page .panel-actions button:hover {
    color: var(--primary);
}

.js-minifier-page .editor-wrapper {
    padding: 16px;
}

.js-minifier-page .js-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.js-minifier-page .js-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.js-minifier-page .js-textarea[readonly] {
    background: var(--bg-light);
}

.js-minifier-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.js-minifier-page .suggestion-bar {
    flex: 1;
}

.js-minifier-page .stats {
    display: flex;
    gap: 20px;
}

.js-minifier-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Headers */
.js-minifier-page header h1,
.js-minifier-page h1 {
    color: var(--primary) !important;
}

.js-minifier-page header h1 i,
.js-minifier-page h1 i {
    color: var(--primary) !important;
}

.js-minifier-page .subtitle {
    color: var(--text-muted) !important;
}

/* Instructions */
.js-minifier-page .tool-info,
.js-minifier-page .tool-instructions,
.js-minifier-page .tool-faqs {
    padding: 0 20px;
}

.js-minifier-page .tool-instructions details,
.js-minifier-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.js-minifier-page .tool-instructions summary,
.js-minifier-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.js-minifier-page .tool-instructions summary i,
.js-minifier-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .js-minifier-page .tool-instructions summary,
body.dark .js-minifier-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .js-minifier-page .tool-instructions summary i,
body.dark .js-minifier-page .tool-faqs summary i {
    color: #000000 !important;
}

.js-minifier-page .tool-instructions ul,
.js-minifier-page .tool-instructions p,
.js-minifier-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 800px) {
    .js-minifier-page .js-minifier-container {
        margin: 15px auto 0;
    }
    
    .js-minifier-page .control-bar {
        flex-direction: column;
    }
    
    .js-minifier-page .control-group {
        flex-wrap: wrap;
    }
    
    .js-minifier-page .editor-container {
        flex-direction: column;
    }
    
    .js-minifier-page .panel {
        min-width: auto;
    }
    
    .js-minifier-page .js-textarea {
        min-height: 250px;
    }
    
    .js-minifier-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .js-minifier-page .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .js-minifier-page .tool-info,
    .js-minifier-page .tool-instructions,
    .js-minifier-page .tool-faqs {
        padding: 0 16px;
    }
    
    .js-minifier-page .workspace-grid {
        padding: 15px;
    }
}

/* ================= CSS MINIFIER PRO TOOL ================= */
.css-minifier-page .css-minifier-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.css-minifier-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.css-minifier-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.css-minifier-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.css-minifier-page .file-upload-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.css-minifier-page .file-upload-btn:hover {
    background: var(--border-color);
}

.css-minifier-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.css-minifier-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.css-minifier-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.css-minifier-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.css-minifier-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.css-minifier-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.css-minifier-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.css-minifier-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.css-minifier-page .btn-primary:hover {
    background: var(--primary-hover);
}

.css-minifier-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.css-minifier-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.css-minifier-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.css-minifier-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.css-minifier-page .panel-actions {
    display: flex;
    gap: 8px;
}

.css-minifier-page .panel-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.css-minifier-page .panel-actions button:hover {
    color: var(--primary);
}

.css-minifier-page .editor-wrapper {
    padding: 16px;
}

.css-minifier-page .css-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.css-minifier-page .css-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.css-minifier-page .css-textarea[readonly] {
    background: var(--bg-light);
}

.css-minifier-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.css-minifier-page .suggestion-bar {
    flex: 1;
}

.css-minifier-page .stats {
    display: flex;
    gap: 20px;
}

.css-minifier-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Headers */
.css-minifier-page header h1,
.css-minifier-page h1 {
    color: var(--primary) !important;
}

.css-minifier-page header h1 i,
.css-minifier-page h1 i {
    color: var(--primary) !important;
}

.css-minifier-page .subtitle {
    color: var(--text-muted) !important;
}

/* Instructions */
.css-minifier-page .tool-info,
.css-minifier-page .tool-instructions,
.css-minifier-page .tool-faqs {
    padding: 0 20px;
}

.css-minifier-page .tool-instructions details,
.css-minifier-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.css-minifier-page .tool-instructions summary,
.css-minifier-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.css-minifier-page .tool-instructions summary i,
.css-minifier-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .css-minifier-page .tool-instructions summary,
body.dark .css-minifier-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .css-minifier-page .tool-instructions summary i,
body.dark .css-minifier-page .tool-faqs summary i {
    color: #000000 !important;
}

.css-minifier-page .tool-instructions ul,
.css-minifier-page .tool-instructions p,
.css-minifier-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 800px) {
    .css-minifier-page .css-minifier-container {
        margin: 15px auto 0;
    }
    
    .css-minifier-page .control-bar {
        flex-direction: column;
    }
    
    .css-minifier-page .control-group {
        flex-wrap: wrap;
    }
    
    .css-minifier-page .editor-container {
        flex-direction: column;
    }
    
    .css-minifier-page .panel {
        min-width: auto;
    }
    
    .css-minifier-page .css-textarea {
        min-height: 250px;
    }
    
    .css-minifier-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .css-minifier-page .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .css-minifier-page .tool-info,
    .css-minifier-page .tool-instructions,
    .css-minifier-page .tool-faqs {
        padding: 0 16px;
    }
    
    .css-minifier-page .workspace-grid {
        padding: 15px;
    }
}

/* ================= BASE64 DECODER PRO TOOL ================= */
.base64-decoder-page .base64-decoder-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.base64-decoder-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.base64-decoder-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.base64-decoder-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.base64-decoder-page .file-upload-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.base64-decoder-page .file-upload-btn:hover {
    background: var(--border-color);
}

.base64-decoder-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.base64-decoder-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.base64-decoder-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.base64-decoder-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.base64-decoder-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.base64-decoder-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.base64-decoder-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.base64-decoder-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.base64-decoder-page .btn-primary:hover {
    background: var(--primary-hover);
}

.base64-decoder-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.base64-decoder-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.base64-decoder-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.base64-decoder-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.base64-decoder-page .panel-actions {
    display: flex;
    gap: 8px;
}

.base64-decoder-page .panel-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.base64-decoder-page .panel-actions button:hover {
    color: var(--primary);
}

.base64-decoder-page .editor-wrapper {
    padding: 16px;
}

.base64-decoder-page .base64-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.base64-decoder-page .base64-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.base64-decoder-page .base64-textarea[readonly] {
    background: var(--bg-light);
}

.base64-decoder-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.base64-decoder-page .suggestion-bar {
    flex: 1;
}

.base64-decoder-page .stats {
    display: flex;
    gap: 20px;
}

.base64-decoder-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Headers */
.base64-decoder-page header h1,
.base64-decoder-page h1 {
    color: var(--primary) !important;
}

.base64-decoder-page header h1 i,
.base64-decoder-page h1 i {
    color: var(--primary) !important;
}

.base64-decoder-page .subtitle {
    color: var(--text-muted) !important;
}

/* Instructions */
.base64-decoder-page .tool-info,
.base64-decoder-page .tool-instructions,
.base64-decoder-page .tool-faqs {
    padding: 0 20px;
}

.base64-decoder-page .tool-instructions details,
.base64-decoder-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.base64-decoder-page .tool-instructions summary,
.base64-decoder-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.base64-decoder-page .tool-instructions summary i,
.base64-decoder-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .base64-decoder-page .tool-instructions summary,
body.dark .base64-decoder-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .base64-decoder-page .tool-instructions summary i,
body.dark .base64-decoder-page .tool-faqs summary i {
    color: #000000 !important;
}

.base64-decoder-page .tool-instructions ul,
.base64-decoder-page .tool-instructions p,
.base64-decoder-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 800px) {
    .base64-decoder-page .base64-decoder-container {
        margin: 15px auto 0;
    }
    
    .base64-decoder-page .control-bar {
        flex-direction: column;
    }
    
    .base64-decoder-page .control-group {
        flex-wrap: wrap;
    }
    
    .base64-decoder-page .editor-container {
        flex-direction: column;
    }
    
    .base64-decoder-page .panel {
        min-width: auto;
    }
    
    .base64-decoder-page .base64-textarea {
        min-height: 250px;
    }
    
    .base64-decoder-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .base64-decoder-page .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .base64-decoder-page .tool-info,
    .base64-decoder-page .tool-instructions,
    .base64-decoder-page .tool-faqs {
        padding: 0 16px;
    }
    
    .base64-decoder-page .workspace-grid {
        padding: 15px;
    }
}

/* ================= BASE64 ENCODER PRO TOOL ================= */
.base64-encoder-page .base64-encoder-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.base64-encoder-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.base64-encoder-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.base64-encoder-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.base64-encoder-page .file-upload-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.base64-encoder-page .file-upload-btn:hover {
    background: var(--border-color);
}

.base64-encoder-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.base64-encoder-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.base64-encoder-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.base64-encoder-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.base64-encoder-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.base64-encoder-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.base64-encoder-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.base64-encoder-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.base64-encoder-page .btn-primary:hover {
    background: var(--primary-hover);
}

.base64-encoder-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.base64-encoder-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.base64-encoder-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.base64-encoder-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.base64-encoder-page .panel-actions {
    display: flex;
    gap: 8px;
}

.base64-encoder-page .panel-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.base64-encoder-page .panel-actions button:hover {
    color: var(--primary);
}

.base64-encoder-page .editor-wrapper {
    padding: 16px;
}

.base64-encoder-page .base64-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.base64-encoder-page .base64-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.base64-encoder-page .base64-textarea[readonly] {
    background: var(--bg-light);
}

.base64-encoder-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.base64-encoder-page .suggestion-bar {
    flex: 1;
}

.base64-encoder-page .stats {
    display: flex;
    gap: 20px;
}

.base64-encoder-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Headers */
.base64-encoder-page header h1,
.base64-encoder-page h1 {
    color: var(--primary) !important;
}

.base64-encoder-page header h1 i,
.base64-encoder-page h1 i {
    color: var(--primary) !important;
}

.base64-encoder-page .subtitle {
    color: var(--text-muted) !important;
}

/* Instructions */
.base64-encoder-page .tool-info,
.base64-encoder-page .tool-instructions,
.base64-encoder-page .tool-faqs {
    padding: 0 20px;
}

.base64-encoder-page .tool-instructions details,
.base64-encoder-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.base64-encoder-page .tool-instructions summary,
.base64-encoder-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.base64-encoder-page .tool-instructions summary i,
.base64-encoder-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .base64-encoder-page .tool-instructions summary,
body.dark .base64-encoder-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .base64-encoder-page .tool-instructions summary i,
body.dark .base64-encoder-page .tool-faqs summary i {
    color: #000000 !important;
}

.base64-encoder-page .tool-instructions ul,
.base64-encoder-page .tool-instructions p,
.base64-encoder-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 800px) {
    .base64-encoder-page .base64-encoder-container {
        margin: 15px auto 0;
    }
    
    .base64-encoder-page .control-bar {
        flex-direction: column;
    }
    
    .base64-encoder-page .control-group {
        flex-wrap: wrap;
    }
    
    .base64-encoder-page .editor-container {
        flex-direction: column;
    }
    
    .base64-encoder-page .panel {
        min-width: auto;
    }
    
    .base64-encoder-page .base64-textarea {
        min-height: 250px;
    }
    
    .base64-encoder-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .base64-encoder-page .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .base64-encoder-page .tool-info,
    .base64-encoder-page .tool-instructions,
    .base64-encoder-page .tool-faqs {
        padding: 0 16px;
    }
    
    .base64-encoder-page .workspace-grid {
        padding: 15px;
    }
}
/* ================= URL ENCODER/DECODER PRO TOOL ================= */
.url-encoder-page .url-encoder-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.url-encoder-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.url-encoder-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.url-encoder-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.url-encoder-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.url-encoder-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.url-encoder-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.url-encoder-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.url-encoder-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.url-encoder-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.url-encoder-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.url-encoder-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.url-encoder-page .btn-primary:hover {
    background: var(--primary-hover);
}

.url-encoder-page .btn-secondary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.url-encoder-page .btn-secondary:hover {
    background: var(--border-color);
}

.url-encoder-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.url-encoder-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.url-encoder-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.url-encoder-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.url-encoder-page .panel-actions {
    display: flex;
    gap: 8px;
}

.url-encoder-page .panel-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.url-encoder-page .panel-actions button:hover {
    color: var(--primary);
}

.url-encoder-page .editor-wrapper {
    padding: 16px;
}

.url-encoder-page .url-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.url-encoder-page .url-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.url-encoder-page .url-textarea[readonly] {
    background: var(--bg-light);
}

.url-encoder-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.url-encoder-page .suggestion-bar {
    flex: 1;
}

.url-encoder-page .stats {
    display: flex;
    gap: 20px;
}

.url-encoder-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Headers */
.url-encoder-page header h1,
.url-encoder-page h1 {
    color: var(--primary) !important;
}

.url-encoder-page header h1 i,
.url-encoder-page h1 i {
    color: var(--primary) !important;
}

.url-encoder-page .subtitle {
    color: var(--text-muted) !important;
}

/* Instructions */
.url-encoder-page .tool-info,
.url-encoder-page .tool-instructions,
.url-encoder-page .tool-faqs {
    padding: 0 20px;
}

.url-encoder-page .tool-instructions details,
.url-encoder-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.url-encoder-page .tool-instructions summary,
.url-encoder-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.url-encoder-page .tool-instructions summary i,
.url-encoder-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .url-encoder-page .tool-instructions summary,
body.dark .url-encoder-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .url-encoder-page .tool-instructions summary i,
body.dark .url-encoder-page .tool-faqs summary i {
    color: #000000 !important;
}

.url-encoder-page .tool-instructions ul,
.url-encoder-page .tool-instructions p,
.url-encoder-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 800px) {
    .url-encoder-page .url-encoder-container {
        margin: 15px auto 0;
    }
    
    .url-encoder-page .control-bar {
        flex-direction: column;
    }
    
    .url-encoder-page .control-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .url-encoder-page .editor-container {
        flex-direction: column;
    }
    
    .url-encoder-page .panel {
        min-width: auto;
    }
    
    .url-encoder-page .url-textarea {
        min-height: 250px;
    }
    
    .url-encoder-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .url-encoder-page .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .url-encoder-page .tool-info,
    .url-encoder-page .tool-instructions,
    .url-encoder-page .tool-faqs {
        padding: 0 16px;
    }
    
    .url-encoder-page .workspace-grid {
        padding: 15px;
    }
}

/* ================= URL DECODER TOOL ================= */
.url-decoder-page .url-decoder-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.url-decoder-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.url-decoder-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.url-decoder-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.url-decoder-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.url-decoder-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.url-decoder-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.url-decoder-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.url-decoder-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.url-decoder-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.url-decoder-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.url-decoder-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.url-decoder-page .btn-primary:hover {
    background: var(--primary-hover);
}

.url-decoder-page .btn-secondary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.url-decoder-page .btn-secondary:hover {
    background: var(--border-color);
}

.url-decoder-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.url-decoder-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.url-decoder-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.url-decoder-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.url-decoder-page .panel-actions {
    display: flex;
    gap: 8px;
}

.url-decoder-page .file-upload-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.url-decoder-page .file-upload-icon:hover {
    color: var(--primary);
}

.url-decoder-page .editor-wrapper {
    padding: 16px;
}

.url-decoder-page .url-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.url-decoder-page .url-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.url-decoder-page .url-textarea[readonly] {
    background: var(--bg-light);
}

.url-decoder-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.url-decoder-page .suggestion-bar {
    flex: 1;
}

.url-decoder-page .stats {
    display: flex;
    gap: 20px;
}

.url-decoder-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.url-decoder-page .history-section {
    margin: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.url-decoder-page .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.url-decoder-page .history-header h3 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.url-decoder-page .history-header h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.url-decoder-page .clear-history-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.url-decoder-page .clear-history-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.url-decoder-page .history-list {
    max-height: 250px;
    overflow-y: auto;
}

.url-decoder-page .history-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.url-decoder-page .history-item-input,
.url-decoder-page .history-item-output {
    font-family: monospace;
    font-size: 12px;
    margin-bottom: 5px;
    word-break: break-all;
}

.url-decoder-page .history-item-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 5px;
}

.url-decoder-page .history-use,
.url-decoder-page .history-delete {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.url-decoder-page .history-use:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.url-decoder-page .history-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.url-decoder-page .history-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.url-decoder-page .history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.url-decoder-page header h1,
.url-decoder-page h1 {
    color: var(--primary) !important;
}

.url-decoder-page header h1 i,
.url-decoder-page h1 i {
    color: var(--primary) !important;
}

.url-decoder-page .subtitle {
    color: var(--text-muted) !important;
}

.url-decoder-page .tool-info,
.url-decoder-page .tool-instructions,
.url-decoder-page .tool-faqs {
    padding: 0 20px;
}

.url-decoder-page .tool-instructions details,
.url-decoder-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.url-decoder-page .tool-instructions summary,
.url-decoder-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.url-decoder-page .tool-instructions summary i,
.url-decoder-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .url-decoder-page .tool-instructions summary,
body.dark .url-decoder-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .url-decoder-page .tool-instructions summary i,
body.dark .url-decoder-page .tool-faqs summary i {
    color: #000000 !important;
}

.url-decoder-page .tool-instructions ul,
.url-decoder-page .tool-instructions p,
.url-decoder-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .url-decoder-page .url-decoder-container {
        margin: 15px auto 0;
    }
    .url-decoder-page .control-bar {
        flex-direction: column;
    }
    .url-decoder-page .control-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    .url-decoder-page .editor-container {
        flex-direction: column;
    }
    .url-decoder-page .panel {
        min-width: auto;
    }
    .url-decoder-page .url-textarea {
        min-height: 250px;
    }
    .url-decoder-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    .url-decoder-page .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    .url-decoder-page .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .url-decoder-page .tool-info,
    .url-decoder-page .tool-instructions,
    .url-decoder-page .tool-faqs {
        padding: 0 16px;
    }
    .url-decoder-page .workspace-grid {
        padding: 15px;
    }
    .url-decoder-page .history-section {
        margin: 15px;
        padding: 15px;
    }
}
/* ================= HTML TO TEXT CONVERTER TOOL ================= */
.html-to-text-page .html-to-text-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.html-to-text-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.html-to-text-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.html-to-text-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.html-to-text-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.html-to-text-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.html-to-text-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.html-to-text-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.html-to-text-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.html-to-text-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.html-to-text-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.html-to-text-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.html-to-text-page .btn-primary:hover {
    background: var(--primary-hover);
}

.html-to-text-page .btn-secondary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.html-to-text-page .btn-secondary:hover {
    background: var(--border-color);
}

.html-to-text-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.html-to-text-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.html-to-text-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.html-to-text-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.html-to-text-page .panel-actions {
    display: flex;
    gap: 8px;
}

.html-to-text-page .file-upload-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.html-to-text-page .file-upload-icon:hover {
    color: var(--primary);
}

.html-to-text-page .editor-wrapper {
    padding: 16px;
}

.html-to-text-page .html-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.html-to-text-page .html-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.html-to-text-page .html-textarea[readonly] {
    background: var(--bg-light);
}

.html-to-text-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.html-to-text-page .suggestion-bar {
    flex: 1;
}

.html-to-text-page .stats {
    display: flex;
    gap: 20px;
}

.html-to-text-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.html-to-text-page .history-section {
    margin: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.html-to-text-page .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.html-to-text-page .history-header h3 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.html-to-text-page .history-header h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.html-to-text-page .clear-history-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.html-to-text-page .clear-history-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.html-to-text-page .history-list {
    max-height: 250px;
    overflow-y: auto;
}

.html-to-text-page .history-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.html-to-text-page .history-item-input {
    font-family: monospace;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 5px;
    word-break: break-all;
}

.html-to-text-page .history-item-output {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    word-break: break-all;
}

.html-to-text-page .history-item-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 5px;
}

.html-to-text-page .history-use,
.html-to-text-page .history-delete {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.html-to-text-page .history-use:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.html-to-text-page .history-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.html-to-text-page .history-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.html-to-text-page .history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.html-to-text-page header h1,
.html-to-text-page h1 {
    color: var(--primary) !important;
}

.html-to-text-page header h1 i,
.html-to-text-page h1 i {
    color: var(--primary) !important;
}

.html-to-text-page .subtitle {
    color: var(--text-muted) !important;
}

.html-to-text-page .tool-info,
.html-to-text-page .tool-instructions,
.html-to-text-page .tool-faqs {
    padding: 0 20px;
}

.html-to-text-page .tool-instructions details,
.html-to-text-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.html-to-text-page .tool-instructions summary,
.html-to-text-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.html-to-text-page .tool-instructions summary i,
.html-to-text-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .html-to-text-page .tool-instructions summary,
body.dark .html-to-text-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .html-to-text-page .tool-instructions summary i,
body.dark .html-to-text-page .tool-faqs summary i {
    color: #000000 !important;
}

.html-to-text-page .tool-instructions ul,
.html-to-text-page .tool-instructions p,
.html-to-text-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .html-to-text-page .html-to-text-container {
        margin: 15px auto 0;
    }
    
    .html-to-text-page .control-bar {
        flex-direction: column;
    }
    
    .html-to-text-page .control-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .html-to-text-page .editor-container {
        flex-direction: column;
    }
    
    .html-to-text-page .panel {
        min-width: auto;
    }
    
    .html-to-text-page .html-textarea {
        min-height: 250px;
    }
    
    .html-to-text-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .html-to-text-page .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .html-to-text-page .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .html-to-text-page .tool-info,
    .html-to-text-page .tool-instructions,
    .html-to-text-page .tool-faqs {
        padding: 0 16px;
    }
    
    .html-to-text-page .workspace-grid {
        padding: 15px;
    }
    
    .html-to-text-page .history-section {
        margin: 15px;
        padding: 15px;
    }
}
/* ================= TEXT TO HTML CONVERTER TOOL ================= */
.text-to-html-page .text-to-html-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.text-to-html-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.text-to-html-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.text-to-html-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.text-to-html-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.text-to-html-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.text-to-html-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.text-to-html-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.text-to-html-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.text-to-html-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.text-to-html-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.text-to-html-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.text-to-html-page .btn-primary:hover {
    background: var(--primary-hover);
}

.text-to-html-page .btn-secondary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.text-to-html-page .btn-secondary:hover {
    background: var(--border-color);
}

.text-to-html-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.text-to-html-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.text-to-html-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.text-to-html-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.text-to-html-page .panel-actions {
    display: flex;
    gap: 8px;
}

.text-to-html-page .editor-wrapper {
    padding: 16px;
}

.text-to-html-page .text-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.text-to-html-page .text-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.text-to-html-page .text-textarea[readonly] {
    background: var(--bg-light);
}

.text-to-html-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.text-to-html-page .suggestion-bar {
    flex: 1;
}

.text-to-html-page .stats {
    display: flex;
    gap: 20px;
}

.text-to-html-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.text-to-html-page .history-section {
    margin: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.text-to-html-page .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.text-to-html-page .history-header h3 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.text-to-html-page .history-header h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.text-to-html-page .clear-history-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.text-to-html-page .clear-history-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.text-to-html-page .history-list {
    max-height: 250px;
    overflow-y: auto;
}

.text-to-html-page .history-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.text-to-html-page .history-item-input {
    font-family: monospace;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 5px;
    word-break: break-all;
}

.text-to-html-page .history-item-output {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    word-break: break-all;
}

.text-to-html-page .history-item-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 5px;
}

.text-to-html-page .history-use,
.text-to-html-page .history-delete {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.text-to-html-page .history-use:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.text-to-html-page .history-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.text-to-html-page .history-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.text-to-html-page .history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.text-to-html-page header h1,
.text-to-html-page h1 {
    color: var(--primary) !important;
}

.text-to-html-page header h1 i,
.text-to-html-page h1 i {
    color: var(--primary) !important;
}

.text-to-html-page .subtitle {
    color: var(--text-muted) !important;
}

.text-to-html-page .tool-info,
.text-to-html-page .tool-instructions,
.text-to-html-page .tool-faqs {
    padding: 0 20px;
}

.text-to-html-page .tool-instructions details,
.text-to-html-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.text-to-html-page .tool-instructions summary,
.text-to-html-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.text-to-html-page .tool-instructions summary i,
.text-to-html-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .text-to-html-page .tool-instructions summary,
body.dark .text-to-html-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .text-to-html-page .tool-instructions summary i,
body.dark .text-to-html-page .tool-faqs summary i {
    color: #000000 !important;
}

.text-to-html-page .tool-instructions ul,
.text-to-html-page .tool-instructions p,
.text-to-html-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .text-to-html-page .text-to-html-container {
        margin: 15px auto 0;
    }
    
    .text-to-html-page .control-bar {
        flex-direction: column;
    }
    
    .text-to-html-page .control-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .text-to-html-page .editor-container {
        flex-direction: column;
    }
    
    .text-to-html-page .panel {
        min-width: auto;
    }
    
    .text-to-html-page .text-textarea {
        min-height: 250px;
    }
    
    .text-to-html-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .text-to-html-page .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .text-to-html-page .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .text-to-html-page .tool-info,
    .text-to-html-page .tool-instructions,
    .text-to-html-page .tool-faqs {
        padding: 0 16px;
    }
    
    .text-to-html-page .workspace-grid {
        padding: 15px;
    }
    
    .text-to-html-page .history-section {
        margin: 15px;
        padding: 15px;
    }
}
/* ================= CODE BEAUTIFIER TOOL ================= */
.code-beautifier-page .code-beautifier-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.code-beautifier-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.code-beautifier-page .control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.code-beautifier-page .control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.code-beautifier-page .indent-select {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.code-beautifier-page .indent-select:hover {
    background: var(--border-color);
}

.code-beautifier-page .toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.code-beautifier-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.code-beautifier-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.code-beautifier-page .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.code-beautifier-page .slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.code-beautifier-page .switch input:checked + .slider-round:before {
    transform: translateX(26px);
}

.code-beautifier-page .switch input:checked + .slider-round {
    background-color: var(--primary);
}

.code-beautifier-page .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.code-beautifier-page .btn-primary:hover {
    background: var(--primary-hover);
}

.code-beautifier-page .btn-secondary {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.code-beautifier-page .btn-secondary:hover {
    background: var(--border-color);
}

.code-beautifier-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.code-beautifier-page .panel {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-beautifier-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.code-beautifier-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.code-beautifier-page .panel-actions {
    display: flex;
    gap: 8px;
}

.code-beautifier-page .editor-wrapper {
    padding: 16px;
}

.code-beautifier-page .code-textarea {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.code-beautifier-page .code-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.code-beautifier-page .code-textarea[readonly] {
    background: var(--bg-light);
}

.code-beautifier-page .tool-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.code-beautifier-page .suggestion-bar {
    flex: 1;
}

.code-beautifier-page .stats {
    display: flex;
    gap: 20px;
}

.code-beautifier-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.code-beautifier-page .history-section {
    margin: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.code-beautifier-page .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.code-beautifier-page .history-header h3 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.code-beautifier-page .history-header h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.code-beautifier-page .clear-history-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.code-beautifier-page .clear-history-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.code-beautifier-page .history-list {
    max-height: 250px;
    overflow-y: auto;
}

.code-beautifier-page .history-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.code-beautifier-page .history-item-input {
    font-family: monospace;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 5px;
    word-break: break-all;
}

.code-beautifier-page .history-item-output {
    font-size: 12px;
    color: #10b981;
    margin-bottom: 5px;
    word-break: break-all;
}

.code-beautifier-page .history-item-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 5px;
}

.code-beautifier-page .history-use,
.code-beautifier-page .history-delete {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.code-beautifier-page .history-use:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.code-beautifier-page .history-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.code-beautifier-page .history-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.code-beautifier-page .history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.code-beautifier-page header h1,
.code-beautifier-page h1 {
    color: var(--primary) !important;
}

.code-beautifier-page header h1 i,
.code-beautifier-page h1 i {
    color: var(--primary) !important;
}

.code-beautifier-page .subtitle {
    color: var(--text-muted) !important;
}

.code-beautifier-page .tool-info,
.code-beautifier-page .tool-instructions,
.code-beautifier-page .tool-faqs {
    padding: 0 20px;
}

.code-beautifier-page .tool-instructions details,
.code-beautifier-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.code-beautifier-page .tool-instructions summary,
.code-beautifier-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.code-beautifier-page .tool-instructions summary i,
.code-beautifier-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .code-beautifier-page .tool-instructions summary,
body.dark .code-beautifier-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .code-beautifier-page .tool-instructions summary i,
body.dark .code-beautifier-page .tool-faqs summary i {
    color: #000000 !important;
}

.code-beautifier-page .tool-instructions ul,
.code-beautifier-page .tool-instructions p,
.code-beautifier-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .code-beautifier-page .code-beautifier-container {
        margin: 15px auto 0;
    }
    
    .code-beautifier-page .control-bar {
        flex-direction: column;
    }
    
    .code-beautifier-page .control-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .code-beautifier-page .editor-container {
        flex-direction: column;
    }
    
    .code-beautifier-page .panel {
        min-width: auto;
    }
    
    .code-beautifier-page .code-textarea {
        min-height: 250px;
    }
    
    .code-beautifier-page .tool-footer-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .code-beautifier-page .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .code-beautifier-page .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .code-beautifier-page .tool-info,
    .code-beautifier-page .tool-instructions,
    .code-beautifier-page .tool-faqs {
        padding: 0 16px;
    }
    
    .code-beautifier-page .workspace-grid {
        padding: 15px;
    }
    
    .code-beautifier-page .history-section {
        margin: 15px;
        padding: 15px;
    }
}

/* ================= META TAG GENERATOR TOOL ================= */
.meta-tag-generator-page .meta-tag-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.meta-tag-generator-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.meta-tag-generator-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-tag-generator-page .panel {
    flex: 1;
    min-width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.meta-tag-generator-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.meta-tag-generator-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.meta-tag-generator-page .panel-actions {
    display: flex;
    gap: 8px;
}

.meta-tag-generator-page .editor-wrapper {
    padding: 20px;
}

.meta-tag-generator-page .form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.meta-tag-generator-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-tag-generator-page .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.meta-tag-generator-page .form-group label i {
    margin-right: 6px;
    color: var(--primary);
}

.meta-tag-generator-page .meta-input,
.meta-tag-generator-page .meta-select,
.meta-tag-generator-page .meta-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    font-size: 13px;
    color: var(--text-main);
    transition: var(--transition);
}

.meta-tag-generator-page .meta-input:focus,
.meta-tag-generator-page .meta-select:focus,
.meta-tag-generator-page .meta-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.meta-tag-generator-page .meta-textarea {
    resize: vertical;
    font-family: inherit;
}

.meta-tag-generator-page .char-counter {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
}

.meta-tag-generator-page .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.meta-tag-generator-page .meta-output {
    width: 100%;
    min-height: 350px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.meta-tag-generator-page .meta-output:focus {
    outline: none;
}

.meta-tag-generator-page .copy-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.meta-tag-generator-page .copy-icon-btn:hover {
    color: var(--primary);
}

.meta-tag-generator-page .preview-section {
    margin: 0 20px 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.meta-tag-generator-page .preview-section h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.meta-tag-generator-page .preview-section h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.meta-tag-generator-page .seo-preview {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.meta-tag-generator-page .preview-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a0dab;
    margin-bottom: 4px;
}

.meta-tag-generator-page .preview-url {
    font-size: 12px;
    color: #006621;
    margin-bottom: 6px;
}

.meta-tag-generator-page .preview-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.meta-tag-generator-page .history-section {
    margin: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.meta-tag-generator-page .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-tag-generator-page .history-header h3 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.meta-tag-generator-page .history-header h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.meta-tag-generator-page .clear-history-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.meta-tag-generator-page .clear-history-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.meta-tag-generator-page .history-list {
    max-height: 200px;
    overflow-y: auto;
}

.meta-tag-generator-page .history-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.meta-tag-generator-page .history-item-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 5px;
}

.meta-tag-generator-page .history-item-output {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    word-break: break-all;
}

.meta-tag-generator-page .history-item-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 5px;
}

.meta-tag-generator-page .history-use,
.meta-tag-generator-page .history-delete {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.meta-tag-generator-page .history-use:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.meta-tag-generator-page .history-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.meta-tag-generator-page .history-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.meta-tag-generator-page .history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.meta-tag-generator-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.meta-tag-generator-page header h1,
.meta-tag-generator-page h1 {
    color: var(--primary) !important;
}

.meta-tag-generator-page header h1 i,
.meta-tag-generator-page h1 i {
    color: var(--primary) !important;
}

.meta-tag-generator-page .subtitle {
    color: var(--text-muted) !important;
}

.meta-tag-generator-page .tool-info,
.meta-tag-generator-page .tool-instructions,
.meta-tag-generator-page .tool-faqs {
    padding: 0 20px;
}

.meta-tag-generator-page .tool-instructions details,
.meta-tag-generator-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.meta-tag-generator-page .tool-instructions summary,
.meta-tag-generator-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.meta-tag-generator-page .tool-instructions summary i,
.meta-tag-generator-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .meta-tag-generator-page .tool-instructions summary,
body.dark .meta-tag-generator-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .meta-tag-generator-page .tool-instructions summary i,
body.dark .meta-tag-generator-page .tool-faqs summary i {
    color: #000000 !important;
}

.meta-tag-generator-page .tool-instructions ul,
.meta-tag-generator-page .tool-instructions p,
.meta-tag-generator-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .meta-tag-generator-page .meta-tag-container {
        margin: 15px auto 0;
    }
    
    .meta-tag-generator-page .editor-container {
        flex-direction: column;
    }
    
    .meta-tag-generator-page .panel {
        min-width: auto;
    }
    
    .meta-tag-generator-page .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .meta-tag-generator-page .meta-output {
        min-height: 250px;
    }
    
    .meta-tag-generator-page .preview-title {
        font-size: 14px;
    }
    
    .meta-tag-generator-page .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-tag-generator-page .tool-info,
    .meta-tag-generator-page .tool-instructions,
    .meta-tag-generator-page .tool-faqs {
        padding: 0 16px;
    }
    
    .meta-tag-generator-page .workspace-grid {
        padding: 15px;
    }
    
    .meta-tag-generator-page .preview-section,
    .meta-tag-generator-page .history-section {
        margin: 15px;
        padding: 15px;
    }
}

/* ================= OPEN GRAPH GENERATOR TOOL ================= */
.open-graph-page .open-graph-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.open-graph-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.open-graph-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.open-graph-page .panel {
    flex: 1;
    min-width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.open-graph-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.open-graph-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.open-graph-page .panel-actions {
    display: flex;
    gap: 8px;
}

.open-graph-page .editor-wrapper {
    padding: 20px;
}

.open-graph-page .form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.open-graph-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.open-graph-page .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.open-graph-page .form-group label i {
    margin-right: 6px;
    color: var(--primary);
}

.open-graph-page .og-input,
.open-graph-page .og-select,
.open-graph-page .og-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    font-size: 13px;
    color: var(--text-main);
    transition: var(--transition);
}

.open-graph-page .og-input:focus,
.open-graph-page .og-select:focus,
.open-graph-page .og-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.open-graph-page .og-textarea {
    resize: vertical;
    font-family: inherit;
}

.open-graph-page .input-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.open-graph-page .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.open-graph-page .og-output {
    width: 100%;
    min-height: 400px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.open-graph-page .og-output:focus {
    outline: none;
}

.open-graph-page .copy-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.open-graph-page .copy-icon-btn:hover {
    color: var(--primary);
}

.open-graph-page .preview-section {
    margin: 0 20px 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.open-graph-page .preview-section h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.open-graph-page .preview-section h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.open-graph-page .social-preview {
    display: flex;
    justify-content: center;
}

.open-graph-page .preview-card {
    max-width: 520px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.open-graph-page .preview-image {
    background: var(--bg-light);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
}

.open-graph-page .preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.open-graph-page .preview-content {
    padding: 16px;
}

.open-graph-page .preview-site {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.open-graph-page .preview-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.open-graph-page .preview-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.open-graph-page .history-section {
    margin: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.open-graph-page .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.open-graph-page .history-header h3 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.open-graph-page .history-header h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.open-graph-page .clear-history-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.open-graph-page .clear-history-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.open-graph-page .history-list {
    max-height: 200px;
    overflow-y: auto;
}

.open-graph-page .history-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.open-graph-page .history-item-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 5px;
}

.open-graph-page .history-item-output {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    word-break: break-all;
}

.open-graph-page .history-item-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 5px;
}

.open-graph-page .history-use,
.open-graph-page .history-delete {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.open-graph-page .history-use:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.open-graph-page .history-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.open-graph-page .history-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.open-graph-page .history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.open-graph-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.open-graph-page header h1,
.open-graph-page h1 {
    color: var(--primary) !important;
}

.open-graph-page header h1 i,
.open-graph-page h1 i {
    color: var(--primary) !important;
}

.open-graph-page .subtitle {
    color: var(--text-muted) !important;
}

.open-graph-page .tool-info,
.open-graph-page .tool-instructions,
.open-graph-page .tool-faqs {
    padding: 0 20px;
}

.open-graph-page .tool-instructions details,
.open-graph-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.open-graph-page .tool-instructions summary,
.open-graph-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.open-graph-page .tool-instructions summary i,
.open-graph-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .open-graph-page .tool-instructions summary,
body.dark .open-graph-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .open-graph-page .tool-instructions summary i,
body.dark .open-graph-page .tool-faqs summary i {
    color: #000000 !important;
}

.open-graph-page .tool-instructions ul,
.open-graph-page .tool-instructions p,
.open-graph-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .open-graph-page .open-graph-container {
        margin: 15px auto 0;
    }
    
    .open-graph-page .editor-container {
        flex-direction: column;
    }
    
    .open-graph-page .panel {
        min-width: auto;
    }
    
    .open-graph-page .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .open-graph-page .og-output {
        min-height: 250px;
    }
    
    .open-graph-page .preview-card {
        max-width: 100%;
    }
    
    .open-graph-page .preview-image {
        height: 160px;
    }
    
    .open-graph-page .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .open-graph-page .tool-info,
    .open-graph-page .tool-instructions,
    .open-graph-page .tool-faqs {
        padding: 0 16px;
    }
    
    .open-graph-page .workspace-grid {
        padding: 15px;
    }
    
    .open-graph-page .preview-section,
    .open-graph-page .history-section {
        margin: 15px;
        padding: 15px;
    }
}
/* ================= ROBOTS.TXT GENERATOR TOOL ================= */
.robots-txt-page .robots-txt-container {
    max-width: 1400px;
    margin: 30px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.robots-txt-page .workspace-grid {
    padding: 20px;
    background: var(--bg-light);
}

.robots-txt-page .editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.robots-txt-page .panel {
    flex: 1;
    min-width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.robots-txt-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}

.robots-txt-page .panel-header i {
    margin-right: 6px;
    color: var(--primary);
}

.robots-txt-page .panel-actions {
    display: flex;
    gap: 8px;
}

.robots-txt-page .editor-wrapper {
    padding: 20px;
}

.robots-txt-page .form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.robots-txt-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.robots-txt-page .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.robots-txt-page .form-group label i {
    margin-right: 6px;
    color: var(--primary);
}

.robots-txt-page .robots-input,
.robots-txt-page .robots-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    font-size: 13px;
    color: var(--text-main);
    transition: var(--transition);
}

.robots-txt-page .robots-input:focus,
.robots-txt-page .robots-select:focus {
    outline: none;
    border-color: var(--primary);
}

.robots-txt-page .robots-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-main);
    resize: vertical;
    transition: var(--transition);
}

.robots-txt-page .robots-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.robots-txt-page .input-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.robots-txt-page .robots-output {
    width: 100%;
    min-height: 450px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.robots-txt-page .robots-output:focus {
    outline: none;
}

.robots-txt-page .copy-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.robots-txt-page .copy-icon-btn:hover {
    color: var(--primary);
}

.robots-txt-page .preview-section {
    margin: 0 20px 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.robots-txt-page .preview-section h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.robots-txt-page .preview-section h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.robots-txt-page .guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.robots-txt-page .guide-item {
    padding: 10px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.robots-txt-page .guide-item strong {
    color: var(--primary);
}

.robots-txt-page .history-section {
    margin: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.robots-txt-page .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.robots-txt-page .history-header h3 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.robots-txt-page .history-header h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.robots-txt-page .clear-history-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.robots-txt-page .clear-history-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.robots-txt-page .history-list {
    max-height: 200px;
    overflow-y: auto;
}

.robots-txt-page .history-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.robots-txt-page .history-item-title {
    font-family: monospace;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
    word-break: break-all;
}

.robots-txt-page .history-item-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 5px;
}

.robots-txt-page .history-use,
.robots-txt-page .history-delete {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.robots-txt-page .history-use:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.robots-txt-page .history-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.robots-txt-page .history-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.robots-txt-page .history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.robots-txt-page .badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.robots-txt-page header h1,
.robots-txt-page h1 {
    color: var(--primary) !important;
}

.robots-txt-page header h1 i,
.robots-txt-page h1 i {
    color: var(--primary) !important;
}

.robots-txt-page .subtitle {
    color: var(--text-muted) !important;
}

.robots-txt-page .tool-info,
.robots-txt-page .tool-instructions,
.robots-txt-page .tool-faqs {
    padding: 0 20px;
}

.robots-txt-page .tool-instructions details,
.robots-txt-page .tool-faqs details {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.robots-txt-page .tool-instructions summary,
.robots-txt-page .tool-faqs summary {
    font-weight: 600;
    color: #000000 !important;
    cursor: pointer;
    list-style: none;
}

.robots-txt-page .tool-instructions summary i,
.robots-txt-page .tool-faqs summary i {
    margin-right: 8px;
    color: #000000 !important;
}

body.dark .robots-txt-page .tool-instructions summary,
body.dark .robots-txt-page .tool-faqs summary {
    color: #000000 !important;
}

body.dark .robots-txt-page .tool-instructions summary i,
body.dark .robots-txt-page .tool-faqs summary i {
    color: #000000 !important;
}

.robots-txt-page .tool-instructions ul,
.robots-txt-page .tool-instructions p,
.robots-txt-page .tool-faqs p {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .robots-txt-page .robots-txt-container {
        margin: 15px auto 0;
    }
    
    .robots-txt-page .editor-container {
        flex-direction: column;
    }
    
    .robots-txt-page .panel {
        min-width: auto;
    }
    
    .robots-txt-page .robots-output {
        min-height: 300px;
    }
    
    .robots-txt-page .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .robots-txt-page .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .robots-txt-page .tool-info,
    .robots-txt-page .tool-instructions,
    .robots-txt-page .tool-faqs {
        padding: 0 16px;
    }
    
    .robots-txt-page .workspace-grid {
        padding: 15px;
    }
    
    .robots-txt-page .preview-section,
    .robots-txt-page .history-section {
        margin: 15px;
        padding: 15px;
    }
}
