:root {
  --bg-dark: #0a0a0a;         
  --container-bg: #121212;    
  --text-main: #e0e0e0;       
  --accent-neon: #39FF14;     
  --text-muted: #666666;
  --hover-bg: rgba(57, 255, 20, 0.08); 
  --border-color: #1f1f1f;
  --glass-bg: rgba(10, 10, 10, 0.8);
}

* {
  box-sizing: border-box;
  transition: all 0.2s ease;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace; 
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.editor-header {
  width: 100%;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid var(--border-color);
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 850px;
  background: var(--container-bg);
  margin: 40px auto;
  padding: 80px 100px;
  min-height: 90vh;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}


.page-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  outline: none;
  color: var(--accent-neon);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
  letter-spacing: -1.5px;
}

.page-title:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}

#editor {
  margin-top: 30px;
  border-top: 1px dashed var(--border-color);
  padding-top: 25px;
}

.block {
  padding: 8px 12px;
  margin: 4px 0;
  font-size: 16px;
  outline: none;
  border-radius: 6px;
  border: 1px solid transparent;
}

.block:hover {
  background: var(--hover-bg);
  border-color: rgba(57, 255, 20, 0.1);
}

.block:focus {
  background: rgba(57, 255, 20, 0.05);
  border-color: var(--accent-neon);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

.block:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  font-style: italic;
}

.h1-block {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--accent-neon);
  margin-top: 35px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.li-block {
  display: list-item;
  list-style-type: square; 
  margin-left: 30px;
  color: var(--accent-neon);
}

/* Status Bar */
.status-bar {
  font-size: 12px;
  color: var(--accent-neon);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-neon);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Help Tip - Floating Badge */
.help-tip {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-neon);
  color: black;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

code {
  background: rgba(0,0,0,0.3);
  padding: 2px 5px;
  border: 1px solid var(--accent-neon);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-neon);
}

.logout-link {
    background: transparent;
    border: 1px solid #ff4444; /* Red for Logout */
    color: #ff4444;
    padding: 2px 8px;
    margin-left: 15px;
    cursor: pointer;
    font-size: 11px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
}

.logout-link:hover {
    background: #ff4444;
    color: black;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}
.status-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Sab kuch right side par rakhe ga */
    padding: 10px 20px;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-neon);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-neon);
}