:root {
  --night-bg: #1a1a2e;
  --day-bg: #2a2a4e;
  --button-bg: rgba(255, 255, 255, 0.1);
  --button-hover: rgba(255, 255, 255, 0.2);
  --primary-color: #ff3366;
  --text-color: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
  color: var(--text-color);
  transition: background-color 1s ease;
  overflow: hidden;
}

.background-container {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.background-container:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
  opacity: 0;
  transition: opacity 2s ease;
}

.day .background-container {
  background: linear-gradient(180deg, #2a2a4e 0%, #3a3a5e 100%);
}

.night .background-container {
  background: linear-gradient(180deg, #1a1a2e 0%, #2a2a4e 100%);
}

.night .background-container:before {
  opacity: 1;
}

#stars, #shooting-stars {
  position: absolute;
  width: 100%;
  height: 100%;
}

#clouds {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.day #clouds {
  opacity: 0.6;
}

#sun-moon {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  right: 50px;
  top: 20px;
  transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 6s infinite ease-in-out;
}

.night #sun-moon {
  background: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: translateY(20px);
}

.day #sun-moon {
  background: #ffd700;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 80px rgba(255, 215, 0, 0.3);
  transform: translateY(0);
}

.sunrise-glow {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, 
    rgba(255,200,100,0.2) 0%,
    rgba(255,150,50,0.1) 30%,
    transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.day .sunrise-glow {
  transform: translate(-50%, -50%) scale(1);
}

main {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

.center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin-right: 2rem;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
}

.title {
  font-size: 2.5rem;
  margin-top: 1rem;
  background: linear-gradient(45deg, var(--primary-color), #ff66b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 3s infinite;
}

.broken-heart {
  filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.3));
  cursor: pointer;
  transition: transform 0.3s ease;
}

.broken-heart:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(255, 51, 102, 0.5));
}

.heart-break-animation .heart-left {
  animation: break-left 0.5s forwards;
}

.heart-break-animation .heart-right {
  animation: break-right 0.5s forwards;
}

@keyframes break-left {
  to {
    transform: translateX(-15px) rotate(-20deg);
    opacity: 0.6;
  }
}

@keyframes break-right {
  to {
    transform: translateX(15px) rotate(20deg);
    opacity: 0.6;
  }
}

.heart-left, .heart-right {
  transition: transform 0.3s ease;
}

.heart-left:hover {
  transform: translateX(-2px) rotate(-2deg);
}

.heart-right:hover {
  transform: translateX(2px) rotate(2deg);
}

.crack {
  animation: crack-animation 2s infinite;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-crack 2s forwards, glow 2s infinite;
}

@keyframes crack-animation {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.2); }
}

@keyframes draw-crack {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes glow {
  0%, 100% {
    stroke-width: 2;
    stroke: white;
  }
  50% {
    stroke-width: 3;
    stroke: rgba(255, 255, 255, 0.8);
  }
}

.time {
  font-size: 4.5rem;
  font-weight: bold;
  margin: 1rem 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.greeting {
  font-size: 2.2rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.date {
  font-size: 1.2rem;
  opacity: 0.7;
}

.grid-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  width: 320px;
  margin-right: 2rem;
  align-self: center;
  height: fit-content;
}

.grid-button {
  background: var(--button-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-button[data-tooltip="Discord"] {
  background: linear-gradient(45deg, rgba(114, 137, 218, 0.9), rgba(114, 137, 218, 0.6)) !important;
  border: 1px solid rgba(114, 137, 218, 0.4) !important;
  animation: pulse-discord 2s infinite;
}

@keyframes pulse-discord {
  0%, 100% { transform: scale(1); }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.5);
  }
}

.grid-button[data-tooltip="GitHub"] {
  background: linear-gradient(45deg, rgba(147, 51, 234, 0.9), rgba(147, 51, 234, 0.6)) !important;
  border: 1px solid rgba(147, 51, 234, 0.4) !important;
  animation: float 3s ease-in-out infinite;
}

.grid-button[data-tooltip="GitHub"]::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  z-index: -1;
  animation: github-border 6s linear infinite;
  opacity: 0.7;
}

@keyframes github-border {
  0% { opacity: 0.7; filter: hue-rotate(0deg); }
  25% { opacity: 0.4; }
  50% { opacity: 0.7; }
  75% { opacity: 0.4; }
  100% { opacity: 0.7; filter: hue-rotate(360deg); }
}

.grid-button[data-tooltip="Code"] {
  background: linear-gradient(45deg, rgba(16, 185, 129, 0.9), rgba(16, 185, 129, 0.6)) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  animation: color-wave 4s linear infinite;
}

.grid-button[data-tooltip="Code"]::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    transparent 25%,
    rgba(16, 185, 129, 0.5) 75%
  );
}

@keyframes color-wave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.grid-button[data-tooltip="Cloud"] {
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.6)) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  animation: cloud-drift 5s ease-in-out infinite;
}

@keyframes cloud-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.grid-button.executor {
  background: linear-gradient(45deg, 
    rgba(255, 51, 102, 0.9),
    rgba(255, 92, 133, 0.6)
  ) !important;
  border: 1px solid rgba(255, 51, 102, 0.4) !important;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.08); }
}

.grid-button.auto-code {
  background: linear-gradient(45deg,
    rgba(139, 92, 246, 0.9),
    rgba(168, 85, 247, 0.6)
  ) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0% { filter: brightness(1); }
  50% {
    filter: brightness(1.2);
    background-position: 100% 50%;
  }
  100% { filter: brightness(1); }
}

.grid-button.error-404 {
  background: linear-gradient(45deg,
    rgba(239, 68, 68, 0.9),
    rgba(239, 68, 68, 0.6)
  ) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.grid-button:hover {
  background-blend-mode: soft-light !important;
  filter: brightness(115%) !important;
  box-shadow: 0 4px 24px -6px rgba(0,0,0,0.3) !important;
}

.grid-button i {
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.grid-button .button-glow {
  background: radial-gradient(circle at center, 
    rgba(255,255,255,0.3) 0%, 
    transparent 70%
  );
}

/* Other unchanged styles */
.small {
  height: 60px;
  font-size: 1.5rem;
}

.large {
  height: 100px;
  grid-column: span 2;
  font-size: 2rem;
}

.lua i {
  margin-right: 0.5rem;
}

.color-wheel {
  background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff);
  background-size: 200% 200%;
  animation: gradient 5s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.error-404 {
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
}

.glitch-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-5px, 5px); }
  40% { transform: translate(5px, -5px); }
  60% { transform: translate(-5px, -5px); }
  80% { transform: translate(5px, 5px); }
  100% { transform: translate(0); }
}

.shatter {
  animation: float 3s infinite ease-in-out;
}

.shatter:nth-child(2) {
  animation-delay: -1s;
}

.shatter:nth-child(3) {
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255, 51, 102, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.8));
  }
}

[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

[data-tooltip]:hover:before {
  opacity: 1;
}

.editor-container {
  flex: 1;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
  min-height: calc(100vh - 250px);
}

.editor-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  pointer-events: none;
}

.code-wrapper {
  flex: 1;
  height: 100%;
  position: relative;
}

.minimap {
  width: 120px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.minimap-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  transform-origin: top right;
  pointer-events: none;
}

.minimap-viewport {
  position: absolute;
  width: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  pointer-events: none;
  transition: top 0.1s ease;
}

.CodeMirror {
  height: 100% !important;
  background: transparent !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  padding: 1rem;
}

.CodeMirror-gutters {
  background: rgba(0, 0, 0, 0.2) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 16px 0 0 0 !important;
  border-radius: 14px 0 0 14px !important;
}

.CodeMirror-linenumber {
  color: rgba(255, 255, 255, 0.6) !important;
  padding: 0 16px 0 8px !important;
  min-width: 2.5em !important;
}

.CodeMirror-lines {
  padding-top: 16px !important;
  padding-left: 0.5rem !important;
}

.CodeMirror-scroll {
  border-radius: 14px !important;
}

.CodeMirror-vscrollbar, .CodeMirror-hscrollbar {
  background: transparent !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cm-s-dracula .cm-keyword { color: hsl(258, 100%, 75%); }
.cm-s-dracula .cm-string { color: hsl(95, 80%, 65%); }
.cm-s-dracula .cm-number { color: hsl(330, 100%, 70%); }
.cm-s-dracula .cm-operator { color: hsl(180, 100%, 60%); }
.cm-s-dracula .cm-comment { color: rgba(255, 255, 255, 0.5); }
.cm-s-dracula .cm-def { color: hsl(40, 100%, 65%); }
.cm-s-dracula .cm-variable { color: hsl(280, 100%, 80%); }
.cm-s-dracula .cm-builtin { color: hsl(160, 100%, 60%); }

.CodeMirror-selected { background: rgba(255, 255, 255, 0.15) !important; }
.CodeMirror-focused .CodeMirror-selected { background: rgba(255, 255, 255, 0.2) !important; }

.tabs {
  position: relative;
  max-width: calc(100vw - 8rem); 
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.tabs::-webkit-scrollbar {
  height: 4px;
}

.tabs::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

.tab.renamed span:not(input) {
  color: #ff93ae;
  font-style: italic;
}

.modal {
  z-index: 10000 !important;
}