
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
  }
  
  h1 {
    color: #2c3e50;
  }
  
  .btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
  }
  
  .btn:hover {
    background-color: #2980b9;
  }
  
  .btn.danger {
    background-color: #e74c3c;
  }
  
  .btn.danger:hover {
    background-color: #c0392b;
  }
  
  .btn.secondary {
    background-color: #95a5a6;
  }
  
  .btn.secondary:hover {
    background-color: #7f8c8d;
  }
  
  .note-list {
    list-style: none;
    padding: 0;
  }
  
  .note-list li {
    background: white;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .note-list li a {
    text-decoration: none;
    color: inherit;
  }
  
  .note-list li h3 {
    margin-top: 0;
    color: #2c3e50;
  }
  
  .note-content {
    background: white;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .date {
    color: #7f8c8d;
    font-size: 14px;
  }
  
  .actions {
    margin-top: 20px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
  }
  
  .form-group textarea {
    min-height: 200px;
  }

/* Toolbar */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
  }
  
  .search-form {
    display: flex;
    gap: 10px;
    flex-grow: 1;
  }
  
  .search-form input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  /* Filters */
  .filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  
  .filter-group {
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .filter-group h3 {
    margin-top: 0;
    font-size: 16px;
  }
  
  .filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .filter-group li {
    margin: 0;
  }
  
  .filter-group a {
    display: block;
    padding: 5px 10px;
    background: #ecf0f1;
    border-radius: 4px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 14px;
  }
  
  .filter-group a.active {
    background: #3498db;
    color: white;
  }
  
  /* Categories and Tags */
  .categories, .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
  }
  
  .category, .tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .category {
    background: #e8f4fc;
    color: #2980b9;
  }
  
  .tag {
    background: #e8f8f5;
    color: #27ae60;
  }
  
  .note-list .category, .note-list .tag {
    margin-right: 5px;
  }
  
  /* Meta info */
  .meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  /* Markdown preview */
  .markdown-preview {
    margin-top: 30px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
  }
  
  .markdown-preview h3 {
    margin-top: 0;
  }
  
  /* Markdown content styles */
  .note-content h1, .note-content h2, .note-content h3 {
    color: #2c3e50;
    margin-top: 1.5em;
  }
  
  .note-content pre {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
  }
  
  .note-content code {
    background: #f8f8f8;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
  }
  
  .note-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin-left: 0;
    color: #7f8c8d;
  }
  
  .note-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
  }
  
  .note-content table th, .note-content table td {
    border: 1px solid #ddd;
    padding: 8px;
  }
  
  .note-content table th {
    background: #f2f2f2;
  }

  /* Previous styles remain, add these new styles */

/* Notebooks */
.notebook-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #3498db;
  color: white;
  border-radius: 4px;
  font-size: 16px;
  margin-left: 10px;
}

.notebook-list {
  list-style: none;
  padding: 0;
}

.notebook-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notebook-list a {
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
}

.notebook-form {
  margin-bottom: 30px;
}

/* Attachments */
.attachments-badge {
  display: inline-block;
  padding: 2px 6px;
  background: #ecf0f1;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 5px;
}

.attachments-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.attachments-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: #f9f9f9;
  margin-bottom: 5px;
  border-radius: 4px;
}

.attachments-list a {
  color: #3498db;
  text-decoration: none;
}

.attachments {
  margin-top: 30px;
  padding: 15px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.attachments ul {
  list-style: none;
  padding: 0;
}

.attachments li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.attachment-preview {
  margin-top: 10px;
  max-width: 300px;
}

.attachment-preview img {
  max-width: 100%;
  border-radius: 4px;
}

/* Small buttons */
.btn.small {
  padding: 4px 8px;
  font-size: 14px;
}

/* Toolbar layout */
.toolbar-left {
  display: flex;
  gap: 10px;
}

/* Notebook in note view */
.meta .notebook {
  background: #e8f4fc;
  color: #2980b9;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
}