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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
}

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

h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #6a1b9a;
    margin: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    overflow: hidden;
}

.list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.list {
    width: 100%;
    min-height: 250px;
    border: 2px dashed #6a1b9a;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow-y: auto;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 400px;
}

.card {
    background-color: #c465ff;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: move;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
    overflow: hidden;
}

.card:hover {
    background-color: #a94cff;
    transform: scale(1.05);
}

.card.selected {
    background-color: #fdaee4;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    padding: 10px 15px;
    cursor: pointer;
    background-color: #6a1b9a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.2s;
}

button:hover {
    background-color: #4a148c;
    transform: scale(1.05);
}

button:active {
    background-color: #3d1a6b;
}

input[type="text"] {
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #6a1b9a;
}

.list-container div {
    margin-top: 5px;
    font-weight: bold;
    color: #555555;
}