@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --blue-500: #3B82F6;
  --mint-500: #34D399;
  --blue-600: #2563EB;
  --mint-600: #10B981;
}

body {
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

.note-content, .note-title {
  white-space: pre-wrap;
  word-break: break-word;
}

#editor .ql-container {
  min-height: 120px;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, #ffffff, #f3f4f6);
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05), inset -2px -2px 5px rgba(255,255,255,0.7);
}

#editor .ql-toolbar {
  border-radius: 0.5rem 0.5rem 0 0;
  background: #f3f4f6;
}

.dark #editor .ql-container {
  background: linear-gradient(145deg, #1f2937, #374151);
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2), inset -2px -2px 5px rgba(255,255,255,0.1);
}

.dark #editor .ql-toolbar {
  background: #374151;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

button:hover {
  transform: scale(1.05);
  transition: transform 0.2s;
}

input:focus, button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

#sidebar {
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 50;
    width: 80%;
    max-width: 300px;
  }
  #sidebar.open {
    transform: translateX(0);
  }
  .flex {
    flex-direction: column;
  }
}