body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    background-color: #f1f1f1;
    font-size: 16px;
}

.tab-button.active {
    background-color: #007bff;
    color: white;
}

.tab-content {
    padding: 20px;
}

.hidden {
    display: none;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #e9ecef;
    margin: 5px 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    word-wrap: break-word;
    /* Ensures long text wraps */
}

button {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.remove-btn {
    background-color: red;
    color: white;
}

.move-btn {
    background-color: green;
    color: white;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Keeps space consistent */
}

input[type="text"] {
    flex-grow: 1;
    /* Expands input to available space */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 128, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Ensure the item name has a fixed width */
.item-name {
    width: 200px;
    /* Adjust width as needed */
    white-space: nowrap;
    /* Prevents text from wrapping */
    overflow: hidden;
    /* Hide overflow */
    text-overflow: ellipsis;
    /* Show "..." for long names */
}