/* Modern IDE Görünümü */

:root {
  --bg-main: #181a1b;
  --bg-panel: #23272e;
  --bg-editor: #1e1e1e;
  --bg-console: #23272e;
  --border: #282c34;
  --accent: #4f8cff;
  --accent-hover: #357ae8;
  --text-main: #e0e6ed;
  --text-secondary: #a0aec0;
  --shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
  --radius: 10px;
  --font-main: 'JetBrains Mono', 'Fira Mono', 'Roboto Mono', 'Consolas', monospace;
}

body, html {
  height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-main);
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg-main);
}

header {
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
}

nav button, .run-button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  margin-right: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(79,140,255,0.08);
  transition: background 0.2s, transform 0.1s;
}
nav button:hover, .run-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.03);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: var(--bg-panel);
  min-width: 160px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  z-index: 10;
  top: 110%;
  left: 0;
  border: 1px solid var(--border);
}

.dropdown-content a {
  color: var(--text-main);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.dropdown-content a:hover {
  background: var(--accent);
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

main {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
  background: var(--bg-main);
}

.element {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 8px 8px 0;
}

#editor-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-editor);
  border-radius: var(--radius);
  margin: 16px;
  box-shadow: var(--shadow);
}

#editor {
  flex: 1;
  width: 100%;
  background: var(--bg-editor);
  color: var(--text-main);
  border: none;
  padding: 24px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  resize: none;
  outline: none;
  box-shadow: none;
  transition: border 0.2s;
}
#editor:focus {
  border: 2px solid var(--accent);
}

#console-container {
  background: var(--bg-console);
  border-top: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 16px 16px 16px;
  box-shadow: var(--shadow);
  padding: 0;
  overflow-y: auto;
}

#consoleOutput {
  background: transparent;
  color: var(--text-secondary);
  padding: 18px 24px;
  font-size: 1rem;
  font-family: var(--font-main);
  border: none;
  border-radius: var(--radius);
  white-space: pre-wrap;
}

#element2 {
  background: var(--bg-panel);
  border-radius: var(--radius);
  margin: 16px 16px 16px 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

#iframet {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
  background: #222;
  box-shadow: var(--shadow);
}

.suggestions {
  position: absolute;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  margin: 0;
  padding: 5px 0;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 100;
}
.suggestions li {
  padding: 8px 18px;
  cursor: pointer;
  color: var(--text-main);
  border-radius: var(--radius);
  transition: background 0.2s;
}
.suggestions li.selected,
.suggestions li:hover {
  background: var(--accent);
  color: #fff;
}

#bas {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 8px;
  letter-spacing: 1px;
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--bg-panel);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius);
}

.comment {
  color: #6a9955;
}

