/* JSON Converter Shared Modern Styles */

.json-converter_mainCard__omdjS {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.json-converter_mainCard__omdjS:hover {
    border-color: rgba(14, 165, 234, 0.3);
    box-shadow: 0 8px 32px rgba(14, 165, 234, 0.1);
}

[data-theme="light"] .json-converter_mainCard__omdjS {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .json-converter_mainCard__omdjS:hover {
    border-color: rgba(14, 165, 234, 0.3);
    box-shadow: 0 8px 32px rgba(14, 165, 234, 0.08);
}

/* Grid Layout */
.json-converter_grid__oCYXu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

/* Section Styles */
.json-converter_section__Ln_bW {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.json-converter_sectionHeader__lvOv_ {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.json-converter_labelWrapper__ThhG7 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.json-converter_labelIcon__lpTan {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 234, 0.3));
}

.json-converter_label__t04BG {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
}

[data-theme="light"] .json-converter_label__t04BG {
    color: var(--text-primary, #334155);
}

.json-converter_charCount__IpTbu {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    font-weight: 500;
}

/* Textarea Wrapper */
.json-converter_textareaWrapper__6Vh0i {
    position: relative;
    flex: 1;
}

.json-converter_textarea__wJHAj {
    width: 100%;
    min-height: 320px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.9375rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    outline: none;
}

.json-converter_textarea__wJHAj:focus {
    border-color: rgba(14, 165, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(14, 165, 234, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.json-converter_textarea__wJHAj::placeholder {
    color: var(--text-secondary, #64748b);
}

[data-theme="light"] .json-converter_textarea__wJHAj {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary, #1e293b);
}

[data-theme="light"] .json-converter_textarea__wJHAj:focus {
    border-color: rgba(14, 165, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(14, 165, 234, 0.08);
    background: #ffffff;
}

/* Clear Button */
.json-converter_clearButton__npC7l {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.json-converter_clearButton__npC7l:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

.json-converter_clearButton__npC7l:active {
    transform: scale(0.95);
}

/* Result Display */
.json-converter_resultWrapper__0Axco {
    position: relative;
    flex: 1;
}

.json-converter_resultBox__c1wC8 {
    width: 100%;
    min-height: 320px;
    max-height: 600px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: auto;
    font-size: 0.9375rem;
    line-height: 1.6;
}

[data-theme="light"] .json-converter_resultBox__c1wC8 {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.json-converter_resultBox__c1wC8 pre {
    margin: 0;
    white-space: pre;
    tab-size: 4;
}

.json-converter_resultBox__c1wC8 code {
    font-size: 0.9375rem;
}

/* Empty State */
.json-converter_emptyState__0WkVO {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: var(--text-secondary, #64748b);
    text-align: center;
    gap: 12px;
}

.json-converter_emptyIcon__Jyhx1 {
    font-size: 3rem;
    opacity: 0.5;
}

.json-converter_emptyText__y9T9Z {
    font-size: 1rem;
}

/* Button Group */
.json-converter_buttonGroup__7arEu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.json-converter_button__GP5rz {
    padding: 12px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.json-converter_button__GP5rz::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.json-converter_button__GP5rz:hover::before {
    width: 300px;
    height: 300px;
}

.json-converter_button__GP5rz:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.json-converter_button__GP5rz:disabled:hover {
    transform: none;
}

.json-converter_buttonPrimary___OYz9 {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(14, 165, 234, 0.3);
}

.json-converter_buttonPrimary___OYz9:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(14, 165, 234, 0.4);
    transform: translateY(-2px);
}

.json-converter_buttonSecondary__6sF81 {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #e2e8f0);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.json-converter_buttonSecondary__6sF81:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

[data-theme="light"] .json-converter_buttonSecondary__6sF81 {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary, #1e293b);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .json-converter_buttonSecondary__6sF81:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

.json-converter_button__GP5rz:active:not(:disabled) {
    transform: translateY(0);
}

/* Copy Button in Result */
.json-converter_copyButton__sNKts {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 16px;
    background: rgba(14, 165, 234, 0.1);
    border: 1px solid rgba(14, 165, 234, 0.3);
    border-radius: 8px;
    color: #0ea5e9;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.json-converter_copyButton__sNKts:hover {
    background: rgba(14, 165, 234, 0.2);
    border-color: rgba(14, 165, 234, 0.5);
    transform: translateY(-2px);
}

.json-converter_copyButton__sNKts:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .json-converter_grid__oCYXu {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .json-converter_mainCard__omdjS {
        padding: 24px 20px;
    }

    .json-converter_textarea__wJHAj,
    .json-converter_resultBox__c1wC8 {
        min-height: 240px;
    }

    .json-converter_buttonGroup__7arEu {
        flex-direction: column;
    }

    .json-converter_button__GP5rz {
        width: 100%;
        justify-content: center;
    }
}

