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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

#status {
    text-align: center;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
    background: #f0f0f0;
    color: orange;
}

#list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.item:hover {
    background: #f8f8f8;
}

.item.checked span {
    text-decoration: line-through;
    color: #999;
}

.item .remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.item .remove-btn:hover {
    background: #cc0000;
}

.item .remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#add-form {
    display: flex;
    gap: 10px;
}

#new-item {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#new-item:focus {
    border-color: #4CAF50;
}

#add-button {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

#add-button:hover {
    background: #45a049;
}

.empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}
#install-btn {
    display: none;
    padding: 12px 24px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px auto;
    width: 100%;
    max-width: 300px;
}

#install-btn:hover {
    background: #1976D2;
}
