: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 EFFECTS
========================================= */

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%;

  position:sticky;

  top:0;

  z-index:1000;

  background:
    rgba(255,255,255,0.04);

  backdrop-filter:blur(18px);

  border-bottom:
    1px solid rgba(255,255,255,0.08);

  padding:10px 24px;
}

/* HEADER TOP */

.header-top{

  width:100%;

  display:flex;

  align-items:center;

  justify-content:space-between;
}
/* 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);
}

.brand-title{

  font-size:27px;

  line-height:1;

  font-weight:800;

  color:white;

  margin:0;
}

/* =========================================
   NAVIGATION
========================================= */

.nav{

  display:flex;

  align-items:center;

  justify-content:flex-end;

  gap:10px;

  margin-left:auto;
}

/* LINKS + BUTTONS */

.nav a,
.dropbtn{

  position:relative;

  display:inline-flex;

  align-items:center;

  justify-content:center;

  color:#dbe7ff;

  text-decoration:none;

  background:none;

  border:none;

  cursor:pointer;

  font-size:13px;

  font-weight:600;

  padding:8px 14px;

  border-radius:10px;

  transition:.3s;
}

/* HOVER EFFECT */

.nav a:hover,
.dropbtn:hover{

  background:
    rgba(255,255,255,0.06);

  color:#00e5ff;
}

/* UNDERLINE EFFECT */

.nav a::after,
.dropbtn::after{

  content:'';

  position:absolute;

  left:14px;

  bottom:4px;

  width:0;

  height:2px;

  background:#00e5ff;

  border-radius:20px;

  transition:.3s ease;
}

/* SHOW UNDERLINE */

.nav a:hover::after,
.dropbtn:hover::after,
.nav a.active::after{

  width:calc(100% - 28px);
}

/* ACTIVE MENU */

.nav a.active{

  color:#00e5ff;

  background:
    rgba(255,255,255,0.05);
}
/* =========================================
   DROPDOWN
========================================= */

.dropdown{
  position:relative;
}

.dropdown-content{

  display:none;

  position:absolute;

  top:110%;
  left:0;

  min-width:250px;

  background:#0f172a;

  border:
    1px solid rgba(255,255,255,0.08);

  border-radius:16px;

  overflow:hidden;

  box-shadow:
    0 15px 30px rgba(0,0,0,0.35);

  z-index:9999;
}

.dropdown-content a{

  display:block;

  padding:13px 16px;

  border-bottom:
    1px solid rgba(255,255,255,0.04);
}

.dropdown-content a:last-child{
  border-bottom:none;
}

.dropdown-content a:hover{

  background:
    rgba(255,255,255,0.05);

  color:#00e5ff;
}

.dropdown:hover .dropdown-content{
  display:block;
}

/* =========================================
   MOBILE MENU BUTTON
========================================= */

.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);
}

/* =========================================
   HEADER SECTION
========================================= */

.editor-header{

  display:flex;

  justify-content:space-between;

  align-items:center;

  margin-bottom:20px;

  padding-bottom:15px;

  border-bottom:
    1px solid rgba(255,255,255,0.08);
}

.editor-header h2{

  font-size:26px;

  font-weight:900;

  background:
    linear-gradient(
      90deg,
      #00e5ff,
      #4f7dff,
      #b75cff
    );

  -webkit-background-clip:text;

  -webkit-text-fill-color:transparent;
}

/* =========================================
   TOOLBAR
========================================= */

.toolbar{

  display:flex;

  flex-wrap:wrap;

  gap:10px;

  margin-bottom:20px;
}

/* =========================================
   BUTTONS
========================================= */

.action-btn{

  padding:10px 16px;

  border:none;

  border-radius:10px;

  cursor:pointer;

  font-weight:700;

  color:white;

  transition:.3s;

  font-size:13px;
}

.action-btn:hover{
  transform:translateY(-2px);
}

.btn-validate{
  background:
    linear-gradient(135deg,#00e5ff,#0066ff);
}

.btn-upload{
  background:
    linear-gradient(135deg,#00d68f,#00a86b);
}

.btn-download{
  background:
    linear-gradient(135deg,#7a5cff,#5b34ff);
}

.btn-refresh{
  background:
    linear-gradient(135deg,#ff6b6b,#ff3b3b);
}

/* =========================================
   EDITOR
========================================= */

.label{

  display:block;

  margin-bottom:10px;

  font-size:14px;

  font-weight:700;

  color:#dbe7ff;
}

.CodeMirror{

  height:520px;

  border-radius:18px;

  overflow:hidden;

  border:
    1px solid rgba(255,255,255,0.08);

  font-size:14px;
}

/* =========================================
   RESULT
========================================= */

.success{

  margin-top:20px;

  padding:15px;

  border-radius:14px;

  background:
    rgba(0,214,143,0.12);

  border:
    1px solid rgba(0,214,143,0.25);

  color:#8fffd0;
}

.error{

  margin-top:20px;

  padding:15px;

  border-radius:14px;

  background:
    rgba(255,59,59,0.12);

  border:
    1px solid rgba(255,59,59,0.25);

  color:#ffb4b4;

  white-space:pre-wrap;
}

#fileInput{
  display:none;
}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar{
  width:8px;
  height:8px;
}

::-webkit-scrollbar-track{
  background:#0a1124;
}

::-webkit-scrollbar-thumb{
  background:#24304f;
  border-radius:20px;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  .nav{

    display:none;

    position:absolute;

    top:72px;

    right:14px;

    width:250px;

    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;
  }

  .editor-header{

    flex-direction:column;

    align-items:flex-start;

    gap:15px;
  }

  .toolbar{
    flex-direction:column;
  }

  .action-btn{
    width:100%;
  }

  .CodeMirror{
    height:420px;
  }

  .brand-title{
    font-size:22px;
  }

}

