: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:hidden;
}

/* 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;
}

/* PAGE TITLE */

.page-title{
  padding:18px 24px 8px;
}

.page-title 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{
  width:95%;
  margin:0 auto 10px;
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(18px);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* BUTTONS */

button{
  padding:10px 16px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  color:white;
  transition:0.3s;
  font-size:13px;
}

button:hover{
  transform:translateY(-2px);
}

.toolbar button:nth-child(1){
  background:linear-gradient(135deg,#00e5ff,#0066ff);
}

.toolbar button:nth-child(2){
  background:linear-gradient(135deg,#7a5cff,#5b34ff);
}

.toolbar button:nth-child(3){
  background:linear-gradient(135deg,#00d68f,#00a86b);
}

.toolbar button:nth-child(4){
  background:linear-gradient(135deg,#ff9800,#ff6b00);
}

.toolbar button:nth-child(5){
  background:linear-gradient(135deg,#ff4d6d,#ff1744);
}

.toolbar button:nth-child(6){
  background:linear-gradient(135deg,#64748b,#334155);
}

input[type="file"]{
  padding:8px;
  border-radius:10px;
  background:#0a1124;
  color:white;
  border:1px solid rgba(255,255,255,0.08);
  font-size:12px;
}

/* EDITOR AREA */

.container{
  width:95%;
  margin:auto;
  display:flex;
  gap:12px;
  height:calc(100vh - 270px);
}

.panel{
  flex:1;
  display:flex;
  flex-direction:column;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  overflow:hidden;
  backdrop-filter:blur(18px);
}

.panel-header{
  padding:12px 15px;
  background:rgba(255,255,255,0.03);
  border-bottom:1px solid rgba(255,255,255,0.08);
  font-size:13px;
  font-weight:700;
  color:#dbe7ff;
}

.editor{
  flex:1;
}

/* MESSAGE PANEL */

#messagePanel{
  width:95%;
  margin:10px auto;
  min-height:55px;
  background:rgba(255,59,59,0.12);
  border:1px solid rgba(255,59,59,0.2);
  border-radius:14px;
  padding:10px;
  overflow:auto;
  color:#ffb4b4;
  font-size:12px;
}

#messagePanel div{
  padding:6px 8px;
  margin-bottom:5px;
  background:rgba(255,255,255,0.04);
  border-left:3px solid #ff4d6d;
  border-radius:6px;
}

/* STATUS */

.status{
  width:95%;
  margin:0 auto 10px;
  padding:10px 14px;
  border-radius:12px;
  background:linear-gradient(135deg,#007acc,#0055aa);
  color:white;
  font-size:12px;
  font-weight:600;
}

/* SCROLLBAR */

::-webkit-scrollbar{
  width:8px;
  height:8px;
}

::-webkit-scrollbar-track{
  background:#0a1124;
}

::-webkit-scrollbar-thumb{
  background:#24304f;
  border-radius:20px;
}

/* MOBILE */

@media(max-width:900px){

  .container{
    flex-direction:column;
    height:auto;
  }

  .panel{
    min-height:400px;
  }

}

@media(max-width:768px){

  body{
    overflow:auto;
  }

  .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;
  }

  .toolbar{
    flex-direction:column;
  }

  .toolbar button,
  input[type="file"]{
    width:100%;
  }

  .logo-text{
    display:none;
  }

}