:root {
    /* Font */
    --font-family: 'Outfit', sans-serif;
    
    /* Palette */
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #9CA3AF;
    
    /* Dynamic Accents */
    --active-user-color: #6EE7B7; 
    --active-text-color: #064E3B; 

    /* UI Properties */
    --radius-lg: 24px;
    --radius-pill: 50px;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Header */
header {
    text-align: center;
    margin-top: 10px;
}
h1 {
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: -0.03em;
}
.subtitle {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* User Selector */
.user-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.selector-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 500;
}
#user-buttons {
    display: flex;
    background: #FFFFFF;
    padding: 6px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    width: 100%;
}
.user-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 1rem;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.user-btn.active {
    background-color: var(--active-user-color);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: scale(1.02);
}

/* Input Group */
.input-group {
    position: relative;
    display: flex;
    gap: 12px;
}
#note-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    outline: none;
    transition: box-shadow 0.3s ease;
}
#note-input:focus { box-shadow: var(--shadow-hover); }
#note-input::placeholder { color: #D1D5DB; }
#add-btn {
    padding: 0 28px;
    background-color: var(--text-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background-color 0.2s;
}
#add-btn:hover {
    transform: translateY(-2px);
    background-color: #000;
}

/* Notes List */
#notes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
}
.note-item {
    background: var(--card-bg);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Pastel accent bar */
.note-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background-color: var(--note-color);
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}
.note-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 12px;
}
.note-text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-primary);
}
.note-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.note-badge {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: var(--note-color);
}
.complete-btn {
    background: transparent;
    border: 2px solid #F3F4F6;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.complete-btn:hover {
    border-color: #FECACA;
    color: #EF4444;
    background-color: #FEF2F2;
}

/* Empty State */
.empty-state {
    text-align: center;
    margin-top: 40px;
    color: #D1D5DB;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.empty-state p { font-size: 1.1rem; color: var(--text-secondary); }

/* Footer */
footer { text-align: center; margin-top: 10px; }
.text-btn {
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-family);
}
.text-btn:hover { color: var(--text-primary); text-decoration: underline; }

/* Animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}