.tool-content {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 3rem;
}

.tool-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.tool-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 0.75rem;
}

.tool-description {
  color: #525252;
  line-height: 1.6;
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: #0f0f0f;
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.005em;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 15, 15, 0.25);
}

.btn-primary:disabled {
  background: #a3a3a3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: #f8f8f8;
  color: #525252;
  padding: 0.875rem 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.005em;
}

.btn-secondary:hover {
  background: #f0f0f0;
  border-color: #d5d5d5;
  color: #0f0f0f;
}

.btn-secondary:disabled {
  background: #f8f8f8;
  color: #a3a3a3;
  cursor: not-allowed;
  border-color: #e5e5e5;
}

/* ===============================================
         PROFESSIONAL NOTE TAKER STYLES
         =============================================== */
.notes-section {
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
}

.notes-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #0f0f0f;
}

.category-filter {
  padding: 0.75rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  min-width: 140px;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.category-filter:focus {
  outline: none;
  border-color: #0f0f0f;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.note-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.note-card:hover {
  border-color: #0f0f0f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.note-card.active {
  border-color: #0f0f0f;
  background: #f8f8f8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.note-card-title {
  font-weight: 600;
  color: #0f0f0f;
  margin-bottom: 0.75rem;
  font-size: 16px;
  line-height: 1.4;
  word-wrap: break-word;
}

.note-card-preview {
  color: #525252;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex-grow: 1;
  word-wrap: break-word;
}

.note-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.note-category {
  background: #0f0f0f;
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.note-date {
  color: #a3a3a3;
  font-size: 12px;
}

.delete-note {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: black;
  color: white;
  border: none;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-card:hover .delete-note {
  opacity: 1;
}

.delete-note:hover {
  background: black;
  transform: scale(1.1);
}

.empty-state {
  text-align: center;
  color: #a3a3a3;
  padding: 3rem 2rem;
  font-style: italic;
  grid-column: 1 / -1;
}

/* Editor Section */
.editor-section {
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  padding: 2rem;
}

.editor-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
  flex-wrap: wrap;
}

.toolbar-btn {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
}

.toolbar-btn:hover {
  background: #f0f0f0;
  border-color: #0f0f0f;
}

.toolbar-btn.active {
  background: #0f0f0f;
  color: white;
  border-color: #0f0f0f;
}

.toolbar-btn:disabled {
  background: #f8f8f8;
  color: #a3a3a3;
  cursor: not-allowed;
  border-color: #e5e5e5;
}

.editor-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.note-title-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  transition: border-color 0.2s ease;
  background: white;
}

.note-title-input:focus {
  outline: none;
  border-color: #0f0f0f;
}

.category-select {
  padding: 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  min-width: 140px;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.category-select:focus {
  outline: none;
  border-color: #0f0f0f;
}

.note-content-input {
  width: 100%;
  min-height: 400px;
  padding: 1.5rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s ease;
  background: white;
}

.note-content-input:focus {
  outline: none;
  border-color: #0f0f0f;
}

.note-content-input::placeholder {
  color: #a3a3a3;
  font-style: italic;
}

.editor-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  font-size: 14px;
  color: #525252;
}

.save-status {
  color: #0f0f0f;
  font-weight: 500;
}

.save-status.saving {
  color: #f59e0b;
}

.save-status.saved {
  color: #10b981;
}

.save-status.error {
  color: #dc2626;
}

.editor-placeholder {
  text-align: center;
  color: #a3a3a3;
  padding: 4rem 2rem;
  font-style: italic;
}

.editor-placeholder h3 {
  color: #525252;
  margin-bottom: 1rem;
  font-style: normal;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f0f0f;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.success {
  background: #10b981;
}

.notification.error {
  background: #dc2626;
}

.notification.warning {
  background: #f59e0b;
}

/* Loading state */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ===============================================
         RESPONSIVE DESIGN
         =============================================== */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 250px 1fr 250px;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .notes-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-container {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .sidebar {
    order: 2;
    position: static;
  }

  .tool-content {
    order: 1;
    padding: 2rem;
  }

  .ad-placeholder {
    height: 250px;
  }

  .button-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .notes-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .editor-header {
    flex-direction: column;
  }

  .editor-toolbar {
    gap: 0.25rem;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 1.5rem 1rem;
  }

  .tool-content {
    padding: 1.5rem;
  }

  .notes-section,
  .editor-section {
    padding: 1.5rem;
  }

  .note-content-input {
    min-height: 300px;
  }
}

@media (max-width: 320px) {
  .tool-content {
    padding: 1rem;
  }

  .notes-section,
  .editor-section {
    padding: 1rem;
  }
}
