html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; }
  .wrapper { flex: 1; display: flex; min-height: 0; height: 100vh; width: 100vw; box-sizing: border-box; }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212;
    color: #d4d4d4;
    display: flex;
    flex-direction: column;
    -webkit-user-select: none;
    user-select: none;
    cursor: auto; /* Default system cursor restored */
  }

  /* Interactive elements use standard pointer */
  .logo, .dashboard-btn, .tab, .save-btn, .modal-btn, .legal-links a, button, .usage-box { cursor: pointer; }

  .topbar {
    background: rgba(30, 30, 30, 0.95);
    padding: 15px 30px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid #333;
  }
  .logo { text-decoration: none; display: flex; }
  .logo .blue { color: #569cd6; }
  .logo .pink { color: #ff4da6; }

  .dashboard-btn { 
    background: #1591EA; 
    color: white; 
    padding: 8px 18px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-size: 14px; 
    transition: 0.3s ease; 
  }
  .dashboard-btn:hover { 
    background: #ff4da6; 
    transform: scale(1.05); 
    box-shadow: 0 0 15px rgba(255, 77, 166, 0.4);
  }

  .editor { flex: 1; background: #1e1e1e; display: flex; flex-direction: column; border-right: 1px solid #333; height: 100%; }
  .tabs { display: flex; background: #252526; height: 40px; align-items: stretch; }
  .tab { display: flex; align-items: center; gap: 10px; padding: 0 20px; background: #2d2d2d; color: #969696; border-right: 1px solid #1e1e1e; font-size: 13px; transition: 0.2s; }
  .tab.active { background: #1e1e1e; color: #ffffff; border-bottom: 2px solid #007acc; }
  .tab-spacer { flex: 1; background: #252526; }
  .save-btn { margin: 6px 10px; background: #0e639c; border: none; color: white; padding: 0 20px; font-size: 12px; border-radius: 4px; font-weight: 600; min-width: 80px; transition: 0.2s; }
  .save-btn:hover { opacity: 0.9; transform: translateY(-1px); }
  
  /* Makes icons slightly transparent when inactive, fully white when active */
.tab img {
    opacity: 0.6;
    transition: 0.2s;
}

.tab.active img, .tab:hover img {
    opacity: 1;
}

  #editor-container { flex: 1; position: relative; overflow: hidden; }
  .monaco-instance { position: absolute; inset: 0; visibility: hidden; z-index: 1; }
  .monaco-instance.active { visibility: visible; z-index: 2; }

  #uploadImageEditor { overflow-y: auto; background: #1e1e1e; }
  .gallery-container { padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
  .image-card { background: #2d2d2d; border: 1px solid #444; border-radius: 8px; padding: 12px; text-align: center; position: relative; transition: 0.3s; }
  .image-card img { max-width: 100%; height: 100px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; border: 1px solid #111; }
  .alias-label { font-size: 12px; color: #fff; font-weight: bold; display: block; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  
  .usage-box { background: #111; border: 1px solid #333; padding: 8px; border-radius: 4px; transition: 0.2s; position: relative; }
  .usage-box:hover { border-color: #569cd6; background: #1a1a1a; }
  .usage-box code { font-size: 11px; color: #569cd6; font-family: monospace; display: block; }
  .usage-box small { color: #888; font-size: 9px; display: block; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

  .preview { flex: 1; background: white; height: 100%; }
  iframe { width: 100%; height: 100%; border: none; }

  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; justify-content: center; align-items: center; z-index: 9999; }
  .modal-box { background: #252526; border: 1px solid #444; padding: 30px; border-radius: 12px; text-align: center; }

  .footer { background: #1e1e1e; padding: 15px; text-align: center; border-top: 1px solid #333; font-size: 12px; }
  .legal-links a { color: #808080; text-decoration: none; margin: 0 15px; transition: 0.3s ease; }
  .legal-links a:hover { color: #009dff; }