:root{
    --bg:#0f172a;
    --card:#111827;
    --card2:#1e293b;
    --border:rgba(255,255,255,0.08);
    --text:#f8fafc;
    --muted:#94a3b8;
    --accent:#8b5cf6;
    --accent2:#06b6d4;
    --shadow:0 20px 60px rgba(0,0,0,0.35);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    min-height:100vh;
    background:
        radial-gradient(circle at top left, rgba(139,92,246,0.25), transparent 30%),
        radial-gradient(circle at bottom right, rgba(6,182,212,0.2), transparent 30%),
        var(--bg);
    color:var(--text);
    padding:30px;
}

.container{
    width:100%;
    min-height:calc(100vh - 60px);
    border-radius:28px;
    overflow:hidden;
    backdrop-filter: blur(20px);
    background:rgba(17,24,39,0.8);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

header{
    position:relative;
    overflow:hidden;
    padding:40px 50px;
    background:
        linear-gradient(
            135deg,
            rgba(139,92,246,0.95),
            rgba(6,182,212,0.95)
        );
}

header::before{
    content:'';
    position:absolute;
    width:400px;
    height:400px;
    background:rgba(255,255,255,0.08);
    border-radius:50%;
    top:-250px;
    right:-100px;
}

header a {
    position: absolute;
    right: 28px;
    color:#f5f5f5;
    text-decoration: none;
    font-weight: 500;
    transition: 0.25s ease;
}

header a:hover {
    color: white;
}

header h1{
    font-size:42px;
    font-weight:800;
    letter-spacing:-1px;
    margin-bottom:10px;
}

header p{
    color:rgba(255,255,255,0.8);
    font-size:15px;
}

.wrapper{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:28px;
    padding:30px;
}

.sidebar{
    background:rgba(255,255,255,0.03);
    border:1px solid var(--border);
    border-radius:24px;
    padding:24px;
    backdrop-filter:blur(16px);
}

.sidebar h2{
    margin-bottom:24px;
    font-size:22px;
}

.control-group{
    margin-bottom:22px;
}

label{
    display:block;
    margin-bottom:10px;
    color:#e2e8f0;
    font-size:14px;
    font-weight:600;
}

input,
select,
textarea{
    width:100%;
    border:none;
    outline:none;
    border-radius:16px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.06);
    color:white;
    padding:14px 16px;
    font-size:14px;
    transition:0.25s ease;
}

input:focus,
select:focus,
textarea:focus{
    border-color:rgba(139,92,246,0.6);
    box-shadow:0 0 0 4px rgba(139,92,246,0.15);
}

textarea{
    min-height:140px;
    resize:vertical;
}

input::placeholder,
textarea::placeholder{
    color:#64748b;
}

.button-group{
    display:flex;
    gap:12px;
    margin-top:20px;
}

button{
    flex:1;
    border:none;
    border-radius:16px;
    padding:15px;
    cursor:pointer;
    font-weight:700;
    font-size:14px;
    transition:0.25s ease;
}

.primary-btn{
    background:linear-gradient(
        135deg,
        var(--accent),
        var(--accent2)
    );
    color:white;
    box-shadow:
        0 10px 25px rgba(139,92,246,0.35);
}

.primary-btn:hover{
    transform:translateY(-2px);
    opacity:0.95;
}

.secondary-btn{
    background:rgba(255,255,255,0.06);
    color:white;
    border:1px solid rgba(255,255,255,0.08);
}

.secondary-btn:hover{
    background:rgba(255,255,255,0.1);
}

.main-content{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.chart-card,
.preview-card{
    background:rgba(255,255,255,0.03);
    border:1px solid var(--border);
    border-radius:24px;
    padding:24px;
}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.card-header h3{
    font-size:20px;
}

.chart-container{
    position:relative;
    height:500px;
    border-radius:20px;
    overflow:hidden;
    padding:20px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.01)
        );
}

#chart{
    width:100%;
    height:100%;
}

.data-preview{
    background:#020617;
    border-radius:20px;
    padding:20px;
    overflow:auto;
    color:#38bdf8;
    font-family:monospace;
    line-height:1.6;
    max-height:260px;
    border:1px solid rgba(255,255,255,0.06);
}

.badge{
    padding:8px 14px;
    border-radius:999px;
    background:rgba(139,92,246,0.15);
    color:#c4b5fd;
    font-size:12px;
    font-weight:700;
}

@media(max-width:1100px){

    .wrapper{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    body{
        padding:14px;
    }

    header{
        padding:30px;
    }

    header h1{
        font-size:32px;
    }

    .wrapper{
        padding:18px;
    }

    .button-group{
        flex-direction:column;
    }

}