.container{
    max-width:1400px;
    margin:auto;
    padding:20px;
}

/* HERO */

.hero-section{
       text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    border-radius: 12px;
    color: #fff;
}

.hero-section h1{
       font-size: 45px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 10px;
}

.hero-section p{
    color:rgba(255,255,255,.95);
    max-width:800px;
    margin:auto;
    line-height:1.7;
    font-size:16px;
}

/* CONVERTER */

.converter-section{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:25px;
}

/* CARDS */

.editor-card{
    background: #f9f9f9 !important;
    border: 1px solid #f3c6cf !important;
    border-radius:20px;
    padding:20px;
    box-shadow:0 10px 30px rgb(225 188 204 / 76%);
    transition:.3s;
}

.editor-card:hover{
    box-shadow:0 15px 35px rgba(102,48,198,.22);
}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
    gap:10px;
}

.card-header h3{
    font-size:22px;
    color:#1f2937;
    margin:0;
}

/* TEXTAREA */

textarea{
    width:100%;
    height:420px;
    border: 2px solid #ff8ba3 !important;
    border-radius:14px !important;
    padding:15px;
    resize:vertical;
    outline:none;
    font-size:14px;
    line-height:1.7;
    font-family:Consolas, monospace;
    transition:.3s;
}

textarea:focus{
    border-color:#6630C6;
    box-shadow:0 0 0 4px rgba(102,48,198,.12);
}

#jsonOutput{
    background:#fafafa;
}

/* BUTTONS */

.upload-btn,
.small-btn{
    border:none;
    cursor:pointer;
    color:#fff;
    font-size:14px;
    font-weight:700;
    padding:10px 18px;
    border-radius:10px !important;
    text-decoration:none;
    background:linear-gradient(219deg,#FB0E76 0%,#910694 100%);
    transition:.3s;
}

.upload-btn:hover,
.small-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgb(225 188 204 / 76%);
}

/* ACTION BUTTONS */

.action-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:25px;
}

.action-buttons button{
    flex:1;
    min-width:220px;
    border:none;
    cursor:pointer;
    color:#fff;
    font-size:15px;
    font-weight:700;
    padding:15px;
    border-radius:14px;
    background:linear-gradient(219deg,#FB0E76 0%,#910694 100%);
    transition:.3s;
}

.action-buttons button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgb(225 188 204 / 76%);
}

/* ERROR BOX */

.error-box{
    background:#fee2e2;
    border:1px solid #ef4444;
    color:#b91c1c;
    padding:15px;
    border-radius:12px;
    margin-bottom:25px;
    font-weight:600;
}

/* EXAMPLE CARD */

.example-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 10px 30px rgba(102,48,198,.15);
}

.example-card h2{
    color:#1f2937;
    margin-bottom:12px;
    font-size:22px;
}

.example-card pre{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:15px;
    overflow-x:auto;
    font-size:14px;
    line-height:1.7;
    margin-bottom:20px;
    font-family:Consolas, monospace;
}

/* RESPONSIVE */

@media(max-width:900px){

    .converter-section{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .hero-section h1{
        font-size:32px;
    }

    .action-buttons{
        flex-direction:column;
    }

    .action-buttons button{
        width:100%;
    }

    .card-header{
        flex-direction:column;
        align-items:flex-start;
    }

    textarea{
        height:320px;
    }

}

@media(max-width:480px){

    .container{
        padding:15px;
    }

    .hero-section{
        padding:30px 20px;
    }

    .hero-section h1{
        font-size:28px;
    }

    .hero-section p{
        font-size:14px;
    }

    .card-header h3{
        font-size:20px;
    }

    textarea{
        height:280px;
        font-size:13px;
    }

}