 :root{
    --gold:#facc15;
    --pink:#ec4899;
    --blue:#3b82f6;
    --dark:#020617;
    --text:#f8fafc;
    --muted:#cbd5e1;
}

/* =========================
GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{

    background:
    linear-gradient(
    135deg,
    #020617 0%,
    #111827 25%,
    #312e81 55%,
    #7c3aed 100%);

    color:white;

    overflow-x:hidden;

    min-height:100vh;
}

/* =========================
ANIMATED BACKGROUND
========================= */

body::before{

    content:'';

    position:fixed;

    inset:0;

    background:
    radial-gradient(circle at 20% 20%, rgba(236,72,153,0.18), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(59,130,246,0.15), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(250,204,21,0.12), transparent 30%);

    animation:bgMove 15s linear infinite;

    z-index:-1;
}

@keyframes bgMove{

0%{
    transform:translateY(0px);
}

50%{
    transform:translateY(-30px);
}

100%{
    transform:translateY(0px);
}

}

/* =========================
HEADER
========================= */

.site-header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:9999;

    backdrop-filter:blur(18px);

    background:rgba(2,6,23,0.78);

    border-bottom:1px solid rgba(255,255,255,0.08);

    box-shadow:
    0 10px 40px rgba(0,0,0,0.25);
}

/* INNER HEADER */

.site-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 30px;

    height:90px;
}

/* =========================
LOGO
========================= */

.brand-container{

    display:flex;

    align-items:center;

    gap:16px;
}

.site-logo{

    width:72px;

    height:72px;

    border-radius:18px;

    background:white;

    padding:6px;

    object-fit:contain;

    box-shadow:
    0 10px 35px rgba(250,204,21,0.25);
}

.brand-text h2{

    font-size:24px;

    font-weight:800;

    color:white;

    line-height:1.1;
}

.brand-text span{

    color:var(--muted);

    font-size:13px;
}

/* =========================
NAVIGATION
========================= */

.nav{

    display:flex;

    align-items:center;

    gap:10px;
}

.nav a,
.dropbtn{

    color:white;

    text-decoration:none;

    background:none;

    border:none;

    padding:12px 18px;

    border-radius:14px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:0.35s;

    display:flex;

    align-items:center;

    gap:8px;
}

.nav a:hover,
.dropbtn:hover{

    background:rgba(255,255,255,0.08);

    color:var(--gold);

    transform:translateY(-2px);
}

.nav a.active{

    background:
    linear-gradient(
    135deg,
    rgba(250,204,21,0.18),
    rgba(236,72,153,0.15));

    color:var(--gold);
}

/* =========================
DROPDOWN
========================= */

.dropdown{

    position:relative;
}

.dropdown-content{

    position:absolute;

    top:58px;

    left:0;

    min-width:270px;

    display:none;

    flex-direction:column;

    background:rgba(15,23,42,0.97);

    border-radius:22px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,0.08);

    box-shadow:
    0 25px 50px rgba(0,0,0,0.45);

    z-index:9999;
}

.dropdown-content a{

    padding:15px 22px;

    transition:0.3s;

    color:white;
}

.dropdown-content a:hover{

    background:
    linear-gradient(
    to right,
    rgba(250,204,21,0.18),
    rgba(236,72,153,0.12));

    padding-left:30px;
}

.dropdown:hover .dropdown-content{

    display:flex;
}

/* =========================
MENU BUTTON
========================= */

.menu-toggle{

    display:none;

    width:52px;

    height:52px;

    border:none;

    border-radius:14px;

    background:rgba(255,255,255,0.08);

    color:white;

    font-size:22px;

    cursor:pointer;
}

/* =========================
MAIN APP
========================= */

.main-app{

    display:flex;

    gap:20px;

    width:100%;

    min-height:100vh;

    padding-top:110px;

    padding-left:20px;

    padding-right:20px;

    padding-bottom:20px;
}

/* =========================
SIDEBAR
========================= */

.sidebar{

    width:340px;

    min-width:340px;

    background:rgba(255,255,255,0.06);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:28px;

    padding:18px;

    backdrop-filter:blur(16px);

    box-shadow:
    0 25px 60px rgba(0,0,0,0.35);

    overflow-y:auto;

    max-height:calc(100vh - 130px);
}

/* TOOL BOX */

.tool-section{

    background:rgba(255,255,255,0.05);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:20px;

    padding:16px;

    margin-bottom:16px;
}

.tool-section label{

    display:block;

    margin-bottom:14px;

    font-size:13px;

    font-weight:700;

    color:var(--gold);

    letter-spacing:0.5px;
}

/* =========================
BUTTONS
========================= */

button{

    background:
    linear-gradient(
    135deg,
    rgba(59,130,246,0.9),
    rgba(124,58,237,0.9));

    border:none;

    color:white;

    padding:11px 14px;

    border-radius:14px;

    cursor:pointer;

    font-size:13px;

    font-weight:600;

    transition:0.3s;
}

button:hover{

    transform:translateY(-2px);

    box-shadow:
    0 12px 30px rgba(59,130,246,0.35);
}

button.active{

    background:
    linear-gradient(
    135deg,
    #22c55e,
    #16a34a);
}

/* GRID */

.btn-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;
}

/* =========================
RANGE
========================= */

input[type="range"]{

    width:100%;
}

/* =========================
DOWNLOAD BUTTON
========================= */

#download{

    width:100%;

    margin-top:20px;

    padding:16px;

    border-radius:18px;

    font-size:15px;

    font-weight:800;

    background:
    linear-gradient(
    135deg,
    #22c55e,
    #16a34a);
}

/* =========================
WORKSPACE
========================= */

.workspace{

    flex:1;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(255,255,255,0.05);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:28px;

    backdrop-filter:blur(16px);

    position:relative;

    overflow:hidden;

    min-height:calc(100vh - 130px);

    box-shadow:
    0 25px 60px rgba(0,0,0,0.35);
}

/* CANVAS */

canvas{

    background:white;

    border-radius:22px;

    max-width:92%;

    max-height:92%;

    box-shadow:
    0 20px 55px rgba(0,0,0,0.45);
}

/* =========================
BRUSH CURSOR
========================= */

#brush-cursor{

    position:fixed;

    border:2px solid white;

    border-radius:50%;

    pointer-events:none;

    transform:translate(-50%, -50%);

    display:none;

    z-index:99999;

    mix-blend-mode:difference;
}

/* =========================
SCROLLBAR
========================= */

::-webkit-scrollbar{

    width:8px;
}

::-webkit-scrollbar-track{

    background:rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb{

    background:rgba(255,255,255,0.2);

    border-radius:20px;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:1100px){

.main-app{

    flex-direction:column;
}

.sidebar{

    width:100%;

    min-width:100%;
}

.workspace{

    min-height:700px;
}

}

@media(max-width:850px){

.menu-toggle{

    display:block;
}

.nav{

    display:none;

    position:absolute;

    top:90px;

    left:0;

    width:100%;

    flex-direction:column;

    align-items:flex-start;

    background:#0f172a;

    padding:20px;
}

.nav.active{

    display:flex;
}

.dropdown{

    width:100%;
}

.dropdown-content{

    position:static;

    width:100%;

    margin-top:8px;
}

.site-header{

    padding:0 18px;
}

.brand-text h2{

    font-size:20px;
}

.site-logo{

    width:62px;

    height:62px;
}

}

@media(max-width:600px){

.btn-grid{

    grid-template-columns:1fr;
}

.main-app{

    padding-left:12px;

    padding-right:12px;
}

.sidebar{

    padding:14px;
}

.workspace{

    min-height:500px;
}

}
