:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #333333;
    --border-color: #e0e0e0;
    --card-bg: #f9f9f9;
    --hover-color: #eeeeee;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    padding: 40px 0;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 5px;
    font-size: 2.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
    justify-content: center;
}

input[type="text"] {
    width: 400px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

button {
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    opacity: 0.8;
}

main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

h2 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s;
    cursor: pointer;
}

.card:hover {
    background: var(--hover-color);
}

.card img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    border-radius: 12px;
}

.card h3 {
    font-size: 1rem;
    margin: 0 0 10px 0;
}

.list {
    margin-bottom: 20px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.remove-btn {
    background: none;
    color: #ff4444;
    padding: 2px 8px;
    font-size: 0.8rem;
    border: 1px solid #ff4444;
}

.actions {
    text-align: center;
}

@media (max-width: 768px) {
    main { grid-template-columns: 1fr; }
    input[type="text"] { width: 100%; }
}
