body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* м’якіший шрифт */
    background: #1e1e1e; /* темний фон */
    color: #e0e0e0; /* світлий текст */
    padding: 20px;
}

.form-block {
    margin-bottom: 20px;
    background: #2a2a2a; /* темніший блок */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,2);
}

textarea, select, input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: #3a3a3a; /* фон полів */
    color: #e0e0e0; /* текст */
    border: 1px solid #555;
    border-radius: 4px;
}

button {
    padding: 10px 15px;
    background: #3f7ecf;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #3367a3;
}

/* Контейнер для рядка селектів */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-block {
    flex: 1 1 220px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #e0e0e0;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    padding: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
    transform: none;
}

.checkbox-item span {
    margin-left: -1px;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #555;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    background-color: #3a3a3a;
    color: #e0e0e0;
    max-height: 150px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 5px;
    cursor: pointer;
}

.autocomplete-item.active {
    background-color: #555;
}

.playlist-input {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    box-sizing: border-box;
    padding: 5px;
    background: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
}

.autocomplete-wrapper {
    position: relative;
}

