/* ==================== EDIT CARD STYLES ==================== */
/* Main edit card container */
.edit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    width: 100%;  /* Full width on small screens */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Edit card width on larger screens */
@media (min-width: 768px) {
    .edit-card {
        width: 80%;
    }
}

/* Edit card sections */
.edit-section {
    margin-bottom: 8px;
}

/* Edit labels */
.edit-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

/* Context text */
.edit-context-text {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    padding: 8px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 2px solid #cbd5e1;
}

/* Original text display */
.edit-original-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    padding: 8px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 2px solid #fca5a5;
}

/* Replacement text container */
.edit-replacement-container {
    position: relative;
}

/* Replacement text (editable) */
.edit-replacement-text {
    font-size: 13px;
    color: #1e293b;
    line-height: 1.5;
    white-space: pre-wrap;
    padding: 8px;
    background: #f0fdf4;
    border-radius: 6px;
    border-left: 2px solid #86efac;
    min-height: 36px;
    outline: none;
    transition: all 0.2s ease;
}

/* Editing state for replacement text */
.edit-replacement-container.editing .edit-replacement-text {
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-left: 2px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Edit action buttons container */
.edit-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Base edit button styles */
.edit-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Edit button */
.edit-btn-edit {
    background: transparent;
    color: #475569;
    border-color: #cbd5e1;
}

.edit-btn-edit:hover {
    background: #f8fafc;
    border-color: #475569;
}

/* Highlight button */
.edit-btn-highlight {
    background: transparent;
    color: #f59e0b;
    border-color: #fbbf24;
}

.edit-btn-highlight:hover {
    background: #fffbeb;
    border-color: #f59e0b;
}

.edit-btn-highlight.edit-btn-highlighted {
    background: #fffbeb;
    color: #f59e0b;
    border-color: #f59e0b;
}

/* Apply button */
.edit-btn-apply {
    background: transparent;
    color: #10b981;
    border-color: #10b981;
}

.edit-btn-apply:hover {
    background: #ecfdf5;
    border-color: #059669;
    color: #059669;
}

/* Reject button */
.edit-btn-reject {
    background: transparent;
    color: #ef4444;
    border-color: #ef4444;
}

.edit-btn-reject:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

/* Compact state container */
.edit-card-compact {
    padding: 8px 12px;
}

/* Status badges in compact state */
.edit-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.edit-status-applied {
    background: #d1fae5;
    color: #065f46;
}

.edit-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Expand button in compact state */
.edit-btn-expand {
    padding: 4px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.edit-btn-expand:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}
