:root{
  --primary:#00e5ff;
  --secondary:#7a5cff;
  --bg:#050816;
  --card:#0a1124;
  --border:rgba(255,255,255,0.08);
  --text:#dbe7ff;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:white;
  overflow-x:hidden;
  overflow-y:auto;
}

/* BACKGROUND */

body::before{
  content:'';
  position:fixed;
  width:700px;
  height:700px;
  background:radial-gradient(circle,#00d9ff22,transparent 70%);
  top:-250px;
  left:-250px;
  z-index:-1;
}

body::after{
  content:'';
  position:fixed;
  width:700px;
  height:700px;
  background:radial-gradient(circle,#7a5cff22,transparent 70%);
  bottom:-250px;
  right:-250px;
  z-index:-1;
}

/* HEADER */

.site-header{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px;
  background:rgba(255,255,255,0.04);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,0.08);
  position:sticky;
  top:0;
  z-index:1000;
}

.header-top{
  display:flex;
  align-items:center;
  gap:12px;
}

/* LOGO */

.logo{
  display:flex;
  align-items:center;
  gap:15px;
}

.site-logo{
  width:58px;
  height:58px;

  object-fit:contain;

  border-radius:16px;

  box-shadow:
    0 0 25px rgba(0,229,255,0.35);
}

/* NAVIGATION */

.nav{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav a,
.dropbtn{
  color:#dbe7ff;
  text-decoration:none;
  background:none;
  border:none;
  cursor:pointer;
  font-size:13px;
  font-weight:600;
  padding:8px 12px;
  border-radius:10px;
  transition:0.3s;
}

.nav a:hover,
.dropbtn:hover{
  background:rgba(255,255,255,0.06);
  color:#00e5ff;
}

.dropdown{
  position:relative;
}

.dropdown-content{
  display:none;
  position:absolute;
  top:105%;
  left:0;
  min-width:240px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 15px 30px rgba(0,0,0,0.35);
  z-index:999;
}

.dropdown-content a{
  display:block;
  padding:12px 15px;
  border-bottom:1px solid rgba(255,255,255,0.04);
}

.dropdown:hover .dropdown-content{
  display:block;
}

.menu-toggle{
  display:none;
  background:none;
  border:none;
  color:white;
  font-size:24px;
  cursor:pointer;
}

/* MAIN CONTAINER */

.container{
  width:95%;
  max-width:1200px;
  margin:30px auto;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:22px;
  padding:25px;
  backdrop-filter:blur(18px);
  box-shadow:0 15px 40px rgba(0,0,0,0.25);
}

/* TITLE */

.page-title{
  margin-bottom:20px;
}

.page-title h2{
  font-size:28px;
  font-weight:900;
  background:linear-gradient(90deg,#00e5ff,#4f7dff,#b75cff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* STATUS */

#status{
  margin-bottom:15px;
  padding:12px;
  border-radius:12px;
  background:rgba(255,59,59,0.12);
  border:1px solid rgba(255,59,59,0.2);
  color:#ffb4b4;
  font-size:13px;
  min-height:45px;
}

/* UPLOAD AREA */

.upload-area{
  margin-bottom:20px;
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
}

/* ACTIONS */

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:15px;
}

/* BUTTONS */

button{
  padding:10px 18px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  color:white;
  transition:0.3s;
  font-size:13px;
}

button:hover{
  transform:translateY(-2px);
}

.btn-convert{
  background:linear-gradient(135deg,#00e5ff,#0066ff);
}

.btn-download{
  background:linear-gradient(135deg,#00d68f,#00a86b);
}

.btn-reset{
  background:linear-gradient(135deg,#64748b,#334155);
}

.btn-download:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

/* FILE INPUT */

input[type="file"]{
  width:100%;
  padding:10px;
  border-radius:10px;
  background:#0a1124;
  color:white;
  border:1px solid rgba(255,255,255,0.08);
  font-size:12px;
}

/* EDITORS */

.editor-container{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.editor-box{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.editor-box label{
  font-size:14px;
  font-weight:700;
  color:#dbe7ff;
}

textarea,
#jsonOutput{
  width:100%;
  height:520px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.08);
  background:#0a1124;
  color:#dbe7ff;
  font-family:'Courier New',monospace;
  font-size:13px;
  resize:vertical;
  outline:none;
}

textarea::placeholder{
  color:#64748b;
}

#jsonOutput{
  overflow:auto;
  white-space:pre-wrap;
}

/* MOBILE */

@media(max-width:900px){

  .editor-container{
    grid-template-columns:1fr;
  }

}

@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  .nav{
    display:none;
    position:absolute;
    top:72px;
    right:12px;
    width:240px;
    background:#0f172a;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    padding:14px;
    flex-direction:column;
    align-items:flex-start;
    box-shadow:0 15px 30px rgba(0,0,0,0.35);
  }

  .nav.active{
    display:flex;
  }

  .dropdown{
    width:100%;
  }

  .dropdown-content{
    position:relative;
    width:100%;
    top:6px;
    margin-bottom:8px;
  }

  .container{
    width:94%;
    padding:18px;
  }

  .actions{
    flex-direction:column;
  }

  button{
    width:100%;
  }

  .logo-text{
    display:none;
  }

  textarea,
  #jsonOutput{
    height:400px;
  }

}