html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f3f2ed;
    color: #013113;
    user-select: none;
}
.container {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 30px auto;
    padding: 0 15px;
}
img {
    width: 120px;
    margin: 0 auto 10px;
    border-radius: 50%;
    box-shadow: 0px 1px 4px rgba(0,0,0,0.2);
}
h1 {
    text-align: center;
    margin: 0 0 5px;
}
.tagline {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 300;
}
input, select, button {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 0;
    margin: 8px 0;
    box-shadow: inset 0px 2px 4px rgba(0,0,0,0.1);
    background-color: #DCE1EB;
    color: #013113;
    outline: none;
}
button {
    background-color: #013113;
    color: #f3f2ed;
    cursor: pointer;
    font-weight: 600;
    box-shadow: none;
    transition: background-color 0.2s;
}
button:hover {
    background-color: #123f39;
}
button:active {
    transform: scale(0.98);
}
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}
.user-bar span {
    font-weight: 600;
}
.list-management {
    background: #ffffffdd;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.current-list {
    font-weight: 600;
    margin: 0 0 10px;
}
.list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.list-actions button, .list-actions input {
    flex: 1 1 auto;
    margin: 0;
}
.add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.add-row select, .add-row input {
    flex: 1;
    margin: 0;
}
#add-button {
    flex: 1;
}
ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
ul li {
    font-size: 16px;
    background-color: #FFFDF8;
    padding: 12px;
    border-radius: 8px;
    flex-grow: 1;
    text-align: left;
    box-shadow: 0px 1px 4px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}
ul li:hover {
    box-shadow: 0px 2px 8px rgba(0,0,0,0.3);
}
.item-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    pointer-events: none;  /* prevents double‑click issues */
}
.item-name {
    font-weight: 600;
}
.item-name.bought {
    text-decoration: line-through;
    opacity: 0.5;
}
.item-quantity {
    font-weight: 300;
    font-size: 14px;
    color: #555;
}

/* ======= TOAST NOTIFICATIONS ======= */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    background: #013113;
    color: #f3f2ed;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease, fadeOut 0.3s 2.7s forwards;
    max-width: 350px;
    text-align: center;
}
.toast.error {
    background: #8b0000;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}