:root {
    --bg-color: #f8f9fa;
    --nav-bg: #ffffff;
    --text-main: #343a40;
    --text-muted: #6c757d;
    --primary: #f59f00;
    --primary-hover: #f08c00;
    --danger: #fa5252;
    --danger-hover: #e03131;
    --border: #e9ecef;
    --note-bg: #ffffff;
    --note-border: #f1f3f5;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
}

.app-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.add-note-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s, transform 0.1s;
}

.add-note-btn:hover {
    background-color: var(--primary-hover);
}

.add-note-btn:active {
    transform: scale(0.95);
}

/* Notes Grid */
.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Note Card */
.note {
    background-color: var(--note-bg);
    border: 1px solid var(--note-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: fadeIn 0.4s ease forwards;
}

.note:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.note-header {
    background-color: #fff9db; /* Subtle yellow note color */
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: color 0.2s, opacity 0.2s;
}

.note:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    color: var(--danger);
}

.note-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.note-textarea {
    width: 100%;
    min-height: 150px;
    border: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
    background: transparent;
}

.note-textarea::placeholder {
    color: #adb5bd;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--text-muted);
}

.empty-state.hidden {
    display: none;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}
