* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a2e4a;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --slate: #1e293b;
    --slate-mid: #94a3b8;
    --slate-light: #e2e8f0;
    --white: #ffffff;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f0f4f8;
    min-height: 100vh;
    padding: 40px 20px;
}

/* - App Container - */

.app {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* - Header - */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

#note-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* - Input Section - */

.input-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--slate);
    border: 2px solid var(--slate-light);
    border-radius: 8px;
    resize: vertical;
    outline: none;
    line-height: 1.6;
    transition: border-color 0.2s ease;
}

textarea:focus {
    border-color: var(--blue);
}

#save-btn {
    align-self: flex-end;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: var(--blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#save-btn:hover {
    background-color: var(--blue-light);
}

/* - Notes Container - */

#notes-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Note Card */

.note-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.note-text {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.7;
    white-space: pre-wrap;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-date {
    font-size: 0.75rem;
    color: var(--slate-mid);
    font-weight: 500;
}

.delete-btn {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-mid);
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.delete-btn:hover {
    color: #ef4444
}