* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #235347 0%, #8EB69B 100%);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.container {
  background: rgba(218, 241, 222, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(5, 31, 32, 0.3);
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  text-align: center;
  margin-bottom: 40px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.header-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #163832 0%, #235347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.subtitle {
  color: #163832;
  font-size: 1rem;
  font-weight: 400;
}

.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 2px solid #8EB69B;
  padding-bottom: 0;
}

.tab {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #163832;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  font-family: inherit;
}

.tab:hover {
  color: #235347;
}

.tab.active {
  color: #235347;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #163832 0%, #235347 100%);
  border-radius: 2px 2px 0 0;
}

.content {
  animation: slideIn 0.3s ease-in;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.input-form {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.input,
.textarea {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #8EB69B;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgb(255, 255, 255);
  color: #051F20;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #235347;
  box-shadow: 0 0 0 3px rgba(35, 83, 71, 0.1);
}

.textarea {
  resize: vertical;
  min-height: 80px;
}

.add-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #163832 0%, #235347 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(35, 83, 71, 0.4);
}

.add-btn:active {
  transform: translateY(0);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #8EB69B;
  border: 2px solid #8EB69B;
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: slideInItem 0.3s ease-in;
}

@keyframes slideInItem {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.item:hover {
  border-color: #235347;
  box-shadow: 0 4px 12px rgba(35, 83, 71, 0.1);
}

.item.completed {
  opacity: 0.6;
}

.item.completed .item-text {
  text-decoration: line-through;
  color: #000000;
}

.item-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #235347;
}

.item-text {
  font-size: 1rem;
  color: #051F20;
  flex: 1;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.edit-btn,
.delete-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.edit-btn {
  background: #DAF1DE;
  color: #163832;
}

.edit-btn:hover {
  background: #8EB69B;
}

.delete-btn {
  background: #fecaca;
  color: #dc2626;
}

.delete-btn:hover {
  background: #fca5a5;
}

.edit-mode {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-input,
.edit-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #235347;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #051F20;
}

.edit-textarea {
  min-height: 100px;
  resize: vertical;
}

.edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.save-btn,
.cancel-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.save-btn {
  background: linear-gradient(135deg, #163832 0%, #235347 100%);
  color: white;
}

.save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(35, 83, 71, 0.3);
}

.cancel-btn {
  background: #DAF1DE;
  color: #163832;
}

.cancel-btn:hover {
  background: #8EB69B;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.note-card {
  background: linear-gradient(135deg, #DAF1DE 0%, #8EB69B 100%);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(5, 31, 32, 0.1);
  transition: all 0.3s ease;
  animation: slideInItem 0.3s ease-in;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(5, 31, 32, 0.15);
}

.note-text {
  color: #051F20;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  flex: 1;
}

.note-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: auto;
}

.empty-state {
  text-align: center;
  color: #163832;
  font-size: 1rem;
  padding: 60px 20px;
  font-style: italic;
}

@media (max-width: 768px) {
  .container {
    padding: 24px;
    margin: 10px;
  }

  header h1 {
    font-size: 2rem;
  }

  .input-form {
    flex-direction: column;
  }

  .add-btn {
    width: 100%;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

