* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px;
    background-color: #4a6fa5;
    color: white;
    border-radius: 5px;
}

h1, h2 {
    margin-bottom: 15px;
}

.add-note {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
}

input, textarea, button {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    background-color: #4a6fa5;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

button:hover {
    background-color: #3d5d8a;
}

.notes-container {
    display: flex;
    gap: 20px;
}

.active-notes, .archived-notes {
    flex: 1;
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.note {
    background-color: #fcf7d9;
    border-radius: 5px;
    padding: 20px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.note-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.note-text {
    margin-bottom: 15px;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-break: break-word;
}

.note-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.note-actions button {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex: 1;
    min-width: 85px;
    margin: 0;
}

.archived-note {
    opacity: 0.6;
}

.archived-note .note-title,
.archived-note .note-text {
    text-decoration: line-through;
}

.edit-mode input,
.edit-mode textarea {
    width: 100%;
    margin-bottom: 10px;
}


@media (max-width: 768px) {
    .notes-container {
        flex-direction: column;
    }
} 