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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f5f7; /* Light theme background color */
  transition: background-color 0.3s ease;
}

.notepad {
  width: 100%;
  max-width: 800px;
  height: 90%;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.header {
  padding: 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  min-width: 100px; /* Minimum width to prevent shrinking */
  cursor: text;
}

/* Header Buttons */
.header-buttons {
  display: flex;
  gap: 10px;
}

.theme-toggle, .dev-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Notes Area */
.note {
  flex-grow: 1;
  width: 100%;
  padding: 20px;
  font-size: 1.2rem;
  border: none;
  resize: none;
  outline: none;
  background: transparent;
  color: #333;
  line-height: 1.5;
}

/* Light Theme Styles */
body, .notepad {
  background-color: #f5f5f7;
  color: #333;
}

.note {
  background-color: #fff;
  color: #333;
}

/* Dark Theme Styles */
body.dark-theme, .notepad.dark-theme {
  background-color: #1c1c1e;
  color: #f1f1f1;
}

.note.dark-theme {
  background-color: #2c2c2e;
  color: #f1f1f1;
}

.note:focus {
  outline: none;
}

/* Smooth Typing Effect */
@keyframes typing {
  0% { width: 0; }
  100% { width: 100%; }
}

.note.typing {
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 2s steps(30) forwards;
}

/* Responsive Design */
@media (max-width: 600px) {
  .notepad {
    width: 95%;
    height: 90%;
  }

  .header {
    padding: 10px;
  }

  .app-name {
    font-size: 1.2rem;
  }

  .note {
    font-size: 1rem;
  }
}
