:root {
  --bg-color: #e6f3ff;
  --card-bg-color: #ffffff;
  --text-color: #5a8bae;
  --editor-bg-color: #ffffff;
  --editor-header-color: #f0f0f0;
  --code-text-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
  --bg-color: #1a1a2e;
  --card-bg-color: #16213e;
  --text-color: #e94560;
  --editor-bg-color: #0f3460;
  --editor-header-color: #16213e;
  --code-text-color: #f1f1f1;
  --shadow-color: rgba(0, 0, 0, 0.5);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px 0;
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
  transition: all 0.3s ease;
  overflow-x: hidden;
}

.cinnamoroll-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

.character-gif {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow-color);
  background-color: transparent;
  padding: 0;
}

.editor-window {
  width: 100%;
  background-color: var(--editor-bg-color);
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
  overflow: hidden;
  border: 1px solid var(--shadow-color);
}

.editor-header {
  background-color: var(--editor-header-color);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--shadow-color);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.file-name {
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  font-weight: bold;
  opacity: 0.7;
}

.editor-body {
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.5;
  color: var(--code-text-color);
  height: 250px;
  overflow-y: auto;
  white-space: pre-wrap;
  text-align: left;
  scroll-behavior: smooth;
}

.theme-toggle-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--card-bg-color);
  border: 2px solid var(--text-color);
  color: var(--text-color);
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--shadow-color);
}
