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

body {
    background-color: #f4f4f9;
}

header {
    background-color: #007bff;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin-bottom: 1rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-bar input {
    padding: 0.5rem;
    width: 300px;
    border: none;
    border-radius: 4px;
}

.search-bar button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #ffffff;
    color: #007bff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #e0e0e0;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.note-form, .auth-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
}

.form-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-buttons button:first-child {
    background-color: #007bff;
    color: white;
}

.form-buttons button:last-child {
    background-color: #6c757d;
    color: white;
}

.note {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.note h3 {
    margin-bottom: 0.5rem;
}

.note p {
    margin-bottom: 0.5rem;
}

.note .meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.note .tags {
    font-style: italic;
}

.note-actions {
    display: flex;
    gap: 0.5rem;
}

.note-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.note-actions button.edit {
    background-color: #28a745;
    color: white;
}

.note-actions button.delete {
    background-color: #dc3545;
    color: white;
}

/* Estilos para alertas */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .search-bar {
        flex-direction: column;
    }

    .search-bar input {
        width: 100%;
    }

    .note-form, .auth-form {
        padding: 1rem;
    }
}