* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2em 5%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.2em;
    font-weight: 600;
}

nav a {
    margin-left: 1.2em;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

nav a.active, nav a:hover {
    color: #0077cc;
}

.hero {
    text-align: center;
    padding: 5em 1em;
    background: #eef5ff;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.1em;
    color: #666;
}

.categories-preview {
    padding: 3em 5%;
}

.categories-preview h2 {
    text-align: center;
    margin-bottom: 1.5em;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.5em;
    width: 280px;
    text-align: left;
}

.card h3 {
    margin-bottom: 0.5em;
    color: #0077cc;
}

.card p {
    color: #555;
    margin-bottom: 1em;
}

.card a {
    text-decoration: none;
    color: #0077cc;
    font-weight: 600;
}

.content {
    padding: 3em 5%;
    max-width: 900px;
    margin: 0 auto;
}

.content h1 {
    margin-bottom: 1em;
}

section {
    margin-bottom: 2em;
}

footer {
    text-align: center;
    padding: 2em;
    font-size: 0.9em;
    color: #777;
    background: #f5f5f5;
    margin-top: 3em;
}

/* Notes editor styles */
.note-editor label {
    display: block;
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-weight: 600;
    color: #444;
}

.note-editor input[type="text"],
.note-editor select,
.note-editor textarea {
    width: 100%;
    padding: 0.7em;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    background: #fff;
    font-size: 1em;
    color: #333;
}

.note-editor .form-row {
    margin-top: 1em;
    display: flex;
    gap: 0.6em;
}

.btn {
    padding: 0.6em 1em;
    border-radius: 6px;
    border: none;
    background: #0077cc;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.btn-ghost {
    background: transparent;
    color: #0077cc;
    border: 1px solid #d0e6ff;
}

.notes-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    align-items: center;
    margin-bottom: 1em;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1em;
}

.note-card {
    background: #fff;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    position: relative;
}

.note-card h3 {
    color: #0077cc;
    margin-bottom: 0.4em;
    font-size: 1.1em;
}

.note-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.6em;
}

.note-card p {
    color: #333;
    white-space: pre-wrap;
}

.note-actions {
    margin-top: 0.8em;
    display: flex;
    gap: 0.4em;
}

.small-btn {
    padding: 0.4em 0.6em;
    font-size: 0.85em;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
}

.small-btn.edit {
    background: transparent;
    color: #0077cc;
    border-color: #d7eefe;
}

.small-btn.delete {
    background: #ffefef;
    color: #c43a3a;
    border-color: #ffdede;
}

/* responsive tweaks */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }
    .notes-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}
