/* Модальное окно редактирования ссылки */
.edit-link-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--yellow-btn);
    border-radius: 12px;
    z-index: 100;
    padding: 30px;
    overflow-y: auto;
}

.edit-link-modal.active {
    display: block;
}

.edit-link-modal__content {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    width: calc(100% - 60px);
}

.edit-link-modal__close {
    position: absolute;
    top: -10px;
    right: 0;
    width: 32px;
    height: 32px;
    font-size: 32px;
    color: var(--text-dark);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.edit-link-modal__close:hover {
    transform: scale(1.2);
}

.edit-link-modal__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 30px 0;
    text-align: center;
}

/* Форма редактирования */
.edit-link-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.edit-link-form__input {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #f0f0f0;
    color: var(--text-dark);
}

.edit-link-form__input::placeholder {
    color: #999;
}

.edit-link-form__input:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.edit-link-form__input:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

/* Загрузка файла иконки */
.edit-link-form__file-upload {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    gap: 10px;
    align-items: center;
}

.edit-link-form__file-btn {
    padding: 15px 20px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.edit-link-form__file-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.edit-link-form__file-name {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Кнопка сохранения */
.edit-link-form__submit {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 15px 30px;
    background-color: #4caf50;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-link-form__submit:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Кнопка удаления */
.edit-link-form__delete {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    padding: 15px 30px;
    background-color: #f44336;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.edit-link-form__delete:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
