/**
 * Стили для inline editing задач
 */

/* Редактируемые поля */
.task-field-editable {
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.task-field-editable:hover:not(.editing) {
    background-color: rgba(0, 0, 0, 0.03);
    outline: 1px dashed rgba(0, 0, 0, 0.1);
}

.task-field-editable::after {
    content: '✎';
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #6c757d;
    font-size: 0.875rem;
}

.task-field-editable:hover:not(.editing)::after {
    opacity: 1;
}

/* Режим редактирования */
.task-field-editable.editing {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.task-field-editable.editing::after {
    display: none;
}

/* Элементы редактирования */
.inline-edit-input {
    font-size: 0.9375rem;
    font-weight: 400;
}

.inline-edit-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Кнопки редактирования */
.inline-edit-buttons {
    display: flex;
    gap: 0.5rem;
}

.inline-save-btn,
.inline-cancel-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
}

.inline-save-btn {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.inline-save-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.inline-cancel-btn {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.inline-cancel-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Поля для задач */
.task-field {
    word-break: break-word;
    white-space: pre-wrap;
}

.task-field.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Спец. стили для текстовых полей */
.task-field-editable textarea {
    resize: vertical;
    min-height: 100px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .task-field-editable {
        padding: 0.35rem;
    }
    
    .task-field-editable.editing {
        padding: 0.5rem;
    }
    
    .inline-edit-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
