body {
  margin: 0;
  display: flex;
  height: 100vh;
  background: #1e1e1e;
  color: white;
  font-family: sans-serif;
  overflow: hidden;
}
#sidebar {
  width: 320px;
  min-width: 100px;
  max-width: 600px;
  background: #2b2b2b;
  padding: 10px;
  overflow-y: auto;
  position: relative;
  flex-shrink: 0;
}
#resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: #444;
  cursor: col-resize;
  transition: background 0.2s;
}
#resize-handle:hover {
  background: #666;
}
#resize-handle.dragging {
  background: #888;
}
#files button {
  background: none;
  border: none;
  color: white;
  text-align: left;
  margin: 5px 0;
  cursor: pointer;
  width: 100%;
}
#files button.active {
  background: #444;
}
#search-container {
  margin: 10px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
#search-input {
  flex: 1;
  background: #333;
  border: 1px solid #555;
  border-radius: 4px;
  color: white;
  padding: 6px 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}
#search-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}
#search-input::placeholder {
  color: #888;
}
#search-btn {
  background: #444;
  border: 1px solid #555;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
#search-btn:hover {
  background: #555;
  border-color: #777;
}
#clear-search {
  background: #666;
  border: 1px solid #777;
  color: white;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  display: none;
  align-items: center;
  transition: all 0.3s ease;
}
#clear-search:hover {
  background: #777;
}
#clear-search.visible {
  display: flex;
}
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
#controls {
  background: #222;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#controls button {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}
#controls button:hover {
  background: linear-gradient(135deg, #218838, #1ea687);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}
#controls button:active {
  transform: translateY(0);
}
#editor {
  flex: 1;
  border-top: 1px solid #444;
}
#output {
  white-space: pre-wrap;
  background: #111;
  padding: 10px;
  height: 200px;
  overflow-y: auto;
}
#info-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #404040, #2a2a2a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e0e0e0;
  font-size: 20px;
  border: 2px solid #555;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
#info-icon:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #505050, #3a3a3a);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  border-color: #777;
  color: white;
}
#info-popup {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 300px;
  background: #2b2b2b;
  border: 1px solid #666;
  border-radius: 8px;
  padding: 15px;
  color: white;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: none;
}
#info-popup h4 {
  margin: 0 0 10px 0;
  color: #4caf50;
  font-size: 16px;
}
#info-popup p {
  margin: 8px 0;
}
#info-popup .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#info-popup .close-btn:hover {
  color: white;
}
