/* ===== Global Styles ===== */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #111; /* dark background for high contrast */
  color: #fff; 
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== Sidebar ===== */
aside {
  width: 220px;
  background: #000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 0 25px rgba(255,255,255,0.05);
}

aside h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

aside ul {
  list-style: none;
  padding: 0;
}

aside li {
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

aside li:hover {
  border-left: 3px solid #fff;
  background: rgba(255,255,255,0.05);
  transform: translateX(6px) rotate(-1deg);
  box-shadow: 0 3px 10px rgba(255,255,255,0.1);
}

/* ===== Header/Toolbar ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #000;
  border-bottom: 2px solid #fff;
  box-shadow: 0 6px 12px rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}

.toolbar {
  display: flex;
  gap: 0.6rem;
  background: #111;
  padding: 0.5rem 0.7rem;
  border-radius: 14px;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.1);
}

/* Toolbar buttons */
.toolbar button {
  background: #111;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  transition: all 0.25s ease;
}

.toolbar button:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px) rotate(-2deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* ===== Main Editor Area ===== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.editor {
  flex: 1;
  padding: 2rem;
  margin-top: 1rem;
  background: #111;
  border-radius: 16px;
  border: 2px solid #fff;
  overflow-y: auto;
  box-shadow: 12px 12px 30px rgba(255,255,255,0.05), -12px -12px 30px rgba(0,0,0,0.3);
}

.editor p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
}

/* ===== Buttons & Icons ===== */
button {
  font-size: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

button:focus {
  outline: none;
}

/* ===== Hover Effects ===== */
button:hover {
  transform: scale(1.05) rotate(-1deg);
  transition: transform 0.2s ease;
}

/* ===== Responsive Layout ===== */
@media screen and (max-width: 768px) {
  aside {
    display: none;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar {
    margin-top: 0.5rem;
  }
}
