body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #d93025;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

main {
    padding: 1rem;
}

#items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

#items-list li {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

#items-list li:last-child {
    border-bottom: none;
}

.item-title {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.item-title:hover {
    text-decoration: underline;
}

/* --- Notification Toggle Switch Styles --- */

#notification-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#notification-label {
    color: white;
    font-weight: 500;
    cursor: pointer;
    user-select: none; /* Prevents text selection on click */
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745; /* Green for 'enabled' */
}

input:checked + .slider:before {
    transform: translateX(22px);
}

input:disabled + .slider {
    background-color: #777;
    cursor: not-allowed;
}
