/* Режим разработчика - подсветка текста */
.dev-mode .dev-hover {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
    cursor: pointer !important;
    border-radius: 4px !important;
}

/* Индикатор режима разработчика */
.dev-mode-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10000;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.dev-mode-indicator:hover {
    background: #1d4ed8;
}

/* Модальное окно редактора */
.dev-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-editor-modal-content {
    background: white;
    border-radius: 16px;
    width: 550px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.2s ease;
}

.dev-editor-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.dev-editor-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.dev-editor-body {
    padding: 24px;
}

.dev-editor-field {
    margin-bottom: 20px;
}

.dev-editor-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.dev-editor-field input,
.dev-editor-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dev-editor-field input:focus,
.dev-editor-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dev-editor-field textarea {
    resize: vertical;
    min-height: 120px;
}

.dev-editor-field small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.dev-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.dev-editor-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.dev-editor-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.dev-editor-btn-cancel:hover {
    background: #e5e7eb;
}

.dev-editor-btn-save {
    background: #2563eb;
    color: white;
}

.dev-editor-btn-save:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.dev-editor-btn-save:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Эти элементы НЕ должны подсвечиваться в режиме разработчика */
.dev-editor-modal *,
.dev-editor-modal-content *,
.dev-editor-actions *,
.dev-editor-btn,
.dev-editor-btn-cancel,
.dev-editor-btn-save {
    outline: none !important;
    cursor: default !important;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптация под мобильные устройства */
@media (max-width: 640px) {
    .dev-editor-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .dev-editor-header {
        padding: 16px 20px;
    }
    
    .dev-editor-body {
        padding: 20px;
    }
    
    .dev-editor-actions {
        flex-direction: column;
    }
    
    .dev-editor-btn {
        width: 100%;
    }
    
    .dev-mode-indicator {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}