/* Tool Page Specific Styles */

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
}

.tool-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tool-icon-large {
    font-size: 4rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.tool-details h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tool-details p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 600px;
    line-height: 1.6;
}

.tool-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

/* Tool Interface */
.tool-interface {
    padding: 3rem 0;
    background: #f8fafc;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.tool-main {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.supported-formats {
    margin-top: 1rem;
    opacity: 0.7;
}

/* Controls Section */
.controls-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.controls-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.controls-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.control-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.current-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-info span {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #374151;
}

/* Radio and Checkbox Groups */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
}

.radio-option input,
.checkbox-option input {
    margin-right: 0.5rem;
}

.radio-label {
    font-weight: 500;
    color: #374151;
}

/* Slider Controls */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
}

.slider-value input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
}

/* Dimension Inputs */
.dimension-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dimension-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.dimension-group label {
    font-weight: 500;
    color: #374151;
    min-width: 50px;
}

.dimension-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Progress Bar */
.progress-container {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-weight: 500;
    color: #374151;
}

/* Preview Section */
.preview-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 2rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.preview-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-stats span {
    background: #f0fdf4;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.preview-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.preview-item h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #374151;
}

.preview-image-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.preview-image-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-arrow {
    font-size: 2rem;
    color: #2563eb;
    font-weight: bold;
}

.download-section {
    text-align: center;
}

.download-section .btn-success {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Sidebar */
.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-ad .ad-placeholder {
    height: 250px;
    width: 300px;
}

.related-tools {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-tools h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.related-tool {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    margin-bottom: 0.5rem;
}

.related-tool:hover {
    background: #f3f4f6;
}

.related-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.related-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.related-info p {
    font-size: 0.9rem;
    color: #6b7280;
}

.tips-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tips-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.tips-list li:before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tool-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tool-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .tool-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .tool-details h1 {
        font-size: 2rem;
    }
    
    .tool-stats {
        justify-content: center;
    }
    
    .tool-main {
        padding: 1.5rem;
    }
    
    .controls-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .dimension-inputs {
        flex-direction: column;
    }
    
    .preview-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .preview-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .download-section .btn-success {
        margin-right: 0;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Coming Soon Styles */
.coming-soon-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.coming-soon-message h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.coming-soon-message > p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 2rem auto;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

.notify-section {
    background: #eff6ff;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.notify-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.notify-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.notify-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

.notify-btn {
    white-space: nowrap;
}

.related-section {
    padding: 3rem 0;
    background: white;
}

.related-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
}

@media (max-width: 768px) {
    .coming-soon-message {
        padding: 2rem 1.5rem;
    }
    
    .coming-soon-message h2 {
        font-size: 1.5rem;
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .notify-input {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 1.5rem 0;
    }
    
    .tool-icon-large {
        font-size: 3rem;
        padding: 1rem;
    }
    
    .tool-details h1 {
        font-size: 1.75rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .coming-soon-message {
        padding: 1.5rem 1rem;
    }
    
    .coming-soon-icon {
        font-size: 3rem;
    }
}

/* QR Generator Specific Styles */
.qr-type-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.qr-type-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.qr-type-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.qr-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.qr-type-btn:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
    transform: translateY(-2px);
}

.qr-type-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1e40af;
}

.qr-type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Content Forms */
.content-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.content-form {
    display: none;
}

.content-form.active {
    display: block;
}

.content-form h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.input-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    margin-top: 1rem;
}

/* Customization Section */
.customization-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.customization-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.customization-grid {
    display: grid;
    gap: 2rem;
}

/* Size Options */
.size-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.size-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
}

.size-option:hover {
    border-color: #d1d5db;
}

.size-option input:checked + .size-preview {
    color: #2563eb;
}

.size-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.size-option input {
    margin: 0;
}

.size-preview {
    font-size: 1rem;
    transition: color 0.2s;
}

/* Color Controls */
.color-controls {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-input-group label {
    font-weight: 500;
    color: #374151;
    margin: 0;
    min-width: 80px;
}

.color-input {
    width: 50px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.color-value {
    font-family: monospace;
    font-size: 0.9rem;
    color: #6b7280;
    min-width: 70px;
}

.color-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-preset {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
}

.color-preset:hover {
    background: #f3f4f6;
    border-color: #2563eb;
}

/* Action Section */
.action-section {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* QR Preview */
.qr-preview-container {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 2rem;
}

#qrCanvas {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
}

.preview-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-info span {
    background: #f0fdf4;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Examples Section */
.examples-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.examples-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.example-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.example-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.example-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.example-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
    font-size: 0.9rem;
}

.example-info p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive QR Generator */
@media (max-width: 768px) {
    .qr-type-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .color-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .size-options {
        flex-direction: column;
    }
    
    .size-option {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .qr-type-buttons {
        grid-template-columns: 1fr;
    }
    
    .qr-type-btn {
        padding: 1rem;
    }
    
    .color-presets {
        justify-content: center;
    }
    
    .preview-info {
        flex-direction: column;
        align-items: center;
    }
}

/* JSON Formatter Specific Styles */
.json-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.action-btn:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
    transform: translateY(-1px);
}

.action-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1e40af;
}

.btn-icon {
    font-size: 1rem;
}

/* JSON Editor Section */
.json-editor-section {
    margin-bottom: 2rem;
}

.editor-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.editor-panel {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.panel-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.control-btn:hover {
    background: #f9fafb;
    border-color: #2563eb;
}

.indent-select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
}

.editor-container {
    position: relative;
}

.json-editor {
    width: 100%;
    height: 400px;
    padding: 1rem;
    border: none;
    background: #ffffff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1f2937;
    resize: vertical;
    outline: none;
}

.json-editor::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.json-output {
    width: 100%;
    height: 400px;
    padding: 1rem;
    margin: 0;
    background: #ffffff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1f2937;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.json-output.highlighted {
    background: #fefefe;
}

/* JSON Syntax Highlighting */
.json-key {
    color: #0066cc;
    font-weight: 500;
}

.json-string {
    color: #22863a;
}

.json-number {
    color: #005cc5;
}

.json-boolean {
    color: #d73a49;
    font-weight: 500;
}

.json-null {
    color: #6f42c1;
    font-weight: 500;
}

.json-punctuation {
    color: #586069;
}

.editor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #6b7280;
}

.status-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
}

.status-indicator.ready {
    background: #d1fae5;
    color: #065f46;
}

.status-indicator.success {
    background: #dcfce7;
    color: #166534;
}

.status-indicator.error {
    background: #fee2e2;
    color: #dc2626;
}

.status-indicator.processing {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Error Section */
.error-section {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.error-header h4 {
    color: #dc2626;
    font-weight: 600;
    margin: 0;
}

.error-icon {
    font-size: 1.2rem;
}

.error-details {
    font-size: 0.9rem;
}

.error-message {
    color: #dc2626;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.error-location {
    color: #7c2d12;
    font-family: monospace;
    background: #fef3c7;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.error-suggestion {
    color: #065f46;
    font-style: italic;
}

/* Tree View */
.tree-view-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tree-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.tree-controls {
    display: flex;
    gap: 0.5rem;
}

.tree-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    max-height: 500px;
    overflow: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tree-node {
    margin-left: 1rem;
    position: relative;
}

.tree-node::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0;
    bottom: 50%;
    width: 1px;
    background: #d1d5db;
}

.tree-toggle {
    cursor: pointer;
    user-select: none;
    color: #6b7280;
    margin-right: 0.5rem;
}

.tree-toggle:hover {
    color: #2563eb;
}

.tree-key {
    color: #0066cc;
    font-weight: 500;
}

.tree-value {
    margin-left: 0.5rem;
}

.tree-type {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Statistics Section */
.stats-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.stats-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Quick Actions Sidebar */
.quick-actions {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.quick-actions h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.quick-action-btn:hover {
    background: #f8fafc;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.quick-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.quick-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
    font-size: 0.9rem;
}

.quick-info p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* Sample Data Section */
.samples-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.samples-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.sample-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sample-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    width: 100%;
    text-align: left;
}

.sample-btn:hover {
    background: #f9fafb;
    border-color: #2563eb;
}

.sample-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Responsive JSON Formatter */
@media (max-width: 1024px) {
    .editor-panels {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .json-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .panel-controls {
        justify-content: center;
    }
    
    .json-editor,
    .json-output {
        height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tree-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .json-actions {
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .panel-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .control-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .json-editor,
    .json-output {
        height: 250px;
        font-size: 0.8rem;
    }
}

/* JPG to PNG Converter Specific Styles */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Options Section */
.options-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.options-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.options-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.option-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.option-group small {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Quality Slider */
.quality-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* Custom Color Input */
.custom-color-input,
.custom-prefix-input {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.custom-color-input label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.custom-prefix-input .form-input {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

/* File List Section */
.file-list-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-list-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

#fileCount {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-list {
    display: grid;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.file-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #d1d5db;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-details {
    font-size: 0.9rem;
    color: #6b7280;
}

.file-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.file-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.file-status.converting {
    background: #dbeafe;
    color: #1e40af;
}

.file-status.success {
    background: #d1fae5;
    color: #065f46;
}

.file-status.error {
    background: #fee2e2;
    color: #dc2626;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-action-btn {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.file-action-btn:hover {
    background: #f9fafb;
    border-color: #2563eb;
}

.file-action-btn.remove {
    color: #dc2626;
}

.file-action-btn.remove:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* Progress Section */
.progress-section {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header h4 {
    color: #1e40af;
    font-weight: 600;
    margin: 0;
}

#progressCount {
    background: #2563eb;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e7ff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #1e40af;
    font-weight: 500;
    text-align: center;
}

/* Results Section */
.results-section {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h3 {
    color: #166534;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.results-stats span {
    background: #dcfce7;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #d1fae5;
    text-align: center;
}

.result-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    margin-bottom: 1rem;
}

.result-info {
    margin-bottom: 1rem;
}

.result-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    word-break: break-word;
}

.result-size {
    font-size: 0.8rem;
    color: #6b7280;
}

.result-download {
    width: 100%;
    padding: 0.5rem;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.result-download:hover {
    background: #15803d;
}

.download-actions {
    text-align: center;
}

.download-actions .btn-large {
    margin-bottom: 1rem;
}

/* Info Section */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.info-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.info-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
    font-size: 0.9rem;
}

.info-content p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Responsive JPG to PNG */
@media (max-width: 768px) {
    .options-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .file-item {
        flex-direction: column;
        text-align: center;
    }
    
    .file-thumbnail {
        align-self: center;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .results-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .quality-slider {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .file-list {
        max-height: 300px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        align-self: center;
    }
    
    .download-actions .btn-large {
        width: 100%;
    }
}