* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f4f4f9;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(135deg, #000000, #000000);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in-out;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Navbar */
nav {
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #000000, #000000);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: navbarSlideIn 0.5s ease-out;
}

nav a {
    text-decoration: none;
    color: white;
    margin: 0 2rem;
    font-size: 1.3rem;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #ff9800;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: #ff9800;
    transform: translateY(-5px);
}

nav a:hover::after {
    width: 100%;
    left: 50%;
}

@keyframes navbarSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navbarHover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

nav a:hover {
    animation: navbarHover 0.6s ease-in-out;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

/* Note Form */
.note-form {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-form textarea {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    resize: none;
    font-size: 1.1rem;
    transition: border 0.3s ease;
}

.note-form textarea:focus {
    border-color: #6a1b9a;
}

.note-form button {
    align-self: flex-end;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.note-form button:hover {
    background: #218838;
    transform: translateY(-3px);
}

.note-form button:active {
    background: #1e7e34;
}

/* Notes List Section */
.notes-list {
    margin-top: 2rem;
}

.notes-list h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Individual Note Item */
.note-item {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.note-item:hover {
    transform: translateY(-5px);
}

.note-item p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* Delete and Edit Buttons */
.note-item .delete-btn,
.note-item .edit-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.note-item .delete-btn {
    background: #dc3545;
    color: white;
}

.note-item .delete-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.note-item .edit-btn {
    background: #ffc107;
    color: white;
}

.note-item .edit-btn:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 0.5rem 0;
    }

    .note-form textarea {
        height: 100px;
    }

    .note-form button {
        padding: 0.75rem 1.5rem;
    }
}
